-
AuthorPosts
-
August 25, 2021 at 11:42 am #1318261
Hi i would like to ad aditional text under the products on the product caegory pages for SEO purposes
I find some solution to place alle the text under the list of products.
But i want to display :
– First the discriprion,
– Than the products
– than extra text for SEO purposes.So for example : https://www.celebrationevents.nl/verhuur/verlichting-huren/disco-feestverlichting/
And then some extra text under the productsIs there a way to fix this?
Kind regards
Gilbert Derogee
August 26, 2021 at 12:50 pm #1318450Hey Gilbert,
Thank you for the inquiry.
You can use the woocommerce_after_main_content hook to insert additional content after the product loop, or you can override the wp-content/plugins/woocommerce/templates/archive-product.php file by creating a copy of it in your child theme directory. For more info, please check the following documentation.
// https://docs.woocommerce.com/document/template-structure/
Best regards,
IsmaelAugust 26, 2021 at 1:36 pm #1318461Hi Ismael,
Thanxs for your support
Can you point me in the richt direction how to use “the woocommerce_after_main_content” hook.
Do i insert this in the text editor on the Poduct category page?Kind regards
Gilbert
August 27, 2021 at 11:31 am #1318624Hi,
Thank you for the update.
This is an example of the woocommerce_after_main_content hook, which you can add in the child theme’s functions.php file, or in the parent theme’s if child theme is not activated.
add_action("woocommerce_after_main_content", function() { // more snippets here echo "something here"; }, 10);
Best regards,
IsmaelAugust 28, 2021 at 11:55 am #1318759Hello Ismael,
i added the code in the functiom.php for the child theme.
Now i see the text : “something here” on all product Woocommerce category pages.
So i dedeted the code.I think i didnt explain well enough.. I want to add add adionational text onder the product on each product catecory page.
It must be unique different content these pages.
So i need a extra input box in the theme template to add text under the products on the category pages.
Are a piece of code i can use in the inputbox that splits the product category text into 2 parts (one above the products and one under the products)for example this pages:
https://www.celebrationevents.nl/verhuur/beeld/beamer/
https://www.celebrationevents.nl/verhuur/verhuur-dj-gear/kind regards
Gilbert
- This reply was modified 3 years, 3 months ago by CelebrationEvents.
August 31, 2021 at 6:07 pm #1319221Hi Gilbert,
Please add following code to bottom of Quick CSS field in Enfold theme options > General Styling
.second-term-description + p { clear: both; }
Then add following code to bottom of Functions.php file of your child theme in Appearance > Editor – https://pastebin.com/9p0iTZZc. This is slightly modified version of this – https://www.businessbloomer.com/woocommerce-add-a-second-content-box-product-category-pages/ and will add second description field in category edit pages where you can insert unique text per category.
Best regards,
YigitAugust 31, 2021 at 8:06 pm #1319233Hello Yigit
That was what i was looking for, thanxs for this support !!!!!!
Only one thing the text is start directly after the last product.
I think a linebreak or somethin is missing to start the text UNDER the products.
See for yourself :
https://www.celebrationevents.nl/verhuur/verlichting-huren/disco-feestverlichting/Can you help me out?
Kind regards
Gilbert
- This reply was modified 3 years, 3 months ago by CelebrationEvents.
September 1, 2021 at 11:56 am #1319324Hi Gilbert,
Please add following code to Quick CSS field as well
.second-term-description + h2 { clear: both; }
Best regards,
YigitSeptember 2, 2021 at 9:24 am #1319461Hi Yigit
Thanxs once again.
I want to add some more space between above de second text. The text directly under the products.
See : https://www.celebrationevents.nl/verhuur/verlichting-huren/disco-feestverlichting/Can you give me the last piece of code i need?
Regards
Gilbert
September 2, 2021 at 12:58 pm #1319496Hi Gilbert,
Please add following code to Quick CSS field as well :)
.second-term-description + h2 { padding-top: 30px; }
Best regards,
YigitSeptember 6, 2021 at 8:28 pm #1319910Thanxs Yigit
Awesome!
Is there a same fix for the product TAG pages?
An aditonal input field, to add text under the product grid.All text is now above the products : https://www.celebrationevents.nl/product-tag/rookmachine/
Thanxs in advance.
- This reply was modified 3 years, 3 months ago by CelebrationEvents.
September 7, 2021 at 12:40 pm #1319962Hi Gilbert,
By editing the code you added in functions.php file, you should be able to do that however unfortunately that would be out of the scope of our support. If that is really important for you, please consider to hire a freelance developer for the task :)
Best regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.