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

    Is there a way to fix this?

    Kind regards

    Gilbert Derogee

    #1318450

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

    #1318461

    Hi 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

    #1318624

    Hi,

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

    #1318759

    Hello 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

    #1319221

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

    #1319233

    Hello 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

    #1319324

    Hi Gilbert,

    Please add following code to Quick CSS field as well

    
    .second-term-description + h2 {
        clear: both;
    }
    

    Best regards,
    Yigit

    #1319461

    Hi 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

    #1319496

    Hi Gilbert,

    Please add following code to Quick CSS field as well :)

    
    .second-term-description + h2 {
        padding-top: 30px;
    }
    

    Best regards,
    Yigit

    #1319910

    Thanxs 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.

    #1319962

    Hi 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

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