Anyone else have the rotor module installed (http://drupal.org/project/rotor)?
In rotor-view-rotor.tpl.php is this line of code:
<div class="rotor-content"><?php print $row; ?></div>
On an actual page this generates this html:
<div class="rotor-content" style="position: absolute; top: 0px; left: 0px; opacity: 1; display: block; z-index: 10; "> <div class="rotor-content-detail"><p><img src="http://site.com/picture.jpg"></p></div> </div>
Where does that damn style entry come from, I need to change it and it just seems to come from nowhere! Anyone got any ideas before I completely explode? :)
On 3/10/2011 11:43 AM, James Bensley wrote:
Anyone else have the rotor module installed (http://drupal.org/project/rotor)?
In rotor-view-rotor.tpl.php is this line of code:
<div class="rotor-content"><?php print $row; ?></div>
On an actual page this generates this html:
<div class="rotor-content" style="position: absolute; top: 0px; left: 0px; opacity: 1; display: block; z-index: 10; "> <div class="rotor-content-detail"><p><img src="http://site.com/picture.jpg"></p></div> </div>
Where does that damn style entry come from, I need to change it and it just seems to come from nowhere! Anyone got any ideas before I completely explode? :)
It's probably getting added by javascript after the page loads. Most likely the jquery.cycle plugin, but parts of the css/style attribute could come from other places as well.
Ted
Where does that xxxx style entry come from, I need to change it and it just seems to come from nowhere! Anyone got any ideas before I completely explode? :)
Use the Devel module and you will be able to turn on Devel Theme and click on it and get every preprocess it is ran through before going to the screen.
I believe Ted is right. If you grep on those attributes in the rotor module directory itself, there are no hits, but they are all found in jquery.cycle.all.js and jquery.cycle.js
William
On Thu, Mar 10, 2011 at 11:54 AM, Ted ted-drupalists@webfirst.com wrote:
On 3/10/2011 11:43 AM, James Bensley wrote:
Anyone else have the rotor module installed (
http://drupal.org/project/rotor)?
In rotor-view-rotor.tpl.php is this line of code:
<div class="rotor-content"><?php print $row; ?></div>
On an actual page this generates this html:
<div class="rotor-content" style="position: absolute; top: 0px; left: 0px; opacity: 1; display: block; z-index: 10; "> <div class="rotor-content-detail"><p><img src="http://site.com/picture.jpg"></p></div> </div>
Where does that damn style entry come from, I need to change it and it just seems to come from nowhere! Anyone got any ideas before I completely explode? :)
It's probably getting added by javascript after the page loads. Most likely the jquery.cycle plugin, but parts of the css/style attribute could come from other places as well.
Ted
[ Drupal support list | http://lists.drupal.org/ ]
On Mar 10, 2011 11:54 AM, "Ted" ted-drupalists@webfirst.com wrote:
On 3/10/2011 11:43 AM, James Bensley wrote:
Anyone else have the rotor module installed (
http://drupal.org/project/rotor)?
In rotor-view-rotor.tpl.php is this line of code:
<div class="rotor-content"><?php print $row; ?></div>
On an actual page this generates this html:
<div class="rotor-content" style="position: absolute; top: 0px; left: 0px; opacity: 1; display: block; z-index: 10; "> <div class="rotor-content-detail"><p><img src="http://site.com/picture.jpg"></p></div> </div>
Where does that damn style entry come from, I need to change it and it just seems to come from nowhere! Anyone got any ideas before I completely explode? :)
It's probably getting added by javascript after the page loads. Most likely the jquery.cycle plugin, but parts of the css/style attribute could come from other places as well.
Unless that was from firebug or the likes, view source doesn't show the modified dom that js would produce.
You can override them using !important.
Idan
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of shawn wilson Sent: Thursday, March 10, 2011 8:26 PM To: support@drupal.org Subject: Re: [support] Magical CSS from nowhere!
On Mar 10, 2011 11:54 AM, "Ted" ted-drupalists@webfirst.com wrote:
On 3/10/2011 11:43 AM, James Bensley wrote:
Anyone else have the rotor module installed
(http://drupal.org/project/rotor)?
In rotor-view-rotor.tpl.php is this line of code:
<div class="rotor-content"><?php print $row; ?></div>
On an actual page this generates this html:
<div class="rotor-content" style="position: absolute; top: 0px; left: 0px; opacity: 1; display: block; z-index: 10; "> <div class="rotor-content-detail"><p><img src="http://site.com/picture.jpg"></p></div> </div>
Where does that damn style entry come from, I need to change it and it just seems to come from nowhere! Anyone got any ideas before I completely explode? :)
It's probably getting added by javascript after the page loads. Most likely the jquery.cycle plugin, but parts of the css/style attribute could come from other places as well.
Unless that was from firebug or the likes, view source doesn't show the modified dom that js would produce.
Thanks to all for your replies they are greatly apreciated....
On 10 March 2011 16:54, Ted ted-drupalists@webfirst.com wrote:
It's probably getting added by javascript after the page loads. Most likely the jquery.cycle plugin, but parts of the css/style attribute could come from other places as well.
On 10 March 2011 17:31, William Smith william.darren@gmail.com wrote:
I believe Ted is right.
Absolutely! That was the indeed problem. Out of despair, my next step was going to be to grep the contents the entire web root for that string :)
Thanks Cory and Idan for your suggestions I will make a mental note of those options for next time :)
Shawn, yes sorry I wasn't being clear. That was within Chrome inspector.