Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1484688

    I am sorry if this is duplicate. I put this in and it is not showing that created this.

    My Woo commerce products are all H2 which I finally realized is what is destroying my page ranking.

    I found this and put it in the Quick CSS and it didn’t do anything. I changed it to 20px though. Can you help me with this? Reminder I do not do code. https://www.survivalfoodngear.com/long-term-food/

    this didn’t work:

    .woocommerce div.product .product_title {
    font-size: 36px;
    }

    THANK YOU!!

    • This topic was modified 4 weeks ago by extraeyes.
    #1484693

    Hey extraeyes,
    To make this font-size 20px
    Screen Shot 2025 05 26 at 9.30.42 AM
    this css works:

    #top #wrap_all .all_colors h2.woocommerce-loop-product__title {
    	font-size: 20px;
    }

    but it will not remove the H2, which it sounds like this is what you want to do.
    If you want this H2 to be a “p” instead, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function change_woocommerce_product_title_tag_in_product_slider() { ?>
      <script>
    (function($) {
      $(function() {
        function replaceElementTag(targetSelector, newTagString) {
          $(targetSelector).each(function(){
            var newElem = $(newTagString, {html: $(this).html()});
            $.each(this.attributes, function() {
              newElem.attr(this.name, this.value);
            });
            $(this).replaceWith(newElem);
          });
        }
        replaceElementTag('h2.woocommerce-loop-product__title', '<p></p>');
      });
    }(jQuery)); 
    </script>
      <?php
    }
    add_action( 'wp_footer','change_woocommerce_product_title_tag_in_product_slider', 99 );

    Best regards,
    Mike

    #1484701

    I have not changed this to a child theme. I am in the process of doing that for my other website.

    Can I add it to the quick CSS or put in that plug-in you had me do in my other website, my custom function plugin… and you put the type in for me…

    Sorry, I don’t do code.. and I greatly appreciate the help.

    #1484702

    Hi,
    If you are not using a child theme you could use the WP Code plugin then add a new snippet, in the top right corner use the PHP snippet as the code type:
    use wpcode php snippet and activate
    and ensure that it is activated, then add the above code and save.

    Best regards,
    Mike

    #1484704

    Oh no….This plugin has been closed as of November 10, 2022 and is not available for download. Reason: Guideline Violation.

    I have it in my other website… Is there another plug in for this you can recommend?

    thank you

    • This reply was modified 3 weeks, 6 days ago by extraeyes.
    #1484707

    Hi,
    It’s not showing as closed: https://wordpress.org/plugins/insert-headers-and-footers/
    Screen Shot 2025 05 26 at 1.50.12 PM

    Best regards,
    Mike

    #1484729

    THANK YOU!!!!!! I’m sorry. I tried using the one I referred to and overlooked your link. IT WORKED!! WHO HOO!!! YEA.. lol.. sorry. I love it when it goes so easy.

    WOULD YOU SUGGEST that I change the plug-in on my other website that is now out of date to this one or should I leave it alone?
    OH DEAR… I SEE I DO EVERYTHING BACKWARDS… I just now noticed the theme never updated, and it did not give me an indication it needed updating.

    I am running the 5.6.6 theme!! You were suggesting to me on the other site to use the Child’s theme.. Now would be a good time to update to that.

    After I update to a child’s theme, would I still use the same plugin with this info?
    SORRY I DIDN’T NOTICE SOONER… going backwards here.

    Thank you in advance for always being so helpful.

    THANKS AGAIN FOR YOUR HELP!!!

    • This reply was modified 3 weeks, 6 days ago by extraeyes.
    • This reply was modified 3 weeks, 5 days ago by extraeyes.
    • This reply was modified 3 weeks, 5 days ago by extraeyes.
    #1484780

    GOOD DAY… UPDATE: I have successfully installed the child’s theme. One thing to note is that it did not save my theme settings, but I changed them back to my liking.

    Do I need the plug in now? It’s hard to tell what the product type size is now. My goal was to not have it an H2 or H3. The update has the type back to a larger size so it may still be an H size. Not sure how to check this??? CAN YOU ADVISE HOW I CAN BE SURE OF NO H2 OR H3 ON PRODUCTS?
    Since I have this childs theme now, does the code you give me go elsewhere instead of the plug in?

    Is there a link to help me understand the child’s theme and how my changes will not disappear on updates now? I do need to learn this.

    SORRY, I AM DOING THINGS BACKWARDS.

    If you don’t mind, I have one more question about the new theme. Over the years, you guys have helped with plugins and issue settings.

    WITH THE CHILD’S THEME NOW INSTALLED, ARE THESE PLUG-INS STILL NECESSARY?

    Disable XML-RPC – I don’t know what this does, and it says not tested for compatibility.
    BETTER SEARCH AND REPLACE. – Years ago you guys put in… dont remember what it does.
    REGENERATE THUMBNAILS – again, your team put in years ago..

    THANK YOU IN ADVANCE FOR ALL OF YOUR GREAT HELP!!!!

    • This reply was modified 3 weeks, 5 days ago by extraeyes.
    • This reply was modified 3 weeks, 5 days ago by extraeyes.
    • This reply was modified 3 weeks, 5 days ago by extraeyes.
    #1484787

    Hi,
    With the child theme you don’t need the WP Code plugin as you could just add the code snippets into your chid theme functions.php file. But it doesn’t cause any issues to use the plugin. So you can use both.
    the plugins:
    Disable XML-RPC
    BETTER SEARCH AND REPLACE
    REGENERATE THUMBNAILS
    you probably don’t need now, since you don’t remember why you installed them.
    When I check your page: https://www.survivalfoodngear.com/long-term-food/
    the titles are using “p” not any “H” heading, so it seems to be working as you wish.
    Shall we close this thread now?

    Best regards,
    Mike

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