Your account expired support, please renew to get your support.

Home Forums Themes Support Claue SEO text at the bottom of the page

Topic Resolution: Resolved
Viewing 16 reply threads
  • Author
    Posts
    • #39727
      DonnaJacky
      Support 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!

    • #39730
      Harry
      Support 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

    • #39733
      DonnaJacky
      Support 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.

    • #39736
      Harry
      Support 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

    • #39738
      DonnaJacky
      Support 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?

    • #39739
      Harry
      Support 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

    • #39740
      DonnaJacky
      Support Expired

      Yes, thank you!!

    • #40297
      DonnaJacky
      Support 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.

    • #40300
      Harry
      Support 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

    • #40527
      sjlabar
      Support 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.

      • #40529
        Harry
        Support Expired

        Can you send me your site url and login credentials to check?

        Thanks

        Harry
        Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #40530
      sjlabar
      Support Expired
      This reply has been marked as private.
      • #40531
        Harry
        Support Expired
        This reply has been marked as private.

        Harry
        Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #40552
      sjlabar
      Support Expired

      I need to display the category description at the bottom.  Also the block width is exceeding…

    • #40581
      sjlabar
      Support Expired

      already using this code, but the description if sowing above the products https://selection.pk/product-category/lawn/

      • #40583
        Harry
        Support 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

        • #40611
          sjlabar
          Support Expired

          updated the theme, but still category description is appearing above the product listings https://selection.pk/product-category/lawn/

          • #40618
            Harry
            Support Expired

            I see the version 2.0.0 still activate on your site. Btw, please renew your support.

            thanks

            Harry
            Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #40622
      sjlabar
      Support 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…

    • #40652
      sjlabar
      Support Expired

      any update for me please?

      • #40668
        Harry
        Support 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

        • #40669
          sjlabar
          Support Expired

          No i didn’t change any code in the parent theme.

          • #40670
            Harry
            Support Expired

            Please delete version 2.0.0 to child theme detect new version.

            Harry
            Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #40653
      DonnaJacky
      Support 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/

    • #40698
      sjlabar
      Support Expired

      Please delete version 2.0.0 to child theme detect new version.

       

      updated the child theme too, but still same

      • #40711
        Harry
        Support 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

Viewing 16 reply threads

You must be logged in to reply to this topic.