Home › Forums › Themes Support › Claue › Trying to Add text above Footer on Product Category pages for SEO purposes.
Tagged: text for SEO above footer
- This topic has 18 replies, 2 voices, and was last updated 3 years, 3 months ago by
Harry.
-
AuthorPosts
-
-
March 31, 2020 at 1:20 am #35700
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
-
March 31, 2020 at 1:34 am #35701
<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. -
March 31, 2020 at 7:30 am #35703
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 -
March 31, 2020 at 8:55 pm #35715
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
-
March 31, 2020 at 9:08 pm #35716
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 -
April 1, 2020 at 9:02 pm #35752
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.
-
April 1, 2020 at 10:48 pm #35758
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 -
April 1, 2020 at 11:09 pm #35760
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
-
April 1, 2020 at 11:31 pm #35762
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 -
April 2, 2020 at 4:52 am #35780
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. -
April 2, 2020 at 8:49 am #35785
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 -
April 2, 2020 at 7:56 pm #35793
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. -
April 2, 2020 at 8:37 pm #35795
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 -
April 3, 2020 at 2:23 am #35810
-
April 3, 2020 at 9:46 am #35815
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 -
April 5, 2020 at 3:51 am #35857
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?
-
April 5, 2020 at 11:52 am #35860
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-pageKind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
November 18, 2021 at 5:51 am #42523
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 );
}
-
November 18, 2021 at 8:23 am #42527
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
-
-
AuthorPosts
You must be logged in to reply to this topic.