Home Forums Weaver Xtreme Theme Adding PHP code

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #76866
    ROBIN
    Participant

    I could have sworn that there use to be a place I could add php code snippets but I have looked and looked and I can no longer find where I can do that.  It looks like it has been deleted.  Problem is, I had some code snippets in the PHP area (This is an old Website) and not what I had in in there is no longer working.

    Website is BellaAnn.com

    Thank you in advance if I am blind and you can point out where that feature went.

     

     

    #76869
    User
    Moderator

    @Robin

    Is this what you seek:

    Shortcode: [php] – X-Plus

    #76870
    ROBIN
    Participant

    Thank you, that isn’t what I am looking for.  I am fairly certain there use to be a box in the Advanced Options tab, where I could past PHP snippets.  Similar to where we can add CSS in the Main Menu Fonts and Customs.

    What I am trying to do is to add this:

    /** * Remove related products output */ remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_related_products’, 20 );

    Any Suggestions?

    #76871
    User
    Moderator

    @Robin

    Plus is not my forte as I don’t use it…. but online search says…

    1) Go to Weaver Xtreme > Theme Options > Custom Code (or look for a “Custom PHP” or “Custom Code” tab depending on your version).
    2) Locate the section for PHP Code or Custom PHP Functions.
    3) Paste the code:

     add_action('init', function() {
    if (function_exists('remove_action')) {
    remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );
    }
    }); 

    Regards!

    #76872
    ROBIN
    Participant

    Ya, I think that has disappeared.  I use to use it all the time.  @Weaver  Can you direct me?

    #76874
    Weaver
    Keymaster

    The [PHP] short code is supported by Weaver Xtreme Plus. Open the dashboard, go to Appearance + Exreme Plus, and the PHP tag explains use. You must check the checkbox to enable it.

     

    #76889
    Private Reply
    ROBIN
    Participant
    This reply has been marked as private.
    #76927
    ROBIN
    Participant

    @Weaver There use to be a place where you could cut and past PHP code for the entire page.  It was in additional options.  Has that been removed?

    #76928
    ROBIN
    Participant

    Never mind, I installed a plug in that will allow me to add the PHP code.  Have a great day!

    #76930
    Weaver
    Keymaster

    I answerd the question on the 15th. It is a Weaver Xtreme Plus option.

     

    #77148
    ROBIN
    Participant

    @Weaver  The area I was talking about is back.  It must have been an update issue.

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.