Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1255314

    Hi Enfold team
    I am wondering how I place a banner below the menu on all my pages? I have been trying to figure out a way to use the widgets and custom widgets, but it seems like they would need to be placed manually on all pages. Is there a better solution to this?

    Thank you,
    Bjork

    #1255618

    Hey Bjork,

    Could you post a link to your site, and try to explain a bit further where exactly you would like to place your banner please? If you have a screenshot or mockup highlighting your intentions then that would help.

    Best regards,
    Rikard

    #1256351

    Hey Rikard,
    Below I will link to an image of where I am trying to place an image that is always visible (on all pages and posts).
    I will also link to the website.

    Best regards,
    Bjork

    #1257267

    Hi Bjork,

    Try using this hook ava_after_main_container :

    function enfold_after_main_container() {
        // some code here
    }
    add_action('ava_after_main_container', 'enfold_after_main_container');

    Hope it helps.

    Best regards,
    Nikko

    #1264044

    Hi
    I am still a little confused.
    Can I place this hook in the custom function file?

    And if so, how do I insert the custom widget I created?
    I have a difficult time finding any class or id on the widget I created.

    Thank you,
    Bjork

    #1264113

    Hi Bjork,

    Here are the steps:
    1. Go to Appearance > Editor in your WordPress dashboard.
    2. Select the correct theme or child theme from the select theme option on top.
    3. After selecting the correct theme, you may notice a lot more files depending on the theme you have. Browse the file “Theme Functions” or “functions.php”. ( You can also use an FTP client and navigate to wp-content\themes\enfold-child\functions.php )
    4. Add the code to the bottom of the functions.php file as shown in the below example.

    function enfold_after_main_container() {
        dynamic_sidebar( 'subheader' );
    }
    add_action('ava_after_main_container', 'enfold_after_main_container');

    5. Navigate to Dashboard > Appearance > Widgets
    6. Create a new widget area named subheader
    7. Place your widget inside that widget area.
    Hope this helps.

    Best regards,
    Nikko

    #1264493

    Thank you so much!
    This worked exactly the way I was hoping it would.

    Best regards,
    Bjork

    #1264548

    Hi Bjork,

    We’re glad that we could help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Banner below menu on all pages’ is closed to new replies.