Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #494410

    Hi,
    I would like to replace the header on the 404 and Search Results pages with something like this:

    [av_section min_height='custom' min_height_px='200px' padding='small' shadow='no-border-styling' bottom_border='no-border-styling' id='' color='main_color' custom_bg='#6c7886' src='' attachment='17' attachment_size='full' attach='fixed' position='center center' repeat='stretch' video='' video_ratio='16:9' overlay_opacity='0.5' overlay_color='' overlay_pattern='' overlay_custom_pattern='']
    [av_one_fifth first min_height='' vertical_alignment='' space='' custom_margin='' margin='0px' padding='0px' border='' border_color='' radius='0px' background_color='' src='' background_position='top left' background_repeat='no-repeat']

    [av_image src='https://intermarriedfamilies-genesisprizematch.org/wp-content/uploads/2014/09/JFN-Vertical-white160x174.png' attachment='148' attachment_size='full' align='center' animation='pop-up' styling='no-styling' hover='' link='manually,https://www.jfunders.org/' target='_blank' caption='' font_size='' appearance='' overlay_opacity='0.4' overlay_color='#000000' overlay_text_color='#ffffff'][/av_image]

    [/av_one_fifth][av_three_fifth min_height='' vertical_alignment='' space='' custom_margin='' margin='0px' padding='0px' border='' border_color='' radius='0px' background_color='' src='' background_position='top left' background_repeat='no-repeat']

    [av_heading tag='h1' padding='10' heading='The Jewish Funders Network and The Genesis Prize Foundation<br>Matching Grant Initiative<br/>' color='custom-color-heading' style='blockquote modern-quote modern-centered' custom_font='#79acdd' size='44' subheading_active='' subheading_size='15' custom_class=''][/av_heading]

    [/av_three_fifth][av_one_fifth min_height='' vertical_alignment='' space='' custom_margin='' margin='0px' padding='0px' border='' border_color='' radius='0px' background_color='' src='' background_position='top left' background_repeat='no-repeat']

    [av_image src='https://intermarriedfamilies-genesisprizematch.org/wp-content/uploads/2014/09/GPF_logo160x174.jpg' attachment='110' attachment_size='full' align='center' animation='pop-up' styling='no-styling' hover='' link='manually,http://www.genesisprize.org/' target='_blank' caption='' font_size='' appearance='' overlay_opacity='0.4' overlay_color='#000000' overlay_text_color='#ffffff'][/av_image]

    [/av_one_fifth]
    [/av_section]

    [av_submenu which_menu='' menu='16' position='center' color='alternate_color' sticky='aviaTBsticky' mobile='active']
    [av_submenu_item title='Menu Item 1' link='' linktarget='no' button_style='']
    [av_submenu_item title='Menu Item 2' link='' linktarget='no' button_style='']
    [/av_submenu]

    How can I do that?

    #494884

    Hi connect4consulting!

    You could try using the do_shortcode function, https://developer.wordpress.org/reference/functions/do_shortcode/, in the 404.php and search.php files around line 30.

    I’m not sure if the color section or other fullwidth shortcodes are going to work like that though as they are more complex and require changing the layout.

    Regards,
    Elliott

    • This reply was modified 9 years, 4 months ago by Elliott.
    #495050

    Thanks Elliott,
    I guess the other way to fix this would be to change the CSS modifications so that they don’t affect the 404 and search results pages.
    How do I isolate CSS on those pages alone?

    #495231

    Hi,

    You can target the 404 and search pages with the following classes:

    .error404 .search
    

    Regards,
    Rikard

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