-
AuthorPosts
-
July 14, 2015 at 5:21 pm #473320
Hello,
How come Enfold uses 2 H1 tags on the same pages ?
One for the Title and one for the WooComemrce header content.How can I control in the settings what tags are used for different elements.
Dan
July 14, 2015 at 7:24 pm #473383Hey tech500!
There should only be one H1 tag. Perhaps your using a Woocommerce extension? Send us a link to the product / page and we’ll take a look.
Regards,
ElliottJuly 14, 2015 at 7:29 pm #473387Elliot, I did send you a link, under Private Data.
July 14, 2015 at 10:20 pm #473459Elliot, look down at the private area for the link.
July 15, 2015 at 4:20 pm #473836Hey!
I thought you were talking about a product post. So did you set your shop page in the Woocommerce settings to be the same as your front page?
Try adding this to your child theme functions.php file.
if(!function_exists('avia_title_args_woopage')) { add_filter('avf_title_args','avia_title_args_woopage', 10, 4); function avia_title_args_woopage($args) { if(is_single() && is_product() || is_front_page() || is_home() ) { $args['heading'] = "strong"; } return $args; } }
Cheers!
Elliott- This reply was modified 9 years, 4 months ago by Elliott.
July 16, 2015 at 1:47 am #474042Elliot,
I get an error when I use the code you sent me:
Since I use the woocommerce category heading, it’s default…, I also have the Enfold H1 in the title.
As you can see, the front page holds 3 H1 elements, and that is not good.
Same goes for any other page with woocomemrce header.Dan
- This reply was modified 9 years ago by Josue.
July 17, 2015 at 12:34 pm #474862Hey Dan!
Elliot’s code should not cause that error, can you paste the whole contents of your functions.php? (use pastebin or similar).
Regards,
JosueJuly 17, 2015 at 1:06 pm #474895July 17, 2015 at 1:25 pm #474915Try with this:
http://pastebin.com/wSt8YP8WBest regards,
JosueJuly 17, 2015 at 1:30 pm #474919Sorry, not good, since I still have two (2) H1 tags on every page.
Page Title is H1 and also the “template-page content av-content-full alpha units” is using H1 tag.What would you recommend to be the H1 ? page title or the woocommerce category that holds the title there ?
Dan
- This reply was modified 9 years, 4 months ago by tech500. Reason: Problem wasn't solve after all
July 20, 2015 at 8:40 pm #476128Hi!
Send us a WordPress login so we can take a closer look.
Regards,
ElliottJuly 22, 2015 at 12:08 am #476772Hi Elliot,
The server had a few issues.
Now all is back online.
Attached in private the credentials.Dan
July 22, 2015 at 8:32 pm #477321Hey!
I checked your product posts and it’s working as expected, “שידה בסגנון צרפתי”, the main title in the breadcrumbs is a strong tag instead of an H1. Send us a link to the exact page / post where your seeing two H1’s and we’ll take a look.
Best regards,
ElliottJuly 22, 2015 at 11:16 pm #477400Elliot,
Thanks for helping, but there are still 2 H1 tags used on every page.
The theme should not use H1 tags like that by default.
Have a closer look at the source code, it’s quite easy to find these two H1 tags.Also, how can I remove the ‘p’ tag inside the H1 tag on top ?
Thanks
DanI’m
- This reply was modified 9 years, 4 months ago by tech500.
July 23, 2015 at 3:44 pm #477768Hi!
If your seeing two H1 tags then send us a link to the exact page where your seeing them and take a screenshot of it please. I checked your product posts and your shop pages but I’m only seeing 1.
Also make sure to clear your browser cache and any caching related plugins you might have installed.
Regards,
Elliott- This reply was modified 9 years, 4 months ago by Elliott.
July 23, 2015 at 4:57 pm #477828Elliot,
The page title is hidden in CSS some how, but it is still visible in the source code on every page.
I have attached screenshots from 2 pages.
But if you’ll run Screaming Frog SEO Spider app on the site, you’ll see it very fast.
It’s also easy to find in the page source code by doing a simple find for h1.Here is a screenshot from Screaming Frod: http://d.pr/i/HL5h
Here are t 4 screenshots fro FireFox:
http://d.pr/f/184wEJuly 27, 2015 at 2:57 pm #479092Hi!
I cannot type those characters with my keyboard. Can you send us a link to the exact page so we can check? You can set your reply as private if you wish.
Cheers!
Elliott- This reply was modified 9 years, 4 months ago by Elliott.
July 27, 2015 at 3:09 pm #479101Any page Elliot !!!!
It doesn’t matter what you can type, what are you talking about ?
Do you see how long I’ve been waiting for a solution on this matter ?
You already have the website url… but here it is again:Read the above conversation…. the support I used to get from Kriesi was very good until now.
I don’t understand why it takes you so long to answer for such a simple question, can you read html ?
And after you do answer, you ask questions that are just a waste of time.The Enfold theme uses 2 (two) H1 tags on the site
These tags are probably created by the woocommerce plugin that you use in the theme.
Can you please tell me how to fix that, or should we move to another theme that generate proper SEO code ?Dan
- This reply was modified 9 years ago by Josue.
July 28, 2015 at 8:10 am #479487Hi Dan,
Sorry for the long wait to fix this, could you try adding the following to your functions.php please?
add_filter('woocommerce_show_page_title', false);
I think your issue is the same as this one, correct? https://wordpress.org/support/topic/remove-base-page-title
Best regards,
RikardJuly 28, 2015 at 9:28 am #479523Thanks Rikard,
After adding that line of code, I got this on each page:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /home/hamahsan/public_html/wp-includes/plugin.php on line 213
Dan
July 28, 2015 at 9:30 am #479525And this is what I have in my functions.php file at the moment, perhaps they conflict with your line… ?
July 28, 2015 at 9:31 am #479526Hi Dan,
Where are you getting that error? i’m not seeing it on any of your pages.
Regards,
JosueJuly 28, 2015 at 9:32 am #479528Refresh. since I removed it and put it back again…
July 28, 2015 at 9:42 am #479536Ok, try using this line instead:
add_filter('woocommerce_show_page_title', '__return_false');
Regards,
JosueJuly 28, 2015 at 9:45 am #479539Parse error: syntax error, unexpected end of file in /home/hamahsan/public_html/wp-content/themes/hamahsan/functions.php on line 38
July 28, 2015 at 9:46 am #479541Do you need access to the Admin section ?
Here it is.July 28, 2015 at 9:49 am #479545That user is unable to edit theme files, FTP access would be ideal in any case.
July 28, 2015 at 10:00 am #479559here is FTP, sorry.
Thanks for helping !
July 28, 2015 at 10:04 am #479563Ok, check it now.
July 28, 2015 at 10:21 am #479569Much better, but on category pages of woocommerce, there are still 2 H1 tags.
Solved on the home page…So on any link you click at the top, these are the categories.
The double H1 tags is my problem.Thanks
Dan
-
AuthorPosts
- You must be logged in to reply to this topic.