Theme Support Forum

Support Forum for Free and Premium Themes. Premium Theme Forums are Private! Please log in first to see the Premium forums

If you Like the Asteria Lite Theme and want to Keep it free forever Please Rate it on Wordpress.org (It only takes a few seconds)
Viewing 4 posts - 1 through 4 (of 4 total)

Background picture post excerpt

Home Forums Free Theme Support Asteria Lite Background picture post excerpt

  • #74577

    Takoos

    Hello,

    I am trying to assign a background picture to the post excerpt.
    But it seems the url’s for background pictures in custom css are escaped with “\”?
    Can you explain why this is so and how to work around it?

    Thanks in advance.

    #74631

    Towfiq I.

    administrator

    what line are you trying to add in the custom css?

    #74670

    Floris

    Takoos asked me to reply to your question. We added the following lines to the custom css:

    .lay3_wrap .category-[categoryX] .post_content {background-image:url(‘http://[link-to-picture-for-category-X]’ ! important);}

    but after saving, this line is changed to:

    .lay3_wrap .category-[categoryX] .post_content {background-image:url(\’http://[link-to-picture-for-category-X]\’ ! important);}

    The URL is escaped with “\” ?

    #74678

    Towfiq I.

    administrator

    open up “validation_css.php” from wp-content/themes/asteria-lite/redux/inc/validation/css folder and replace this line:

    $this->value = htmlspecialchars_decode(wp_filter_nohtml_kses($this->value));

    with this:

    $this->value;

Reply To: Background picture post excerpt