• Dears,

    I am using the free version, and I want to add a css on the post only.

    am already find a solution to add this CSS code on a single page in the template “single.php” file but as we know any update will remove it.

    the css code

    <div style="position: relative;z-index:-1; top:-250px; background-color:#1B2643; width:100%; height:115px"></div>
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    I’m a little confused – the code you posted is HTML, not CSS. Where exactly are you hoping this is placed?

    Thread Starter ahmedalnaqa

    (@ahmedalnaqa)

    sorry for that, I need to add this HTML code in the single post page of the template:

    Can I add this code in only this page

    Plugin Author Shea Bunge

    (@bungeshea)

    Sure, you can use a function like is_single() to control where the code might be displayed.

    Inserting into theme templates really depends on which theme you’re using. Some have greater flexibility than others.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add CSS on posts only’ is closed to new replies.