I'm having trouble with a module working in the Mothership theme. I have installed Views Accordion Module and it works fine in preview, but when I view it on a page the html to make the accordion gets stripped out. I tried using another theme and it worked perfectly there. I have disabled all the settings in the mothership theme but still haven't found why it's doing this. Can anyone help me?

Comments

JrodR87’s picture

I figured it out with the help of this link. It's the views-view.tpl.php file that causes the issue.

http://drupal.org/node/782712

anthonyR’s picture

Priority: Major » Normal

So you have two options:
1. Take the default views-view.tpl.php and add it in your subtheme.
2. Take the default views-view.tpl.php and add it in your subtheme just for that view where you need the accordion.

Mothership theme should not add code for this

JrodR87’s picture

Status: Active » Closed (fixed)

That's what I had to do. It was an easy fixed once I swapped out the view.tpl.php file :)

mortendk’s picture

clear cache ;)

JrodR87’s picture

clearing cache is like duck tape. It fixes everything ;)

hawkdavis’s picture

Issue summary: View changes
StatusFileSize
new2.97 MB
new986.54 KB

I am having some trouble getting the accordion to work after targeting it with the views-view.tpl.php. I've attached some screenshots to this to show what it is doing. When it slides the content field is breaking and not keeping 100% width. I've tracked it down to the mothership-layout.css file which I think is causing the slider to break.
slider issue

header, footer, div, nav{
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  overflow: visible;
  word-wrap: break-word;
}

adding this to my theme.css I am able to correct it for safari.

.ui-accordion div{
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  -ms-box-sizing: content-box;
  box-sizing: content-box;
}

everything is working perfectly in safari, but when I use firefox or chrome it is now off in the other direction by 1px.

off by 1px

I know its not very noticeable, but I can't stand it, if anyone can help I would greatly appreciate it.

JrodR87’s picture

Are you able to post a link to this page?