Hi,
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
˜/wp-content/themes/pagelines
Please assist as I would like this to be future release compatible.
How to edit header.php of Base Theme and keep future updates?
Started by
sapcmc
, Oct 18 2012 09:37 PM
base theme header.php future updates
3 replies to this topic
#1
Posted 18 October 2012 - 09:37 PM
#2
Posted 19 October 2012 - 01:25 AM
Hi there,
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
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
#3
Posted 19 October 2012 - 05:59 AM
Thanks for the help. I have gonne there but so many replies in the middle that got totally lost ...
#4
Posted 19 October 2012 - 11:19 AM
Hi,
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.
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 →
Customizations →
Base Theme - Still the best way to make customizations?Started by josh1178 , 02 Oct 2012 |
|
|










