Home › Forums › Themes Support › Claue › SEO text at the bottom of the page
- This topic has 30 replies, 3 voices, and was last updated 3 years, 9 months ago by Harry.
-
AuthorPosts
-
-
December 22, 2020 at 2:03 pm #39727DonnaJackySupport Expired
Dear Harry,
How are you?
We would like to have the SEO text at the bottom of te page, just like the following URL has: https://www.littlewonderland.nl/nl/producten/We have tried it with a code in the php.functions, but it isn’t working (add_action( ‘woocommerce_archive_description’, ‘woocommerce_taxonomy_archive_description’, 10 );).
Do you have a solution for us, so that we can add text at the bottom of te category pages?
Thanks!
-
December 22, 2020 at 4:49 pm #39730HarrySupport Expired
Hi Donna,
Please add below code to claue-child > functions.php
/* move category description below products */ add_action( 'wp_head', 'remove_my_action' ); function remove_my_action(){ remove_action( 'woocommerce_before_main_content', 'jas_claue_wc_page_head', 15 ); } function jas_claue_child_wc_page_head() { if ( ! cs_get_option( 'wc-enable-page-title' ) || ( class_exists( 'WCV_Vendors' ) && WCV_Vendors::is_vendor_page() ) ) return; $title = cs_get_option( 'wc-page-title' ); $output = '<div class="page-head pr tc"><div class="jas-container pr">'; if ( is_search() ) { $output .= '<h1 class="mb__5 cw">' . sprintf(__( 'Search Results for: %s', 'claue' ), '<span>' . get_search_query() . '</span>' ) . '</h1>'; } elseif ( is_shop() ) { $output .= '<h1 class="mb__5 cw">' . esc_html( cs_get_option( 'wc-page-title' ) ) . '</h1>'; $output .= '<p class="mg__0">' . do_shortcode( cs_get_option( 'wc-page-desc' ) ) . '</p>'; } else { // Remove old position of category description remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 ); $output .= '<h1 class="cw">' . single_cat_title( '', false ) . '</h1>'; //$output .= do_shortcode( category_description() ); add_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 40 ); add_action( 'woocommerce_after_shop_loop', 'woocommerce_product_archive_description', 40 ); } ob_start(); $output .= ob_get_clean(); $output .= '</div></div>'; echo wp_kses_post( $output ); } add_action( 'woocommerce_before_main_content', 'jas_claue_child_wc_page_head', 15 );
and below code to claue-child > style.css
.term-description { display: block; width: 100%; max-width: 1170px; margin: 30px auto; }
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
December 22, 2020 at 5:59 pm #39733DonnaJackySupport Expired
Thank you! I did.
But where can I add my text? If I add it in ”description” at category’s, I don’t see it at the pages. -
December 22, 2020 at 6:37 pm #39736HarrySupport Expired
I help you corrected the code, now please add text and check again.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
December 22, 2020 at 7:30 pm #39738DonnaJackySupport Expired
Hi Harry,
Thank you! I just add the text ”Test”, but still cannot see it, for example: https://www.koreosity.nl/product-categorie/gezicht/cleansers/
Where do I need to add the text? Description in category, right?
-
December 22, 2020 at 8:04 pm #39739HarrySupport Expired
I see the text.
Please add long texts to category description.
You will see the text.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
December 22, 2020 at 8:28 pm #39740DonnaJackySupport Expired
Yes, thank you!!
-
January 30, 2021 at 4:10 pm #40297DonnaJackySupport Expired
Dear Harry,
We want it both sides, above the page and at the bottom of the page.
The code is working, but now we cannot add text above the page, like it was. -
January 30, 2021 at 10:24 pm #40300HarrySupport Expired
Hi Jacky,
Please change code to
/* move category description below products */ add_action( 'wp_head', 'remove_my_action' ); function remove_my_action(){ remove_action( 'woocommerce_before_main_content', 'jas_claue_wc_page_head', 15 ); } function jas_claue_child_wc_page_head() { if ( ! cs_get_option( 'wc-enable-page-title' ) || ( class_exists( 'WCV_Vendors' ) && WCV_Vendors::is_vendor_page() ) ) return; $title = cs_get_option( 'wc-page-title' ); $output = '<div class="page-head pr tc"><div class="jas-container pr">'; if ( is_search() ) { $output .= '<h1 class="mb__5 cw">' . sprintf(__( 'Search Results for: %s', 'claue' ), '<span>' . get_search_query() . '</span>' ) . '</h1>'; } elseif ( is_shop() ) { $output .= '<h1 class="mb__5 cw">' . esc_html( cs_get_option( 'wc-page-title' ) ) . '</h1>'; $output .= '<p class="mg__0">' . do_shortcode( cs_get_option( 'wc-page-desc' ) ) . '</p>'; } else { // Remove old position of category description $output .= '<h1 class="cw">' . single_cat_title( '', false ) . '</h1>'; //$output .= do_shortcode( category_description() ); add_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 40 ); add_action( 'woocommerce_after_shop_loop', 'woocommerce_product_archive_description', 40 ); } ob_start(); $output .= ob_get_clean(); $output .= '</div></div>'; echo wp_kses_post( $output ); } add_action( 'woocommerce_before_main_content', 'jas_claue_child_wc_page_head', 15 );
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
February 22, 2021 at 7:45 pm #40527sjlabarSupport Expired
Hello,
I am trying to display category description below product listings, but failed, followed the above mentioned method, but it doesn’t work for me.
-
February 22, 2021 at 8:06 pm #40530sjlabarSupport ExpiredThis reply has been marked as private.
-
February 23, 2021 at 1:36 pm #40552sjlabarSupport Expired
I need to display the category description at the bottom. Also the block width is exceeding…
-
February 24, 2021 at 9:35 am #40577HarrySupport Expired
Hi,
Please follow this http://support.janstudio.net/forums/topic/seo-text-at-the-bottom-of-the-page/#post-39730
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
February 24, 2021 at 12:20 pm #40581sjlabarSupport Expired
already using this code, but the description if sowing above the products https://selection.pk/product-category/lawn/
-
February 24, 2021 at 4:17 pm #40583HarrySupport Expired
Please try update theme to latest version. I see the theme running on your site outdated. http://support.janstudio.net/forums/topic/updating-the-theme/
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio-
February 26, 2021 at 2:27 am #40611sjlabarSupport Expired
updated the theme, but still category description is appearing above the product listings https://selection.pk/product-category/lawn/
-
-
-
February 26, 2021 at 10:51 pm #40622sjlabarSupport Expired
I updated to the latest version, but still no change, and some color and fonts got changed, that’s why i activated the old verison.
Yes will renew the support soon…
-
March 2, 2021 at 3:37 am #40652sjlabarSupport Expired
any update for me please?
-
March 2, 2021 at 5:36 pm #40668HarrySupport Expired
Did you change any code in parent theme? I used code on other site and all work well only on your site it not work.
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
March 2, 2021 at 3:39 am #40653DonnaJackySupport Expired
Hi Harry,
And how can I add the SEO text above and below the page? Like this page: https://www.littlewonderland.nl/nl/producten/nieuwe-producten/
-
March 2, 2021 at 5:29 pm #40665HarrySupport Expired
Hi Jacky,
Did you use the code i suggest on this reply http://support.janstudio.net/forums/topic/seo-text-at-the-bottom-of-the-page/#post-40300
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio-
March 8, 2021 at 4:51 pm #40831DonnaJackySupport Expired
Hi Harry,
Yes, I did. How can I set it up like this page: https://www.littlewonderland.nl/nl/producten/nieuwe-producten/ (they have it at the top and bottom of the page).
-
March 8, 2021 at 6:06 pm #40834HarrySupport Expired
i’m sorry theme doesn’t support separate description for category. It only support heading on top and description on bottom.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
-
-
March 3, 2021 at 5:07 pm #40698sjlabarSupport Expired
Please delete version 2.0.0 to child theme detect new version.
updated the child theme too, but still same
-
March 3, 2021 at 10:55 pm #40711HarrySupport Expired
Hi,
The issue because you turn off page head in Theme Option > WooCommerce > General Settings > Enable Page Title.
I turn it on now the description move to bottom.
Please renew your support.
Thanks
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
-
AuthorPosts
You must be logged in to reply to this topic.