Viewing 30 posts - 1 through 30 (of 41 total)
  • Author
    Posts
  • #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

    #473383

    Hey 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,
    Elliott

    #473387

    Elliot, I did send you a link, under Private Data.

    #473459

    Elliot, look down at the private area for the link.

    #473836

    Hey!

    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, 5 months ago by Elliott.
    #474042

    Elliot,

    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, 1 month ago by Josue.
    #474862

    Hey Dan!

    Elliot’s code should not cause that error, can you paste the whole contents of your functions.php? (use pastebin or similar).
    Regards,
    Josue

    #474895
    #474915

    Try with this:
    http://pastebin.com/wSt8YP8W

    Best regards,
    Josue

    #474919

    Sorry, 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, 5 months ago by tech500. Reason: Problem wasn't solve after all
    #476128

    Hi!

    Send us a WordPress login so we can take a closer look.

    Regards,
    Elliott

    #476772

    Hi Elliot,

    The server had a few issues.
    Now all is back online.
    Attached in private the credentials.

    Dan

    #477321

    Hey!

    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,
    Elliott

    #477400

    Elliot,

    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
    Dan

    I’m

    • This reply was modified 9 years, 5 months ago by tech500.
    #477768

    Hi!

    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, 5 months ago by Elliott.
    #477828

    Elliot,

    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/184wE

    #479092

    Hi!

    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, 5 months ago by Elliott.
    #479101

    Any 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, 1 month ago by Josue.
    #479487

    Hi 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,
    Rikard

    #479523

    Thanks 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

    #479525

    And this is what I have in my functions.php file at the moment, perhaps they conflict with your line… ?

    #479526

    Hi Dan,

    Where are you getting that error? i’m not seeing it on any of your pages.

    Regards,
    Josue

    #479528

    Refresh. since I removed it and put it back again…

    #479536

    Ok, try using this line instead:

    add_filter('woocommerce_show_page_title', '__return_false');
    

    Regards,
    Josue

    #479539

    Parse error: syntax error, unexpected end of file in /home/hamahsan/public_html/wp-content/themes/hamahsan/functions.php on line 38

    #479541

    Do you need access to the Admin section ?
    Here it is.

    #479545

    That user is unable to edit theme files, FTP access would be ideal in any case.

    #479559

    here is FTP, sorry.

    Thanks for helping !

    #479563

    Ok, check it now.

    #479569

    Much 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

Viewing 30 posts - 1 through 30 (of 41 total)
  • You must be logged in to reply to this topic.