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

Home Forums Themes Support Claue Trying to Add text above Footer on Product Category pages for SEO purposes.

Viewing 18 reply threads
  • Author
    Posts
    • #35700
      Sgmonster
      Support Expired

      Hello:

      I would like to be able to add some text above the footer area for SEO purposes.   I found this information on the forum.   See attached word document.

      Can you confirm if this is still correct?    We tried it, but don’t believe we did it correctly.

      Also, what do you suggest to add code snippets to the functions.php?   We are not coders, so your help is appreciated!

      thank you,

      Tom

       

    • #35701
      Sgmonster
      Support Expired

      <h3>Code to add text above footer:    See Below…  Please confirm if this is correct.  This is what was written to another customer with same question.     thanks, Tom

      </h3>
      <h3>Please add more code to claue-child > functions.php</h3>
      —————————————————————————————————————————–

      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 = ‘

      ‘;

      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 .= ‘

      ‘;

       

      echo wp_kses_post( $output );

      }
      add_action( ‘woocommerce_before_main_content’, ‘jas_claue_child_wc_page_head’, 15 );

      —————————————————————————————————————
      and add below code to claue-child > style.css

      .term-description {

      display: block;

      width: 100%;

      max-width: 1170px;

      margin: 30px auto;

      }
      ————————————————————————————————————–
      <h3>Please add more code to claue > functions.php above the code for step 2</h3>
      /* 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 );

      }

      Attachments:
      You must be logged in to view attached files.
    • #35703
      Harry
      Support Expired

      Hi Tom,

      The code work on category page to move category description to bottom.

      I recommend use the code on the topic you visited not copy to document file, it will change format of code and make error.

      Kind regards

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

    • #35715
      Sgmonster
      Support Expired

      I see. okay.   Rather than move the text from top banner descripiton, Is there a way just to add text to the bottom of the pages (above the footer)?

      thanks,

      Tom

       

       

    • #35716
      Harry
      Support Expired

      Yes, the code you told will move description to bottom of products and it above footer.

      Kind regards

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

    • #35752
      Sgmonster
      Support Expired

      Hello:  I need help.  I”m circling and can’t figure out how to do this.  None of my description is appearing in Google Search Results.   I am trying to follow these instructions, but I am confused.

      https://support.google.com/webmasters/answer/7489871?hl=en

      I installed the plugin, MetaTag Manager also, but haven’t been able to figure it out.

      Can you help?

      I have zero coding experience.

    • #35758
      Harry
      Support Expired

      Hi,

      Please follow this https://search.google.com/search-console/about to install some files to search engine can index your site.

      Kind regards

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

    • #35760
      Sgmonster
      Support Expired

      okay, thanks.  I’ll check that.

      Regarding adding text above the footer,   I want to KEEP the description on top (either inside the banner, or below the banner)  rather than move it.   I am actually using the description text inside the banner and need to keep it there.

      I would like to add text to the bottom above the footer for more SEO (normally visitors dont read this portion much) Can you add that capability?

      thanks,

      Tom

    • #35762
      Harry
      Support Expired

      Hi Tom,

      It have a way to add more text above footer but it’s widget and show the same text for “shop, and all categories) not different text.

      Kind regards

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

    • #35780
      Sgmonster
      Support Expired

      thanks, but that probably won’t work.  The text i would like to add above the footer would be purely for SEO purposes.  Like in our bifocal section, I would write about bifocal sunglasses a little.

      I do have another question.  How can I add text in the very top of the home page on the black bar?
      See attached picture.

      Attachments:
      You must be logged in to view attached files.
    • #35785
      Harry
      Support Expired

      Hi Tom,

      You can change the text in Claue > Theme Option > Header and change in Header Top Left and Header Promo .

      Kind regards

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

    • #35793
      Sgmonster
      Support Expired

      Thanks.

      So, regarding the 1st question about the text above the footer, can you create a separate section above the footer  where I can add some additional text (not move the text from the top to the bottom.  It will be an entirely new section)

      The text i would like to add above the footer would be purely for SEO purposes and quite common in the industry.  See attached.

      Attachments:
      You must be logged in to view attached files.
    • #35795
      Harry
      Support Expired

      Hi Tom,

      I’m sorry it can’t add separate text for each category. It only can use widget and same text for all category and shop page.

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

    • #35810
      Sgmonster
      Support Expired

      can you add this feature?    automatically adds a graphical “tag” to the picture.   See attached.

      Attachments:
      You must be logged in to view attached files.
    • #35815
      Harry
      Support Expired

      Hi,

      By default our theme already support show “New” tag when you create new product. For other tag you have to use a plugin and you have to manual to show on/off tag.

      Kind regards

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

    • #35857
      Sgmonster
      Support Expired

      Hello:  We will be configuring shop on instagram on sunglassmonster.com.   This can involve a facebook pixel.  We used a facebook pixel on bikershades.com and also another facebook plugin and it severely slowed down the site (over a minute to load)   Do you have any best practices to start Shop on Instagram?

    • #35860
      Harry
      Support Expired

      Hi,

      Please try the plugin https://wordpress.org/plugins/shop-feed-for-instagram-by-snapppt/ and follow our document at Instagram Shop section
      http://janstudio.net/claue/document/#install-instagram-shop-plugin
      http://janstudio.net/claue/document/#create-instagram-shop-pin
      http://janstudio.net/claue/document/#create-instagram-shop-page

      Kind regards

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

    • #42523
      Sgmonster
      Support Expired

      Hello Henry:

      I found this code below, but not sure if it will work.  I want to move the category description to above the footer and below the products.    The instructions says to add code to “claue-child>functions.php”  …not sure where to find that.   I sent this message to you before, but I never got it to work.

      I had another coder add 2 new text sections to below the top banner and above the footer.  But if I can move the ‘category description’ to above the footer, then I probably won’t use the bottom text section.

      Can you check if this code below is correct, or do you have something else?  thanks,  Tom.

      <h3>Please add more code to claue-child > functions.php</h3>
      —————————————————————————————————————————–

      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 = ‘

      ‘; 

      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 .= ‘
      ‘;

       

      echo wp_kses_post( $output );

      }
      add_action( ‘woocommerce_before_main_content’, ‘jas_claue_child_wc_page_head’, 15 );

      —————————————————————————————————————
      and add below code to claue-child > style.css

      .term-description {

      display: block;

      width: 100%;

      max-width: 1170px;

      margin: 30px auto;

      }
      ————————————————————————————————————–
      <h3>Please add more code to claue > functions.php above the code for step 2</h3>
      /* 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 );

      }

       

    • #42527
      Harry
      Support Expired

      Hi Tom,

      If you only want use category description please use our code.

      1. Add below code to claue-child > functions.php

      //Change position of category text
      function remove_shop_heading() {
          remove_action( 'woocommerce_before_main_content', 'jas_claue_wc_page_head', 15 );
      }
      add_action('wp_head', 'remove_shop_heading');
      
      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' );
      
          
              if ( is_search() ) {
                  $output .= '<h1 class="mb__5 tc fs__24">' . sprintf(__( 'Search Results for: %s', 'claue' ), '<span>' . get_search_query() . '</span>' ) . '</h1>';
              } elseif ( is_shop() ) {
                  $output = '<div class="page-head pr tc"><div class="jas-container pr">';
                      $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>';
                  $output .= '</div></div>';
              } elseif ( is_product_category() ) {
                  $output = '<div class="page-head pr tc"><div class="jas-container pr">';
                      $output .= '<h1 class="mb__5 cw">' . esc_html( cs_get_option( 'wc-page-title' ) ) . '</h1>';
                      remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
                      add_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 10 );
                  $output .= '</div></div>';
              } else {
                  // Remove old position of category description
                  remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
                  $output .= '<h1 class="tc fs__24">' . single_cat_title( '', false ) . '</h1>';
                  //$output .= do_shortcode( category_description() );
                  add_action( 'woocommerce_after_shop_loop', 'woocommerce_taxonomy_archive_description', 10 );
              }
              ob_start();
              $output .= ob_get_clean();
          
      
          echo wp_kses_post( $output );
      }
      add_action( 'woocommerce_before_main_content', 'jas_claue_child_wc_page_head', 15 );

      2. Add below code to claue-child > style.css

      .term-description {
          display: block;
          width: 100%;
          max-width: 1170px;
          margin: 30px auto;
          text-align: center;
      }

      Kind regards

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

Viewing 18 reply threads

You must be logged in to reply to this topic.