Jump to content

ps_imageslider css using wrong class


vm0824

Recommended Posts

Hello,

  I apologize ahead of time, as I am not a developer by trade and I'm not even sure if I've solved my problem the correct way. However, I think I found an issue with modules/ps_imageslider/css/homeslider.css and the default theme.

 

The css appears to have its rules based on classes called "homeslider". This is in agreement with what I found in the related tpl file modules/ps_imageslider/views/templates/hook/slider.tpl. However nomatter what I did, I could not get the slider to change format. So I went and inspected the page myself and saw that it was not as I'd expect. It referenced the slider.tpl, but instead it referenced classes called "carousel". Indeed, when I replaced all references in the CSS file from homeslider to carousel, the slider formatting was finally affected! I do not know where the "carousel" class is being created from, but wanted to share my troubleshooting steps just in case someone has run into the same thing. 

 

I hope this is useful.

Link to comment
Share on other sites

I figured it out. The default theme has a module which has the same name and its own tpl file. So apparently the theme/modules tpl overrides the roo/modules tpl for the slider, but not the CSS file in the root/modules .

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...