To insert code use <code>...</code>.
Disable Feature Header on Search and 404
  • I'm customizing theme so that pages other than the home page do not use the Feature Header. However I cannot control this setting administratively for Search results page or 404. I've looked at the php and I've seen where I can comment out "get header" but that removes the entire header (obviously) and I cannot see where I can comment out or make a change to disable "feature header." Please advise.
  • 1 Comment sorted by
  • Hi,

    There are two different solutions to this.

    1) first disable featured header globally in the striking general settings and turn it on on the pages you need them

    Or

    2) open the themegenerators.php in the striking/framework/helpers folder. goto line 292 and enter this just before the line where it says


    echo $output;


    Now enter this line before the echo $output;


    if ((is_404()) || (is_search())) { $output='';}


    It will also disable the featured header on the search page.


    if ((is_404()) { $output='';}


    It will only disable the featured header on the 404 page.


    Best regards,
    Paul
This discussion has been closed.
All Discussions