Archived topic
Disappearance of content of the page after optimising SEO
21 replies · Started by Guna on March 26, 2021
Hello,
Today I was trying to complete recommendations by Yoast SEO to optimize my page called Travel Stories, but it resulted in that everything from the page called Travel stories disappeared. As I even do not know how to check if I have some backup, I do not know how to go back. Under Travel stories, I had all my blog posts on one page with small excerpts, which were done as categories with your help.
So my first question is, how can I get back the content of my page, the second question what might have removed the content of the page while I was optimizing my SEO (maybe because I changed slug?), and the third, how can I make a solid backup so I am sure that if I do something wrong in the future, I can go back.
Thank you in advance,
Guna
Hi there,
I would recommend checking with your hosting support to see if they have an automatic backup option activated - most hostings do.
Since this isn't a theme-specific question, you should be able to find lots of resources online by Googling "how to back up a WordPress site".
For example:
https://www.wpbeginner.com/plugins/7-best-wordpress-backup-plugins-compared-pros-and-cons/
https://www.wpexplorer.com/backup-wordpress-site-plugins/
OK, I will do that regarding the hosting.
But as to the theme, I do think it is theme-specific when it comes to what has happened to the content of the page called Travel Stories because it disappeared when I was optimizing the page for SEO. And I still don't know why it happened, if it was when I changed the slug, meta description, or anything else? Of course, it would be easiest to go back to where I started with the backup method, but then I lose all my SEO work. So what I want to ask for your assistance with is, to find out what is it in the theme that provokes the disappearance of the content when optimizing the page for SEO and how to avoid that next time.
Thank you in advance,
Guna
Hi there,
the Theme never ever makes any changes to your post content, and it has no control over how your content is saved or updated - that is a core WordPress function.
All the Theme does is provide the templates for displaying your content on the front end of your website.
If content has been lost from your post editor then that has to be related to an issue with your WordPress install, your server database or another plugin has affected the code.
You can ask your Host if there have been any errors on the sever that maybe related to changes being made to your database... but this is certainly not a theme related issue.
OK, I see! Thank you very much for your reply. I have already written them to see what happened and not to get this problem again, so waiting for a reply. As I have to present my homepage tomorrow for a digital marketing course I have been taking, it will be faster for me to remake the page, than wait for the Host to answer me and back it up. That is why my question then is how do I get my 6 blog posts under Travel Stories in 2 lines with the featured image and a small excerpt under? I already have placed the posts under categories and have made the featured images and excerpts the way you taught me.
Are you wanting to add other content to the Travel Stories page ? Such as text before and after the List of 6 posts
No, just to list my posts in 2 rows, where each post consists of a featured image, then a title under it, and then a small excerpt under the title. If needed, I can draw a small sketch.
Instead of creating a static page Travel Stories. Go to Appearance > Menus and add a Category link to your menu for Travel Stories. That menu link will then take you to the Category Archive and display your posts list.
Hmm, I did it, but I just got another menu title called travel stories with nothing in it. How do I get my posts under it?
What I did was:
I went - Menus - under categories I put a hack besides travel stories and then said add menu. What was I missing?
Hi there,
Hmm, I did it, but I just got another menu title called travel stories with nothing in it. How do I get my posts under it?
Go to Appearance > Customize > Menus.
Once you're there, here's how to add posts under that menu you've made:
https://share.getcloudapp.com/v1ubR1wZ
Yes!!!!! Finally managed to do that, thank you so much for the video, it always helps better.
However, now I have to get the appearance this page had before, where each post has a featured image the title, and a small text under it, and they are ordered in rows of 3.
I found a travel blog that has a similar structure, except that I do not want the big image on the top.
https://www.thisislandlife.com/travel/
When i was first making this page, Tom gave me this code to do that. the code was:body:not(.category-travel-stories) .post-image {
display: none;
}
But this time it is not working.
What can I do to make it appear as it was before or as it looks like in the travel blog I sent you?
However, now I have to get the appearance this page had before, where each post has a featured image the title, and a small text under it, and they are ordered in rows of 3.
This is somewhat confusing. Are you pertaining to archive pages? Are you trying to make a static page that displays your blog posts?
Or do you have a category named "Travel Stories" and you want this category to display posts in 3 columns?
If your "Travel Stories" menu item is a link for its own category archive for "Travel Stories", I think you should just point it to its appropriate archive page.
Example: https://share.getcloudapp.com/jkuLoq22
And if you need to change the blog/archive/search page number of columns, You'll have to do that on Appearance > Customize > Layout > Blog.
Here's an example video of how to do it. https://share.getcloudapp.com/rRuGPvqx
When i was first making this page, Tom gave me this code to do that. the code was:body:not(.category-travel-stories) .post-image {
display: none;
}
But this time it is not working.
What can I do to make it appear as it was before or as it looks like in the travel blog I sent you?
I'm not sure what's the context of the CSS Tom. But if you're changing things on the blog or archive pages, I don't think that's applicable as Archive pages normally don't have post images.
I think if I understand your question right I am trying to make a "Travel Stories" as a static page that displays all my blog posts in obe page in the rows of 3. I have to make travel Stories as a category and I did what you showed me and yes it made my blogposts in columns the way I wanted, but it did it on the main page when you open my homepage, but I want it to look like that only under travel stories.So how do I make it understand that on the main page or HOME the posts are not divided into columns but under Travel Stories are?
So how do I make it understand that on the main page or HOME the posts are not divided into columns but under Travel Stories are?
That one will need PHP snippets to achieve.
Here's a code to do this:
add_filter( 'option_generate_blog_settings', 'lh_custom_search_results_page_settings' );
function lh_custom_search_results_page_settings( $options ) {
if ( is_home() ) {
$options['column_layout'] = false;
}
return $options;
}
Here's how to add PHP - https://docs.generatepress.com/article/adding-php/
I suggest using Code Snippets plugin if you're not familiar with child themes - https://en-ca.wordpress.org/plugins/code-snippets/
Thank you so much for your answer! I have actually the code snippets plugin installed already because your colleague once suggested me to add a code there. But when I open it now, I am wondering where I should add it exactly: there is one title that says "order snippets by date" and another that says "utilited #1". So where shall I add it?
Below I have added a link to it on my website.