• Hello everybody!

    I tried very hard but as the miserable coder that I am – no success…
    I want to show the main page slider when showing the results-lists of search and the tag-cloud.
    There MUST be a solution to that – some “rule” or “exception” of some rule, some code to change in my child’s functions.php

    Does anybody have any idea?

    Thanks in advance, Hage

Viewing 4 replies - 1 through 4 (of 4 total)
  • For the search results part, the only way to achieve this in the current version is to create a /parts folder in your child theme, copy class-content-slider.php from Customizr/parts in this newly created folder and replace all 5 occurrences of

    tc__f('__is_home')

    with

    (tc__f('__is_home') || is_search())

    However, there is a chance that this solution will stop working on future updates of the theme. At that point you’ll have to do the same replacement again, but on the updated version of class-content-slider.php.

    I’m not sure I understand the “and the tag-cloud” part. If it means you want the slider on tag archives too, you’ll need to add || is_tag() to your replacement, like this:

    (tc__f('__is_home') || is_search() || is_tag())

    If not, please be more specific.

    Thread Starter Raimund Hagemann

    (@derhage)

    hello acub, thanks for help.

    Your suggestion doesn’t work for me
    BUT you gave me the crucial hint where to search:

    In class-content-slider.php I changed

    if ( ! apply_filters( 'tc_show_slider' , !is_404() && !is_archive() && !is_search() || ( tc__f('__is_home') && $tc_front_slider ) ) )
          return;

    to

    if ( ! apply_filters( 'tc_show_slider' , !is_404()  || ( tc__f('__is_home') && $tc_front_slider ) ) )
          return;

    Now the slider only disappears on 404

    Thanks a lot !!!

    Before giving you the solution, I tested it. It works for me for the last version of Customizr. Also, keep in mind that any modification in Customizr files is lost on Customizr update. You may keep your mods and be able to update Customizr by copying any file (except style.css and functions.php) to your child theme, keeping the folder structure.
    WordPress reads parent theme files if they’re not present in the child theme.

    Thread Starter Raimund Hagemann

    (@derhage)

    well, that’s weird – I thought I have the latest version of customizr running. I’ll check this later.

    Yeah, I changed the php file on the right place in my child theme’s directory – that was the first thing I learned, because nikeo INSISTS to create a child theme a thousand times in his documentation. ??

    I’m sure there are more than one way to archieve a special effect in coding – I’m glad it works now, it’s not important how…

    thanks, hage

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show the Slider on ?tag and ?s page’ is closed to new replies.