
-
AuthorPosts
-
May 26, 2025 at 3:24 pm #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 1 month, 2 weeks ago by
extraeyes.
May 26, 2025 at 3:54 pm #1484693Hey extraeyes,
To make this font-size 20px
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,
MikeMay 26, 2025 at 5:40 pm #1484701I 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.
May 26, 2025 at 6:47 pm #1484702Hi,
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:
and ensure that it is activated, then add the above code and save.Best regards,
MikeMay 26, 2025 at 7:19 pm #1484704Oh 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 1 month, 2 weeks ago by
extraeyes.
May 26, 2025 at 7:51 pm #1484707Hi,
It’s not showing as closed: https://wordpress.org/plugins/insert-headers-and-footers/
Best regards,
MikeMay 27, 2025 at 2:45 pm #1484729THANK 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!!!
May 28, 2025 at 3:54 pm #1484780GOOD 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!!!!
May 28, 2025 at 8:51 pm #1484787Hi,
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,
MikeJuly 9, 2025 at 3:19 pm #1486515Hi Mike,
Sorry for the delay. I am back at my optimization and noticed I did a crawl with an SEO service, and it reports them all as H2.
I had a brief delay in being here, so I am trying to pick up where we left off. Could you give this a once-over?
I see I still left the plug in active. It also had two other settings, but I’m not sure what they are. I would rather NOT have plug-ins if not necessary.
ON THIS PAGE: https://www.survivalfoodngear.com/sale-long-short-term-food-storage/
THE SEO REPORTS THIS:Level Text
H1 All Products
H1 All of Our Products – Survival Food and Gear
H2 Seychelle – Wise Water Bottle
H2 Wise Fire -2 Gallon Bucket
H2 ReadyWise 3 Day Adventure Bag
H2 Prepper – 52 Servings Emergency – Food and Drink
H2 64 Piece Survival Back Pack
H2 Hunting Food Calorie Booster Bucket
H2 #10 Can Freeze-Dried Seasoned Beef Crumbles
H2 120 Servings of Powdered Whey MilkMY GOAL IS TO HAVE ONE H1, ONE H2 AND ONLY A FEW H3 on any page.
I did remove the produsts from some pages avoid all of this madness.
FOR NOW..
I greatly appreciate all of your help.
-
This reply was modified 5 days, 10 hours ago by
extraeyes.
July 12, 2025 at 12:56 pm #1486691Hi,
On this page: https://www.survivalfoodngear.com/sale-long-short-term-food-storage/
I find H1:
Sale – Long and Short Term Food Storage
Survival Food Storage Kits On Sale
Try this to change “Sale – Long and Short Term Food Storage” to a “p” tag:function change_title_container_h1_to_p() { ?> <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('.title_container h1.main-title.entry-title ', '<p></p>'); }); }(jQuery)); </script> <?php } add_action( 'wp_footer','change_title_container_h1_to_p', 99 );
I find only one H2:
Stock Up
I find H3 5 times in the magazine titles under “Other Great Products”, this seems fine, but if you want to change these to a “p” tag try this:function change_magazine_title_h3_to_p() { ?> <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('#avia-magazine-1 h3.av-magazine-title ', '<p></p>'); }); }(jQuery)); </script> <?php } add_action( 'wp_footer','change_magazine_title_h3_to_p', 99 );
I also find two empty H3 in your text, you should manually remove these.
under: “A: The sale usually lasts a few weeks…”
“Our organic buckets are a highly…”Best regards,
Mike -
This topic was modified 1 month, 2 weeks ago by
-
AuthorPosts
- You must be logged in to reply to this topic.