Header – Feature Campaign

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25456
    Marketeravimarketeravi
    Participant

    Hi Phoenix,
    Is there any custom css available to disable the Feature Campaign on the header for different pages? For example, I just want to show the Header Feature Campaign on the welcome page or home page. Would it be possible to turn this off on different pages? As of now the Theme option only allows me to either turn it off or turn it on all pages. Appreciate your help. http://temp2.cwshk.org

    Thank you,
    Avi

    #25489
    VeenaVeena
    Moderator

    For this you need to modify the js code .
    Pls modify fie js/main.js line no:741-761 to

    
        $('.home #campaign-header i').on('click', function (e) {
    
            var content = $('#header-campaign');
            if (content.is(":hidden")) {
                $(this).addClass('open');
                content.slideDown(300);
            } else {
                Cookies.set('mo_campaign_header', 'true', { expires: 7 });  // expires in 7 days
                $(this).removeClass('open');
                content.slideUp(300);
            }
        });
    
        if (Cookies.get('mo_campaign_header') !== undefined) {
            $('.home #campaign-header i').removeClass('open');
            $('.home #header-campaign').slideUp(300);
        }
        else {
            $('.home #campaign-header i').addClass('open');
            $('.home #header-campaign').slideDown(300);
        }
    

    After modifying the code pls clear the cache and check .

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Peak Theme Support’ is closed to new topics and replies.