Jump to content
Sign in to follow this  
pspr

function.php

Recommended Posts

pspr    0
pspr

What up guys. I'm using the base theme which is a child theme for pagelines. I am trying to make a change in the woocommerce customization and I need to edit the function.php file. Where is the function.php located??

 

This is the change i need to make. 

 

 

There is no way in the settings but there is a hook that you can use to remove the buttons.  You would add this information to the functions.php file either in a child theme if you are using one or by installing the Pagelines Customize Plugin (free in the store) and putting this code in the functions.php file.

1
2
3
4
5
add_action( 'woocommerce_after_shop_loop_item', 'remove_add_to_cart_buttons', 1 );
 
function remove_add_to_cart_buttons() {
    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
}

Hope that helps.

 

Ellen

 

 

THANKS GUYS!

Share this post


Link to post
Share on other sites
pspr    0
pspr

can i just go to appearance > editor > function.php and paste the code into there? because I dont see any php coding in that file...

Share this post


Link to post
Share on other sites
catrina    103
catrina

Can you please take a screenshot of your Appearance > Editor screen and upload it here? (Please make sure it is a JPG or PNG)


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
pspr    0
pspr

thanks for your help catrina  

 

I actually got it to work. Not sure if i did it the right way however.

 

I took the sceenshot. loaded it to paint and saved it as jpeg. but I dont see the upload button on here...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×