-
-
Hello, I’d like to remove the WooCommerce cart icon from my nav bar. Is there an option within the theme to disable WooCommerce from the site entirely or do I need to edit the code? Also, I’ve added a button to my nav bar but the padding seems to be off—the button is not centered within the bar. How can I fix this? Site is https://garrigans.hostcentric.com/new-site/ Thanks, Ivy
-
I would also like the button link in the navigation bar to open in a window, if you could please advise on this as well. Thank you!
-
Hello,
To remove the woocommerce shopping cart icon, either uninstall woocommerce plugin(if you do not use it) or add this code into your custom css box:
.header_tools .cart {display: none;}
2-To open header button in new tab, go to file functions-tower.php and find these lines:<!-- Header Button --> <a href="<?php echo esc_attr($cl_redata['header_button_link']) ?>" class="btn-bt <?php echo esc_attr($cl_redata['overall_button_style'][0]) ?> header_button"><?php echo esc_attr($cl_redata['header_button']) ?></a> <!-- End Header Button -->
Replace with these:
<!-- Header Button --> <a href="<?php echo esc_attr($cl_redata['header_button_link']) ?>" target="_blank" class="btn-bt <?php echo esc_attr($cl_redata['overall_button_style'][0]) ?> header_button"><?php echo esc_attr($cl_redata['header_button']) ?></a> <!-- End Header Button -->
Best regards!
-
Thank you for the WooCommerce fix.
Also, thank you for the code to open the header button link in a new tab. The only other issue I am still encountering is the header button itself seems to not be centered in the navigation bar. It appears that the padding is off on the top and bottom of the bottom. How can I fix this?
Website it: https://garrigans.hostcentric.com/new-site/
Thank you!
-
Hello,
For that, please add this code into your custom css box:
a.btn-bt.default.header_button { margin-top: -20px; }
Best regards!
-
All right, I am all set. These custom codes worked. Thank you!
-
You must be logged in to reply to this topic.