Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Warning: Cannot modify header information - headers already sent by (output started at /home/themes/public_html/forums/bb-includes/db-mysql.php:12) in /home/themes/public_html/forums/my-templates/kakumei-variant/rss2.php on line 1
ThemeShaper Forums Topic: Add class tag to <div id="content"> http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Fri, 22 May 2015 16:02:13 +0000 antesark on "Add class tag to <div id="content">" http://forums.themeshaper.com/topic/add-class-tag-to-ltdiv-idcontentgt#post-16830 Mon, 08 Nov 2010 18:09:41 +0000 antesark 16830@http://forums.themeshaper.com/ <p>Hehe.. :) Gah, that was simpple, should have figured that out by myself, tried quite a few things, but ofc did not try to remove the add_action.</p> <p>Thanks again. Keep up the good work! </p> Chris on "Add class tag to <div id="content">" http://forums.themeshaper.com/topic/add-class-tag-to-ltdiv-idcontentgt#post-16828 Mon, 08 Nov 2010 17:34:38 +0000 Chris 16828@http://forums.themeshaper.com/ <p>Aarrgh ..</p> <p>Ante, I hereby declare that you are officially allowed to use the hashtag #blamethematic4you in all your tweets talking about bugs in Thematic ;)</p> <p>Remove the add_action() part. Normally all childtheme_override_ actions should be hooked automatically to the proper action hooks. Unfortunately I had a couple of add_action() calls inside of the if-clause. This was fixed in the latest SVN copies. </p> <p>Chris </p> antesark on "Add class tag to <div id="content">" http://forums.themeshaper.com/topic/add-class-tag-to-ltdiv-idcontentgt#post-16823 Mon, 08 Nov 2010 11:48:07 +0000 antesark 16823@http://forums.themeshaper.com/ <p>Thank you Chris, it worked like a charm. Tho I run into some problems with childtheme_override-functions. Content seemed to be printed twice.</p> <p>Tex:</p> <p><code><br /> function childtheme_override_siteinfoclose() { ?&gt;<br /> &lt;span class="float-right"&gt;This page took &lt;?php echo timer_stop(); ?&gt; seconds to load&lt;/span&gt;<br /> &lt;/div&gt;&lt;!-- #siteinfo --&gt;<br /> &lt;?php }<br /> add_action('thematic_footer', 'childtheme_override_siteinfoclose', 40);<br /> </code></p> <p>You can check this out at <a href="http://109.74.195.148/testsite/" rel="nofollow">http://109.74.195.148/testsite/</a> .. located at the footer obviously. Had the same problem with childtheme_override_brandingopen/brandingclose. The header img got printed out twice, but fixed it with not using override-function at all. </p> Chris on "Add class tag to <div id="content">" http://forums.themeshaper.com/topic/add-class-tag-to-ltdiv-idcontentgt#post-16798 Sat, 06 Nov 2010 13:45:52 +0000 Chris 16798@http://forums.themeshaper.com/ <p>Hi Ante,</p> <p>grab the current SVN copy. I integrated the new filter <code>thematic_open_id_content</code>.</p> <p>The following code will add your class to #content:</p> <pre><code>function add_my_class() { return &#39;&lt;div id=&quot;content&quot; class=&quot;my_class&quot;&gt;&#39; . &quot;\n&quot;; } add_filter( &#39;thematic_open_id_content&#39;, &#39;add_my_class&#39; );</code></pre> <p>Best,</p> <p>Chris </p> antesark on "Add class tag to <div id="content">" http://forums.themeshaper.com/topic/add-class-tag-to-ltdiv-idcontentgt#post-16760 Sat, 06 Nov 2010 00:08:57 +0000 antesark 16760@http://forums.themeshaper.com/ <p>Thank you Chris for your answer. That would be perfect!</p> <p>Actually I need to add the class-tag to the div id "content", not to container, but ofc I can modify it as I like if you just open the whole container div so it can be modified (and everything inside it).</p> <p>Bottom point, I just need to add class="eqh" to div content.</p> <p>And if your interested, the reason I need this class is so I can apply thematics equal height javascript to fix sidebar/content overflow (got sidebar on position: absolute).</p> <p>The site I'm working on is located at <a href="http://109.74.195.148/testsite/" rel="nofollow">http://109.74.195.148/testsite/</a> ..</p> <p>With best regards, Ante </p> Chris on "Add class tag to <div id="content">" http://forums.themeshaper.com/topic/add-class-tag-to-ltdiv-idcontentgt#post-16755 Fri, 05 Nov 2010 21:37:11 +0000 Chris 16755@http://forums.themeshaper.com/ <p>Hi,</p> <p>I could create a filter for this. Something like <code>thematic_open_container_id</code>. This could be filtered using:</p> <pre><code>function add_container_class($markup) { return &#39;&lt;div id=&quot;container&quot; class=&quot;my_class&quot;; } add_filter( &#39;thematic_open_container_id&#39;, &#39;add_container_class&#39; );</code></pre> <p>With additional if-clauses you could define different classes for index, single, page, and so on.</p> <p>Let me know if this would solve your problem.</p> <p>Chris </p> antesark on "Add class tag to <div id="content">" http://forums.themeshaper.com/topic/add-class-tag-to-ltdiv-idcontentgt#post-16740 Fri, 05 Nov 2010 13:28:08 +0000 antesark 16740@http://forums.themeshaper.com/ <p>Up.. </p> antesark on "Add class tag to <div id="content">" http://forums.themeshaper.com/topic/add-class-tag-to-ltdiv-idcontentgt#post-16704 Wed, 03 Nov 2010 11:37:38 +0000 antesark 16704@http://forums.themeshaper.com/ <p>Hey,</p> <p>How can I add class="my_class" tag to &lt;div id="content"&gt; without modifying the base thematic theme files (page.php, archives.php etc)? </p>