I'm having a hard time trying to remove the "Related products" tab completely from my website.
I have searched for a solution but I have not had any luck so far. I would really appreciate if someone out there had a solution for this :)
The tab that i want to remove is shown here, below the image on this website for example; http://reservedelpilleovn.dk/produkt/gloederoer-eltaender-10-mm-x-200-mm-400-watt-2/
Hoping someone has a solution! :)
You'll need to add a function to your functions.php and hook into it via woocommerce_related_products_args:
function wc_remove_related_products_tab( $args ) {
return array();
}
add_filter('woocommerce_related_products_args','wc_remove_related_products_tab', 10);
Related
I'm trying to remove the word (-wordpress) from browser tab of login page but couldn't figure it out. Will be great if anyone could help here.
As it shows in the screenshot, im trying to remove the highlighted in yellow. Thanks
You'll want to do this in your theme's functions.php file. Here are some modifications that you can use:
function my_login_logo_url() {
return home_url();
}
add_filter( 'login_headerurl', 'my_login_logo_url' );
function my_login_logo_url_title() {
return 'Your Site Name and Info';
}
add_filter( 'login_headertitle', 'my_login_logo_url_title' );
For more information, please refer to the WordPress Codex page here.
I have to say I have found what you were looking for!
You'll have to head over to the 'wp-login' file and search for the $login_title attribute.
There you'll have to search for the word 'Wordpress' itself and erase it.
I fount mine on line 72.
You'll see the word as a string inside the parenthesis.
You'll have to go to the public_html and find the file there and change it.
I really hope It helped!
Good luck to anyone who reads it!
I'm currently working on a custom WooCommerce from a WordPress theme I have built from scratch. So far everything is working perfectly but I have come across an issue that I can't seem to get my head around. When I click on a product I am taken to the single product page, everything works as expected when I scroll down to the tabs section I am seeing the Description tab, but there is no reviews tab. I spent a big chunk of the weekend trying to find a solution to displaying this but I have been unsuccessful.
I have searched the project for the following lines to make sure I haven't disabled the functionality.
remove_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30);
remove_action( 'woocommerce_product_tab_panels', 'woocommerce_product_reviews_panel', 30);
I am completely stumped now. I have tried Google to find a solution, but I can only find articles and forum posts for pre-existing bought themes. Now I'm left wondering if I have actually missed something. I can display the review stars and it is correctly displaying the number of reviews but when I click on the url to go to the reviews the address bar displays wp-lds-shop/product/happy-ninja/#reviews.
I would really appreciate any help or advice on this.
I have found the following solution, which worked for me.
You have to declare WooCommerce support, otherwise the "Review" tab will not show up.
I followed this link: https://github.com/woocommerce/woocommerce/wiki/Declaring-WooCommerce-support-in-themes and added this code at the bottom of my functions.php
function mytheme_add_woocommerce_support() {
add_theme_support( 'woocommerce' );
}
add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' );
I hope this works for you!
Please Check This:
Reviews are enabled in:
How to enable reviews remove Reviews tab
just add to function.php template
add_filter( 'woocommerce_product_tabs', 'yikes_remove_description_tab', 20, 1 );
function yikes_remove_description_tab( $tabs ) {
// Remove the description tab
if ( isset( $tabs['description'] ) ) unset( $tabs['description'] );
return $tabs;
}
Sorry for the "Hlp" in the title - It seems that the forum has listed "Help" as a restricted word.
Anyway, I wonder if someone can help me? Ive been searching for a while to no avail.
In the WordPress contextual help tab, I have created my own custom items - great!
I want to unset the default WordPress help items (overview/ navigation/ layout/ content) but I cannot seem to find a code snippet.
Appreciate any advice.
Thank you
I finally managed to find the below code which removes the default help tabs as I wanted.
add_action('admin_head', 'remove_default_tabs');
function remove_default_tabs() {
$screen = get_current_screen();
$screen->remove_help_tabs();
}
I am in need little help not knowing what to do this is why am here to get guidiance from you.
I am trying to add my wordpress shortcode to the page title below is the shortcode am using:
[dyna dynami="cittiess"]
But, it's not working; it shows [dyna dynami="cittiess"] rather then spun text.
This short code works in the content area but its not working in the title area kindly tell me what edits I should make as I am new to this please cheers.
Any solutions? Cheers.
Short codes does not work in title by default. So if you want to enable short codes in title then you need to put this code in your functions.php file:
add_filter( 'the_title', 'do_shortcode' );
I am creating a website using the Candidate theme in wordpress.
There are a number of posts in my website. My home page is set to show the most recent five posts in it.
I have used a plugin named as 'Share This' to show the share buttons for facebook, twitter and google+ just above the contents of my posts. The buttons got displayed above the contents of the posts. Now the problem arose when the buttons got displayed in my home page too where the recent posts along with a short summary is displayed.
This started looking quite mess. I tried a lot to remove these but couldn't.
While researching for this, in some wordpress support forums, i found that the following codes may work
remove_filter( 'get_the_excerpt', 'st_remove_st_add_link', 9 );
remove_filter( 'the_excerpt', 'st_add_widget' );
This did no chage. And I used the following code too
function remove_sharethis() {
if ( ! is_singular( array( 'post', 'page' ) ) ) {
remove_filter('the_content', 'st_add_widget');
remove_filter('the_excerpt', 'st_add_widget');
remove_action('wp_head', 'st_widget_head');
}
}
add_action( 'template_redirect', 'remove_sharethis' );
Is there any way to do so??
I need help desperately.
And even the buttons are not seen completely. They are seen cut-off.
And there is one more problem in this. If I try sharing the posts through facebook share button of this plugin, the contents of the posts donot load at the share screen. Rather it just shows the website's name.
Please help me if there is someone who has better knowledge in this sort of problems and this plugin.
Simple solution, you could use CSS to hide the share buttons from your home page.
Will help if you can share a link to the homepage
The AddThis plugin author responds with specific help to postings here.
HTH