Archived

This topic is now archived and is closed to further replies.

  • 0

How to edit header.php of Base Theme and keep future updates?


Question

Posted · Report post

Hi,

I am using the Base Theme and a ecommerce plugin for wordpress - thecartpress.com .

http://thecartpress.com/docs/theme-constructorsdesigners/how-to-display-number-of-items-in-the-header/

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.

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

Thanks for the help. I have gonne there but so many replies in the middle that got totally lost ...

Share this post


Link to post
Share on other sites

Posted · Report post

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.

http://www.pagelines.com/pros/

Share this post


Link to post
Share on other sites