Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #981771

    Currently I can add a Shop Banner to WooCommerce category pages by going to the Enfold Theme Options > Shop Options and controlling the banner’s settings there.

    I would like to be able to call the same Shop Banner element to several of my site pages (but not all of them). Is it possible to add some code that would call this element to a site page under the header like it naturally does in my WooCommerce category pages?

    Thanks!

    #982178

    Hey jpoley04,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #982315

    Sure.

    #982366

    Hi,

    To display a shop banner image elsewhere on selected pages of the site please create a header widget area and add the below CSS.

    The below code will display the banner on all pages by default.

    To display widget on selected pages, first hide the widget on all pages with the below code:

    .widget {
       display:none;
    }

    Then use the page ID of the page on which you want to display before .widget in the “Initiate Flexbox” section of the below code:

    /************************************
    
    Full-width banner below logo and menu
    
    *************************************
    
    
    CSS Settings:
    
    » Initiate Flexbox
    » Topbar
    » Header
    » Logo
    » Menu
    » Widget
    » Social icons
    » Search
    » Cart icon
    
    ***********************************/ 
    
    
    
    /*--------------------------------
    
    » Initiate Flexbox
    
    --------------------------------*/
    
    
    
    /* Header */
    .responsive #top #header,
    /* Top bar */
    .responsive #top #header #header_meta,
    /* Search icon */
    .responsive #top #header #menu-item-search a,
    /* Cart icon */
    .responsive #top #header a.cart_dropdown_link,
    /* Social icon */
    .responsive #top #header #header_main nav .social_bookmarks,
    /* Logo */
    .responsive #top #header #header_main .inner-container .logo,
    /* Main menu, cart and social icons */
    .responsive #top #header #header_main .inner-container .main_menu,
    /* Widgets */
    .responsive #top #header #header_main .inner-container .widget,
    /* Header inner container */
    #top #header #header_main .container.av-logo-container .inner-container {    
        display: flex;
        position: relative;
    }
    
    
    
    
    /*--------------------------------
    
    » Topbar
    
    --------------------------------*/
    
    
    
    /* Top bar */
    
    .responsive #top #header #header_meta {
        flex-basis: 100%;    
    }
    
    
    
    /*--------------------------------
    
    » Header
    
    --------------------------------*/
    
    /* Height */
    
    #top #header #header_main .container.av-logo-container {
        height: inherit;   /* Auto height: Header takes the height of the contents */
    }
    
    
    /* Header inner container */
    
    #top #header #header_main .container.av-logo-container .inner-container {
      height: inherit; 
      position: relative !important;
      flex-wrap: wrap;
      justify-content: space-between;
    }
    
    
    /* Wrappers 
    --------------------------------*/
    
    /* Header content and Topbar */
    
    .responsive #top #header {
        flex-wrap: wrap;
    }
    
    /* Header contents: Logo, Menu, Social Icons and Widgets. */
    
    .responsive #top #header #header_main {
        flex-basis: 100%;    
    }
    
    /* Transparent header 
    --------------------------------*/
    
    .responsive.html_header_transparency #top #wrap_all #header {
        position: absolute;
    }
    
    
    /* Main content: 
    -----------------------*/
    
    .responsive #top #main { 
        padding-top: 0px; /* Gap between the content and header */
    } 
    
    
    /* Fixed header 
    --------------------------------*/
    
    /* Fixed header */
    
    .html_header_sticky.html_header_transparency #top #wrap_all #header,
    .html_header_sticky #top #wrap_all #header { 
        position: fixed; 
    } 
    
    
    /* Fixed header and page content gap. 
       Padding value should be same as the fixed header height. */
    
    .html_header_sticky:not(.html_header_transparency) #top #wrap_all #main { 
        /*padding-top: 145px !important; */
    } 
    
    @media only screen and (max-width: 767px) {
    .html_header_sticky #top #wrap_all #main {
        /*padding-top: 145px !important; */
    }}
    
    
    
    
    
    /*--------------------------------
    
    » Logo
    
    --------------------------------*/
    
    
    
    /* Logo */
    
    .responsive #top #header #header_main .inner-container .logo {
       order: 2;
        flex-basis: auto;
    
        /*width: auto;*/
        min-width: 80px; /* Minimum width of the logo in small screens */
        z-index: 1;
    }
    
    /* Logo image size */
    .responsive #top #header .logo,
    .responsive #top #header .logo a,
    .responsive #top #header .logo img { /* Logo Width and alignment */
        width: auto;         
        max-width:250px;  /* Logo width: (auto | 100% | px );  Set auto to display the uploaded image size. Select full size in media library */
        height: auto; /* Height specification is not required. It is proportional to the max width of the logo */
        align-items: center;
        align-self: center;
        justify-content: center;
    }
    
    /* center transparency logo */
     .responsive #top #header .logo span img {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    } 
    
    
    /*--------------------------------
    
    » Menu
    
    --------------------------------*/
    
    
    
    /* Menu outer container: Menu with siblings cart and social icons */
    
    .responsive #top #header #header_main .inner-container .main_menu {
        order: 3;
        flex-basis: auto;   /* Use calc to minus the width of the logo */
        align-items: center;
        align-self: center;
    }
    
    /* Navigation */
    
    #header .av-main-nav {
        display: flex;
        flex-wrap: nowrap;
    }
    
    /*  Activate burger menu  */
    
    @media only screen and (max-width: 1000px) {
        #top #header .av-main-nav>li.menu-item {
            display: none!important;
        }
        #top #header .av-burger-menu-main {
            cursor: pointer;
            display: block!important;
        }
    }
    
    @media only screen and (max-width: 767px) {
    
    /* Mobile menu position fix */
    .responsive #top .av-logo-container .avia-menu {
        display: flex!important;
        align-items: center;
    }}
    
    
    /*--------------------------------
    
    » Widget
    
    --------------------------------*/
    
    
    /* Widgets */
    
    .responsive #top #header #header_main .inner-container .widget {
        order: 4;
        flex-basis: 100%;
        padding: unset;
        clear: none!important;
    
        align-self: center;
        align-items: center;
        z-index: 1;
    
    }
    
    .responsive #top #header #header_main .inner-container .widget > div {
        display: flex;
        align-items: center;
    
        width: 100%;
        line-height: 14px;
        padding:0 10px;
    }
    
    
    
    
    
    /*--------------------------------
    
    » Social icons
    
    --------------------------------*/
    
    
    
    
    /* Flex support and position fix */
    .responsive #top #header #header_main nav .social_bookmarks {
        display: flex;
         top: auto;
         margin-top: 0;
         align-items: center;
    }
    /* Inherit height for flex alignment */
    #top .av-logo-container .social_bookmarks li {
        height: inherit;
    }
    
    
    
    
    /*--------------------------------
    
    » Search 
    
    --------------------------------*/
    
    
    
    /* Your styles here */
    
    
    
    /*--------------------------------
    
    » Cart 
    
    --------------------------------*/
    
    
    
    @media only screen and (max-width: 767px) {
    .responsive #top #menu-item-shop.cart_dropdown {
        display: flex;
        align-items: center;
    }
    .cart_dropdown .dropdown_widget .avia-arrow {
        display: none;
    }}

    Best regards,
    Vinay

    #982923

    Thanks for the reply.

    I’ve applied the steps you’ve recommended. But it appears to have lengthened the height of my header and moved my menu links below the header. I’ve attached a link as an example.

    #982936

    Hi,

    I checked your site but could not see the header widget.

    Please add a banner image in WordPress > Appearance > Widget > Header > and it will work for you ;)

    Then you can use a widget login plugin to display the header widget on selected pages.

    Best regards,
    Vinay

    #983115

    I just added an image to WordPress > Appearance > Widget > Header and unfortunately I’m having the same problem.

    The menu has almost quadrupled in height.

    And it looks like the image that I just added to the header widget persists no matter how far down you scroll. You can see in the background how the Shop Banner disappears as you scroll, but the header widget will not.

    #983902

    Hi,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.

    Best regards,
    Vinay

    #985285

    Here you go.

    #985372

    Hi,

    Thank you for the credentials. I checked your site, all the settings looks good. But I’m not sure why the widgets are not showing. There could be multiple reasons.

    1. Please deactivate all plugins for testing purpose.
    2. Update the theme via FTP to the latest version 4.4.1

    Let us know if you still have an issue.

    Best regards,
    Vinay

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.