• i have html newsletters that i want to add to the blog as post. in each there is css in the header to format the newsletter. when i copy the html to the blog it looses the css. any ideas of what to do?

Viewing 1 replies (of 1 total)
  • Your newsletter and your post template got different css values, I presume.
    If you want your blog to have the same css as the newsletter, you must modify your style.css.
    Or, if you want posts containing the newsletter to be styled in a different way than the rest of your posts/your site, you can make a separate CSS and attatch it to posts posted as newsletter via conditional tags. This can be done by assigning your second stylesheet via categories, for instance. So, in your functions.php, you will have to add
    the tag is_category('id for your newsletter category')
    Read about conditional tags:
    https://codex.www.ads-software.com/Conditional_Tags

Viewing 1 replies (of 1 total)
  • The topic ‘how to add individual css to individual post’ is closed to new replies.