-
-
Hello! We purchased the Tower theme and set it up for our local business. We’re working on getting our SEO ranking up, and one of the big things kicking back is that we have too many H1 headers. They are pulling from:
- The Slides
- Any Title Heading on sections below (as we followed some of the demo of the Tower default setup)
- Title headings of blog posts that are posted in the footer
What’s the best way to go about fixing this? They all look so different but are being marked as H1 tags and google isn’t liking that.
Our site:
-
Hello,
This is the default layout of theme but it can be changed any time. We suggest you to use some other title element such as “Custom Heading” or “Separator with text”, etc.
Edit slides content to what fits you best.
Let us know for anything.Best regards!
-
Thanks for your quick reply!
I recreated the headers using the Custom Header element and that worked.
The two I’m not sure how to fix:
1) The titles of the blog posts showing under latest blog at the bottom — These are pulling from the theme as the titles on the blog post are supposed to be h1 on the post page. But how do I make it so that the titles on the Full Blog Element (the preview) on the home page not show as H1?
2) Is there a way to edit the slide content to not show as H1? Under content on Codeless Slider you have three sections where you can enter content. In order to use those three spots, I have to enter some under “Title”. How can I make those not show as H1?
Thanks for all of your help so far!
-
Hello,
1-You can change the title’s of Latest from Blog by editing the responsible file. Please go to file vc_templates/latest_blog.php and find this line:
$output .= '<h1><a href="'.get_permalink().'">'.esc_html(get_the_title()).'</a></h1>';
Edit the
<h1>
tag to your wish.2-Go to file \includes\core\codeless_slideshow.php and find this line:
$output .= '<h1 class="animated with_animation" data-animation="fadeInUp"><a href="'.get_permalink().'">'.get_the_title().'</a></h1>';
Change title’s heading style here.
Let us know.Best regards!
-
I changed both of those lines to be h3 instead of h1 as instructed. However they’re still showing as h1 tags when the page loads and you look in the code or scan with an SEO checker.
$output .= ‘<h3>‘.esc_html(get_the_title()).’</h3>’;
$output .= ‘<h3 class=”animated with_animation” data-animation=”fadeInUp”>‘.get_the_title().’</h3>’;
What’s another way to get the slideshow text AND the latest blog headlines to not show as h1?
Thanks!
-
Hello,
This is not possible. If you have changed the source code, so it should be. Please make sure you have cleared cache first. Perhaps you are seeing old copies of your site.
Let us know.Best regards!
-
Hello!
I’ve cleared the cache on both browsers, double checked the code you asked me to insert, and the slider text and the latest blog titles are still showing as H1. So, something must be missing. Have a look:
Code changed in vc_templates/latest_blog.php:
Code changed in \includes\core\codeless_slideshow.php:
With cache and everything else cleared, H1 tags are still showing for the latest blog posts:
With cache cleared, H1 tags are still showing for the slides:
You’re welcome to verify this in your own browser at https://mckinneyestateplanning.com
How can we resolve this H1 issue? Thank you for your responses!
-
Hello,
Most probably you have edited the wrong file. It’s easy to confuse blog files as there are many of them.
Send us your wp and ftp credentials in a private reply. So we can do this for you.Best regards!
-
As you can see in the images I posted in my previous reply, I changed the code in the exact two files you told me to.
/public_html/wp-content/themes/tower/vc_templates/latest_blog.php
and
/public_html/wp-content/themes/tower/includes/core/codeless_slideshow.php
Those are the exact paths of the files I edited according to the directions given, and I believe that shows I did not edit the wrong files. These are specific files and not just blog files, so as you can see from the paths (as well as the images posted above), the correct files were edited.
I don’t feel comfortable giving out my login credentials. I feel like this is a simple thing that should be able to be resolved through the forum here.
-
Hello,
1-Please see these screenshots showing the changes made to those files and the results:
–vc_templates/latest_blog.php file code edit: screenshot
Result in page: screenshot.-For the slider, go to this file instead:\includes\codeless-slider\codeless_slider.php find this code:
<pre>$output .= '<h5 class="animated with_animation" data-maxfont="'.esc_attr($cl_redata['slide_subtitle_style']['font-size']).'" data-animation="'.esc_attr($cl_redata['slide_subtitle_animation']).'" style="'.$subtitle_style.'">'.$cl_redata['slide_subtitle'].'</h5>'; $output .= '<h1 class="animated with_animation" data-maxfont="'.esc_attr($cl_redata['slide_title_style']['font-size']).'" data-animation="'.esc_attr($cl_redata['slide_title_animation']).'" style="'.$title_style.'">'.$cl_redata['slide_title'].'</h1>';</pre>
Change h1 to h3.
Code edit: screenshot
Result in page: screenshot.Best regards!
-
That worked for the codelesss slider – thanks!
However, it’s still not working for the latest blog, and H1 tags are still showing under Latest Blog.
Here is my code: https://postimg.org/image/iaas5i0kr/
Here is the result: https://postimg.org/image/kswh66maz/
Here is the latest_blog.php file — I uploaded it to Google Drive so that you can see my actual file: https://drive.google.com/file/d/0B3ntzWzKlKPCSndxM21OSnNQZVk/view?usp=sharing
-
Hello,
I don’t know how to explain this anymore. The site is build based on theme files. If a code in it is edited, it will affect the site as well.
We did the same changes and it does show just right on our side (like the slider changes did).
The last help i can give you for this is: download a copy of our edited file and overwrite your current one. Then clear cache and refresh page.
Link.Best regards!
-
-
Hello,
I did this test:
– I opened file style.css via the ftp credentials you send. I edited the theme’s name in it (see screenshot). Then i cleaned the cache and refreshed page. The change is not appearing (screenshot).So there are two possibilities,
1– the reason you are not seeing the changes made is because you are making those edits into the wrong theme. The theme you are using is not the one you have made changes to, or
2-your host is really slow in updating theme files and display the new edited site online.I can’t check if you have other theme copies installed in your wp-content/themes folder, with these much access rights in ftp and wp. So you have to check it yourself.
If you have only one theme installed and there is no way to have edited a theme that is not in use, then i suggest you contact your host provider.Best regards!
-
We did the same test and it worked. It’s not our host. We fixed it this morning by finding that the code needed to be changed in a different file and the file you had told us to edit to fix the latest blog headings was wrong.
We edited in: /includes/view/blog/loop-grid.php and now it works.
So, we resolved this problem on our own on this one.
-
You must be logged in to reply to this topic.