Home › Forums › Weaver Xtreme Theme › Adding PHP code
- This topic has 10 replies, 3 voices, and was last updated 2 months, 2 weeks ago by
ROBIN.
-
AuthorPosts
-
May 13, 2026 at 22:17 UTC - Views: 65 #76866
ROBIN
ParticipantI 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.
May 14, 2026 at 02:13 UTC - Views: 51 #76869User
ModeratorMay 14, 2026 at 19:40 UTC - Views: 48 #76870ROBIN
ParticipantThank 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?
May 15, 2026 at 02:47 UTC - Views: 47 #76871User
ModeratorPlus 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!
May 15, 2026 at 04:21 UTC - Views: 42 #76872ROBIN
ParticipantYa, I think that has disappeared. I use to use it all the time. @Weaver Can you direct me?
May 15, 2026 at 19:59 UTC - Views: 38 #76874Weaver
KeymasterThe [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.
May 17, 2026 at 22:35 UTC - Views: 34 #76889This reply has been marked as private.May 21, 2026 at 15:44 UTC - Views: 27 #76927ROBIN
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?
May 21, 2026 at 16:16 UTC - Views: 25 #76928ROBIN
ParticipantNever mind, I installed a plug in that will allow me to add the PHP code. Have a great day!
May 22, 2026 at 04:57 UTC - Views: 21 #76930Weaver
KeymasterI answerd the question on the 15th. It is a Weaver Xtreme Plus option.
June 19, 2026 at 14:24 UTC - Views: 10 #77148 -
AuthorPosts
- You must be logged in to reply to this topic.

