Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #15488

    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!

    #87715

    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>";

    #87716

    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.

    #87717

    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

    #87718

    Thank you – that worked

    #87719

    P. S. Will this change interfere with any other functionality?

    #87720

    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

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Change the "Close" link in the header socket’ is closed to new replies.