Jump to content


Photo
- - - - -

function.php


Best Answer pspr , 18 April 2013 - 08:32 PM

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

Go to the full post


  • Please log in to reply
4 replies to this topic

#1 pspr

pspr

    Super Member

  • Members
  • 114 posts
  • Country: Country Flag

Posted 18 April 2013 - 05:14 PM

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.

Please Login or Register to see this Hidden Content

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!



#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 18 April 2013 - 07:20 PM

It's in Appearance > Editor



#3 pspr

pspr

    Super Member

  • Members
  • 114 posts
  • Country: Country Flag

Posted 18 April 2013 - 08:08 PM

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



#4 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 18 April 2013 - 08:18 PM

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



#5 pspr

pspr

    Super Member

  • Members
  • 114 posts
  • Country: Country Flag

Posted 18 April 2013 - 08:32 PM   Best Answer

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