• Anonymous User 18180484

    (@anonymized-18180484)


    How to set slider title “firstword” color also on second word?

    See, there is no sense to set a different color on an article “the”. It should be at least first two words “The Future”, “The World” etc.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Anonymous User 18180484

    (@anonymized-18180484)

    Ok.
    Could you please add the slider layout settings to separate slider pages in customization? Not as a bunch for the whole slider?
    Because if I replace in “functions.php” first word with two words ($title[0] with $title[0].’ ‘.$title[1]) then it changes the first two words color everywhere, not just on the needed slides with an article on the first place.

    • This reply was modified 3 years, 8 months ago by Anonymous User 18180484.
    Thread Starter Anonymous User 18180484

    (@anonymized-18180484)

    Solved!
    Thanks to ru.stackoverflow.com community!

    If you need to highlight a few first title words and only in certain slides, put the “^” sign after necessary words to be colored in the page title and then replace the slider code in bizberg functions.php with :

    $title = explode( strpos($title, “^”) ? “^” : ” “, $title );
    It says, if a string has this sign “^” then the colored title part should be separated after it, otherwise as usual after the first space ” “.

    • This reply was modified 3 years, 8 months ago by Anonymous User 18180484.
    • This reply was modified 3 years, 8 months ago by Anonymous User 18180484.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to set slider title firstword color also on second word?’ is closed to new replies.