Add snippet of PHP code to header area (custom widgets)
Hi all,
Quick question: where would I add a bit of PHP code that I want to appear in my header area? I have created a custom header area with 2 widget areas, and obviously I can't use PHP code in a widget. I tried looking at the theme files, but could not determine where I should put it. Here is the code: PHP Code:
I would like for the cart information (code above) to be displayed between the search bar and the navigation bar in the header. I'm using the most current version of WP and Atahualpa, and Woocommerce as my shopping cart. Any help is greatly appreciated :) |
actually you can use php in a widget if you use a plugin like 'exec php'. You can not put php in the theme options anymore due to a WordPress restriction that prevents themes from doing it (why they let widget's do and not themes is a curious question)
Try using the plugin and see it that solves your issue |
All times are GMT -6. The time now is 08:43 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.