• Resolved ivana040

    (@ivana040)


    Hi! I am using a loop in the header (below the book now button) for each page of my site, showing the H1 with SEO purposes. Now, I added the shop, and apparently for woocommerce the code is different?

    These are the Issues:
    1- Shop page: I was able to set the word Surfers Shop, modifying the code from: is_page to have_posts and it worked. The thing is, now the word surfers shop appears in all the pages including categories and single products. How do I change it in the Surf Mug category for instance? and for individual products?

    2-Footer: the loop in the top left of the footer (in turquoise color font) is not working as it did in the header. I would like to change the H2 word from “Surf trips for women” to “Surf Shop” as I am showing in the header.


    Thanks a lot in advance!
    I’m always grateful for this community and your responses.
    Iva.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ivana040

    (@ivana040)

    Thank you so much, Wasiur! But I cannot make it, haha. I am not a coding expert.
    The footer code you sent me says syntax error. And the first one dont display changes as I can see.

    Maybe I didn’t explain well what I want:

    in the Url with slug: /surfers-shop, the header is ok: Surfers Shop(H1), but in the footer I want “Surf shop” instead of “surf trips for women”.

    in the Url with slug: /surf-stickers, I want the header to be Surf Stickers(H1) and the footer Stickers for Surfers(H2)

    in the Url with slug: /surf-girl-sticker-chilly-day-in-the-ocean/, the header should be an H3 or whatever I want instead of Surfers shop (H1) again.

    If I have the H1 surfers shop everywhere I will have cannibalization and I dont want that! ??

    I am using the shortcode ?[bucle_header] and ?[bucle_footer] in elementor pro, and then added code in my functions.php theme file

    Header: ‘2000’ is the number of the shop page /surfers-shop

    } elseif (have_posts('2000')) {
      return '<h1 style="margin:-20px 0px 0px 0; font-size:12px; line-height:13px; text-align:end; color:#FFFFFF; padding-right:0px">Surfers Shop</h1>';

    Footer: this is what I tried but is only working on some of the categories but not in the shop page where it should be.

    } elseif (have_posts('2013')) {
      return '<h2 style="margin:-5px 0px 0px 0; font-size:14px; line-height:13px; text-align:start; color:#48D1cc; padding-right:0px">Surf Shop</h2>';

    And this is the code that is displaying the H3 I don’t want in most of the pages of woocommerce:

    } else {  
    
    
    return '<h3 style="margin:0px 0px 0px 0; font-size:14px; line-height:13px; text-align:start; color:#48D1cc; padding-right:0px">Surf Trips for Women Ecuador</h3>'; 
    } 

    OMG, I know it’s a lot, very challenging for me. I hope you understand what I want.

    Thank you so much for your time, and if I cannot make it I think I should contact elementor, but their customer support is crap.

    Have a good night!

    Hi @ivana040

    Thanks for reaching out!

    I understand that you’ve done several customization on your shop using custom shortcodes with the use of third-party plugin Elementor Pro.

    Since this is a third-party plugin that we don’t provide support for based on our Support Policy, I recommend that you reach out to the developers of the plugin for further assistance. They will be better equipped to help you resolve any issues you’re experiencing with the plugin.

    https://elementor.com/contact/

    All the best and hopefully, the issue will be fixed soon.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Header_Loop for Shop page and product categories’ is closed to new replies.