-
AuthorPosts
-
October 23, 2020 at 5:33 pm #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,
BjorkOctober 26, 2020 at 6:23 am #1255618Hey 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,
RikardOctober 28, 2020 at 12:56 pm #1256351Hey 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,
BjorkOctober 31, 2020 at 5:44 pm #1257267Hi 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,
NikkoNovember 30, 2020 at 6:50 pm #1264044Hi
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,
BjorkDecember 1, 2020 at 4:23 am #1264113Hi 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,
NikkoDecember 2, 2020 at 1:55 pm #1264493Thank you so much!
This worked exactly the way I was hoping it would.Best regards,
BjorkDecember 2, 2020 at 6:12 pm #1264548Hi Bjork,
We’re glad that we could help :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Banner below menu on all pages’ is closed to new replies.