-
AuthorPosts
-
September 11, 2018 at 7:24 pm #1008537
All the pages of my site have a full width easy image slider at the top, and I’ve also added the full width sub menu as my main menu.
I would like to put both on the page that appears when people do a search.
How can I go about this?
I’ll post my site info. below.September 11, 2018 at 8:46 pm #1008602Hey Moondreamer21,
You need to create a custom header for the search page.
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
VictoriaSeptember 11, 2018 at 11:27 pm #1008646I have already worked on this topic this with Ismael and he was able to help a lot, perhaps he can take a look?
Here’s a link to the other thread where he was helping me get this header/slider images on certain pages – https://kriesi.at/support/topic/advanced-layout-editor-for-blog-post-page/September 12, 2018 at 3:21 pm #1008975Hi,
I modified the search page for you – I had to add this code to the child theme functions.php file:
add_action('ava_after_main_title', 'ava_after_main_title_mod', 10, 1); function ava_after_main_title_mod() { if(!is_search()) return; echo do_shortcode("[av_slideshow_full size='featured' min_height='0px' stretch='' animation='slide' conditional_play='' autoplay='false' interval='5' control_layout='av-control-default' src='' attachment='' attachment_size='' position='top left' repeat='no-repeat' attach='scroll' av_uid='av-jjm0kbb6'] [av_slide_full id='14787' av_uid='av-4pbdy1'][/av_slide_full] [/av_slideshow_full] [av_submenu which_menu='' menu='660' position='center' color='alternate_color' mobile='active' mobile_submenu='aviaTBmobile_submenu' av_uid='av-jjm0iu4w'] [av_submenu_item title='Menu Item 1' link='' linktarget='no' button_style='' av_uid='av-5ahrxl'] [av_submenu_item title='Menu Item 2' link='' linktarget='no' button_style='' av_uid='av-4og3eh'] [/av_submenu]"); }
You can test it here: https://www.barrelracingtips.com/?s=horse
Best regards,
PeterSeptember 12, 2018 at 3:56 pm #1008994Thanks so much Dude! Although I was wanting the same slider image from my Articles + Videos page (link in PC).
Is there a way I can change that image out in the code you provided?
Thanks again!September 12, 2018 at 5:45 pm #1009035Hey!
Yes I changed the code for you – basically I just replaced the value 14787 in the code above with 14746 (attachment id of the other slide image).
Regards,
PeterSeptember 12, 2018 at 7:58 pm #1009064Sweet, thanks a bunch!
September 13, 2018 at 3:22 am #1009158 -
AuthorPosts
- You must be logged in to reply to this topic.