Jump to content

[SOLVED] Styles to be used in CMS content


ktraving

Recommended Posts

I've been trying to figure out how to add and use different styles on pages created in the CMS section.

 

Initially I added new CSS classes to the global.css file in the active theme, and setting classes specifically in code view on the CMS pages. But they seem to be ignored.

 

Then I moved my CSS classes to the CMS.css file (also in the active theme) and removed them from global.css, clearing the cache in prestashop and in the browser. Still no effect.

 

So here is an example of what I want to do:

 

In the global.css for the theme, I have stylings of links used across the site. But on CMS pages I would like the links to look differently. Therefore I add

a.indoc
  {
  color: #BC9B6A;
  outline: medium none;
  text-decoration: none;
  }
a.indoc:hover
  {
  text-decoration: underline;
  }

And when editing my CMS pages i add class="indoc" whenever I use a-tags.

 

But they have no effect. Ideas, tips, workarounds are all very much welcome.

 

Thanks, K

 

 

 

Edited by ktraving (see edit history)
Link to comment
Share on other sites

The problem was apparently some pretty nasty caching issues. wjere emptying history and CTRL+SHIFT+R wasn't enough.

 

I kept the classes I added to the cms.css, then changed the network.http.use-cache to false in firefox about:config AND emptied the history as well.

 

Then changes to the CSS file were loaded.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...