Posted 18 October 2012 - 09:37 PM
I am using the Base Theme and a ecommerce plugin for wordpress - thecartpress.com .
In order to display the shopping cart at header of website their documentation states that the header.php of theme should be edited and added the following
<?php $shoppingCart = TheCartPress::getShoppingCart();
printf( '%s item(s) in your <a href="%s">bag</a> – <a href="%s">Checkout</a>', $shoppingCart->getCount(), tcp_get_the_shopping_cart_url(), tcp_get_the_checkout_url() ); ?>
So how can I edit the header.php in the Base Theme as somehow only see it under pagelines template itself located at
Please assist as I would like this to be future release compatible.
Posted 19 October 2012 - 01:25 AM
You'll need to add this code as a hook into the functions.php inside the base theme. Please take a look at this post for an example of how to do this
Posted 19 October 2012 - 05:59 AM
Posted 19 October 2012 - 11:19 AM
Editing the core files is not recommend and in doing so will prevent us from providing support. I recommend you do as James suggested and use a hook. If you're unsure how create this hook, I recommend you contact one of our Pros.
Also tagged with one or more of these keywords: base theme, header.php, future updates
PageLines Framework →