I would like to remove the "Close" link from the header socket so that the header displays all of the time. Ideally, I'd like to replace it with a View Cart link. I am not using the WooCommerce plugin.
How do I make this happen?
Thanks!
I would like to remove the "Close" link from the header socket so that the header displays all of the time. Ideally, I'd like to replace it with a View Cart link. I am not using the WooCommerce plugin.
How do I make this happen?
Thanks!
Add following code to css/custom.css to hide the close button:
.close_info_text{
display: none;
}
If you want to change the button code (eg caption + link target) search for following code in functions.php:
$output .= "<div class='infotext'>$bannerText <a class='close_info_text rounded' href='#close'>".__('close','avia_framework')."</a></div>";Thank you. Before I posted this question, I did try to modify the functions.php code. I changed the title and URL as follows, but when the link was clicked, it still closed the header and did not open the shopping cart page:
$output .= "<div class='infotext'>$bannerText <a href='SHOPPINGCART URL HERE'>".__('VIEW CART,'avia_framework')."</a></div>";
Can you tell me what I'm doing wrong? Does it have something to do with the avia_framework line? I'm not sure what that does.
Hi!
Open up js/avia.js and delete following code:
//activate html5 flare video player
if(jQuery.fn.avia_hide_info_text)
jQuery("#info_text_header").avia_hide_info_text();
This should solve the issue.
Regards,
Peter
Thank you - that worked
P. S. Will this change interfere with any other functionality?
Hi jeanstorms,
Glad that Peter helped you. :) The code above will only affect the info text header, and will not cause issue to the functionality of other elements. :)
Cheers,
Ismael
This topic has been closed to new replies.