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 Tag: function http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Mon, 25 May 2015 05:13:50 +0000 em hr on "Font resize function / plugin in thematic ?" http://forums.themeshaper.com/topic/font-resize-function-plugin-in-thematic#post-27726 Sat, 15 Dec 2012 17:54:14 +0000 em hr 27726@http://forums.themeshaper.com/ <p>Please <a href="http://forums.themeshaper.com/topic/please-read-this-before-adding-new-topics-thematic-has-moved"> read this</a> and come to then new <a href="http://thematictheme.com/forums/">ThematicTheme Forums</a> for support. </p> yozz84 on "Font resize function / plugin in thematic ?" http://forums.themeshaper.com/topic/font-resize-function-plugin-in-thematic#post-27662 Fri, 26 Oct 2012 12:30:01 +0000 yozz84 27662@http://forums.themeshaper.com/ <p>Hi... Is there any option, function or plugin for thematic which can resize text on a web page? Same or similar to A+ A A- ? thx for helping me with this... </p> daveydz3 on "Childtheme_override_single_post" http://forums.themeshaper.com/topic/childtheme_override_single_post#post-26004 Mon, 19 Mar 2012 07:13:44 +0000 daveydz3 26004@http://forums.themeshaper.com/ <p>ahh, i see. yeah upon further reading i see that i was supposed to included the function first.</p> <p>hopefully, they'll just add it into the core at some point.</p> <p>Thanks! </p> helgatheviking on "Childtheme_override_single_post" http://forums.themeshaper.com/topic/childtheme_override_single_post#post-26002 Mon, 19 Mar 2012 02:46:32 +0000 helgatheviking 26002@http://forums.themeshaper.com/ <p>that isn't a default wordpress function. if you wish to use it you must include it somewhere (like in your functions.php)</p> <p><a href="http://codex.wordpress.org/Template_Tags/in_category#Testing_if_a_post_is_in_a_descendant_category#post_is_in_descendant_category_function" rel="nofollow">http://codex.wordpress.org/Template_Tags/in_category#Testing_if_a_post_is_in_a_descendant_category#post_is_in_descendant_category_function</a> </p> daveydz3 on "Childtheme_override_single_post" http://forums.themeshaper.com/topic/childtheme_override_single_post#post-26001 Mon, 19 Mar 2012 02:17:19 +0000 daveydz3 26001@http://forums.themeshaper.com/ <p>when i look at the error code, i see that this may be causing the issue: "Call to undefined function post_is_in_descendant_category()"</p> <p>but i got that code from the wordpress codex, maybe i'm not using it right? </p> daveydz3 on "Childtheme_override_single_post" http://forums.themeshaper.com/topic/childtheme_override_single_post#post-26000 Mon, 19 Mar 2012 02:04:12 +0000 daveydz3 26000@http://forums.themeshaper.com/ <p>hello, so childtheme_override_single_post is only working half way. when i put this code into my functions file:</p> <pre><code>//override single_post for conditionals function childtheme_override_single_post() { if( in_category( &#39;65&#39; ) || post_is_in_descendant_category( 65 ) ) { //begin single post modified thematic_abovepost(); ?&gt; &lt;div id=&quot;post-&lt;?php the_ID(); echo &#39;&quot; &#39;; if (!(THEMATIC_COMPATIBLE_POST_CLASS)) { post_class(); echo &#39;&gt;&#39;; } else { echo &#39;class=&quot;&#39;; thematic_post_class(); echo &#39;&quot;&gt;&#39;; } thematic_postheader(); ?&gt; &lt;div class=&quot;entry-content&quot;&gt; &lt;h1&gt;Single Post Filter Works!&lt;/h1&gt; &lt;?php thematic_content(); ?&gt; &lt;?php wp_link_pages(&#39;before=&lt;div class=&quot;page-link&quot;&gt;&#39; .__(&#39;Pages:&#39;, &#39;thematic&#39;) . &#39;&#38;after=&lt;/div&gt;&#39;) ?&gt; &lt;/div&gt;&lt;!-- .entry-content --&gt; &lt;?php thematic_postfooter(); ?&gt; &lt;/div&gt;&lt;!-- #post --&gt; &lt;?php thematic_belowpost(); } else { //begin single post not modified thematic_abovepost(); ?&gt; &lt;div id=&quot;post-&lt;?php the_ID(); echo &#39;&quot; &#39;; if (!(THEMATIC_COMPATIBLE_POST_CLASS)) { post_class(); echo &#39;&gt;&#39;; } else { echo &#39;class=&quot;&#39;; thematic_post_class(); echo &#39;&quot;&gt;&#39;; } thematic_postheader(); ?&gt; &lt;div class=&quot;entry-content&quot;&gt; &lt;?php thematic_content(); ?&gt; &lt;?php wp_link_pages(&#39;before=&lt;div class=&quot;page-link&quot;&gt;&#39; .__(&#39;Pages:&#39;, &#39;thematic&#39;) . &#39;&#38;after=&lt;/div&gt;&#39;) ?&gt; &lt;/div&gt;&lt;!-- .entry-content --&gt; &lt;?php thematic_postfooter(); ?&gt; &lt;/div&gt;&lt;!-- #post --&gt; &lt;?php thematic_belowpost(); } }</code></pre> <p>it works with the conditional as expected, however when i check the posts that use the else statement part of the code, nothing appears besides the header on the page. something in the code is blocking the rest of the page from loading. But when i look at the code above, it doesn't seem like i missing something.</p> <p>any ideas? </p> kevinoh on "Checkbox in custom theme options" http://forums.themeshaper.com/topic/checkbox-in-custom-theme-options#post-24895 Sat, 14 Jan 2012 15:40:50 +0000 kevinoh 24895@http://forums.themeshaper.com/ <p>SO i tried this… am i even close?</p> <p><code><br /> // Add Registration Description from Theme Options page<br /> function topmarks_reg_description() {<br /> { ?&gt;<br /> &lt;?php<br /> $options = get_option('topmarks_theme_options');<br /> echo $options['show-reg'];<br /> if ('show-reg' == "true"])<br /> {<br /> // BEGIN GET REGISTRATION DESCRIPTION<br /> { ?&gt;<br /> &lt;div id="reg-description"&gt;&lt;p&gt;&lt;?php<br /> $options = get_option('topmarks_theme_options');<br /> echo $options['reg-description'];<br /> ?&gt; <a href="register">Register now</a>&lt;/p&gt;&lt;/div&gt;<br /> &lt;?php }<br /> // END GET REGISTRATION DESCRIPTION<br /> }<br /> else<br /> {<br /> // silence<br /> }<br /> }</p> <p>// Add our Registration Description function to Thematic Action Hook, number indicates positioning via priority setting<br /> add_action('thematic_header','topmarks_reg_description', 6);</p> <p></code> </p> kevinoh on "Checkbox in custom theme options" http://forums.themeshaper.com/topic/checkbox-in-custom-theme-options#post-24893 Sat, 14 Jan 2012 14:30:54 +0000 kevinoh 24893@http://forums.themeshaper.com/ <p>Okay, makes sense. I am still learning as I go - thanks for sending me in the right direction! </p> helgatheviking on "Checkbox in custom theme options" http://forums.themeshaper.com/topic/checkbox-in-custom-theme-options#post-24891 Sat, 14 Jan 2012 13:29:53 +0000 helgatheviking 24891@http://forums.themeshaper.com/ <p>checkboxes return TRUE if they are checked and FALSE if they are not. so you need to get_option() before the if statement and use its value as the conditional logic. </p> kevinoh on "Checkbox in custom theme options" http://forums.themeshaper.com/topic/checkbox-in-custom-theme-options#post-24885 Sat, 14 Jan 2012 06:04:12 +0000 kevinoh 24885@http://forums.themeshaper.com/ <p>I have added a custom theme-options page with two text areas and a checkbox. I want to create a function to display one of the textareas only if the check box is checked. I am able to call both textareas and get them to display successfully but for the life of me can't figure out how to do an if/then for the check box.</p> <p>Here is what I have been able to get going so far:</p> <pre><code>// Add Registration Description from Theme Options page function topmarks_reg_description() { if ( // THIS IS WHERE I NEED HELP ) { // BEGIN GET REGISTRATION DESCRIPTION { ?&gt; &lt;div id=&quot;reg-description&quot;&gt;&lt;p&gt;&lt;?php $options = get_option(&#39;topmarks_theme_options&#39;); echo $options[&#39;reg-description&#39;]; ?&gt; &lt;a href=&quot;register&quot;&gt;Register now&lt;/a&gt;&lt;/p&gt;&lt;/div&gt; &lt;?php } // END GET REGISTRATION DESCRIPTION } else { // silence } } // Add our Registration Description function to Thematic Action Hook, number indicates positioning via priority setting add_action(&#39;thematic_header&#39;,&#39;topmarks_reg_description&#39;, 6);</code></pre> <p>Any help with a function if check box is checked? </p> helgatheviking on "how to remove meta data, comments etc from a sticky post?" http://forums.themeshaper.com/topic/how-to-remove-meta-data-comments-etc-from-a-sticky-post#post-23896 Tue, 22 Nov 2011 00:48:24 +0000 helgatheviking 23896@http://forums.themeshaper.com/ <p>now you know... and knowing is half the battle. ;) glad you are getting your head wrapped around it. now that you've got filters you can do anything!!! well... almost </p> onelittlemoose on "how to remove meta data, comments etc from a sticky post?" http://forums.themeshaper.com/topic/how-to-remove-meta-data-comments-etc-from-a-sticky-post#post-23889 Mon, 21 Nov 2011 22:07:43 +0000 onelittlemoose 23889@http://forums.themeshaper.com/ <p>Wow, this totally works</p> <pre><code>//remove the link in the post title from the sticky post only add_filter(&#39;thematic_postheader_posttitle&#39;,&#39;forstickypost_posttitle&#39;); function forstickypost_posttitle($posttitle) { //send thematic&#39;s variable into the function if (is_sticky()) { //if true, change the variable somehow $posttitle = &#39;&lt;h1 class=&quot;entry-title&quot;&gt;&#39; . get_the_title() . &quot;&lt;/h1&gt;\n&quot;; } return $posttitle; //either way, send the variable back to thematic&#39;s apply_filters hook }</code></pre> <p>And I now know more of the difference between apply_filters and add_filter. In fact I have learned so much, in addition to the confidence gained. </p> <p>Yay! Happy dance!</p> <p>Thank you, a thousand times! </p> onelittlemoose on "how to remove meta data, comments etc from a sticky post?" http://forums.themeshaper.com/topic/how-to-remove-meta-data-comments-etc-from-a-sticky-post#post-23888 Mon, 21 Nov 2011 21:32:55 +0000 onelittlemoose 23888@http://forums.themeshaper.com/ <p>Yours makes much more sense than what I've since arrived at. By doing a child theme function override, I see now that it means once you've changed the bit you wanted, you still have to re-instruct it on what to do with everything else (the ELSE part you allude to). </p> <p>I had that working thanks to a copy/paste from the content-extensions.php (minus the thematic_postfooter declaration and with minor editing), but it all seemed rather clunky. I figured there must be a better way. However that was not a waste of time because I learned things along the way. </p> <p>So your name, "kia_postfooter" is this an arbitrary name, or is an essential defined name? In other words, could it just as easily been named "myspecialfilter_postfooter" ?</p> <p>I think I may have figured out how to do remove the link from from the post title as well, but in light of the above, I will take another look because it also seemed a bit clunky. </p> <p>Many thanks. I hope to BRB. </p> helgatheviking on "how to remove meta data, comments etc from a sticky post?" http://forums.themeshaper.com/topic/how-to-remove-meta-data-comments-etc-from-a-sticky-post#post-23887 Mon, 21 Nov 2011 21:12:16 +0000 helgatheviking 23887@http://forums.themeshaper.com/ <p>"//this bit is supposed to remove the post footer from the sticky post only" </p> <p>your logic is right, but if you don't have the ELSE part of that statement the override function isn't the best choice b/c the ELSE is defined as nothing so you won't see it on any pages at all. therefore, i think you'd be better served by a filter</p> <pre><code>//remove the post footer from the sticky post only add_filter(&#39;thematic_postfooter&#39;,&#39;kia_postfooter&#39;); function kia_postfooter($postfooter) { //send thematic&#39;s variable into the function if (is_sticky()) { //if true, change the variable somehow $postfooter = &#39;&lt;!-- sticky post has no postfooter --&gt;&#39;; } return $postfooter; //either way, send the variable back to thematic&#39;s apply_filters hook }</code></pre> <p>"can't re-declare function thematic_postfooter" means you have 2 functions named the same which is obviously a no-go. </p> onelittlemoose on "how to remove meta data, comments etc from a sticky post?" http://forums.themeshaper.com/topic/how-to-remove-meta-data-comments-etc-from-a-sticky-post#post-23886 Mon, 21 Nov 2011 20:39:19 +0000 onelittlemoose 23886@http://forums.themeshaper.com/ <p>Ok, some slight progress, sort of. I figured out how to get rid of the postfooter (the comments, tags, edit link). Unfortunately, my if statement doesn't seem to be working, as it's removed the postfooter on every single post. This is my code:</p> <pre><code>// here were are in the post footer function childtheme_override_postfooter() { //this bit is supposed to remove the post footer from the sticky post only if (is_sticky()) { $postfooter = &#39;&lt;!-- sticky post has no postfooter --&gt;&#39;; // and this part applies it return apply_filters(&#39;thematic_postfooter&#39;,$postfooter); } }</code></pre> <p>It seems to be overriding all postfooter instructions, regardless of sticky or not. I thought at first that it meant I need to re-instruct it as to what to do with the non-sticky, and pasted in the original thematic_postfooter instructions, but that gave me a "can't re-declare function thematic_postfooter" type of error message.</p> <p>help?</p> <p>On a sidenote, I think I figured out why it's apply_filters as opposed to add_filter. But I don't think I could explain to others just yet... </p> onelittlemoose on "how to remove meta data, comments etc from a sticky post?" http://forums.themeshaper.com/topic/how-to-remove-meta-data-comments-etc-from-a-sticky-post#post-23884 Mon, 21 Nov 2011 19:39:41 +0000 onelittlemoose 23884@http://forums.themeshaper.com/ <p>Ok, I think I might be on to something here. I added my if statement to the previous childtheme_override_postheader_postmeta which was intended to remove the author from the postmeta<br /> <pre><code>// removes author information from postmeta function childtheme_override_postheader_postmeta() { $postmeta = &#39;&lt;div class=&quot;entry-meta&quot;&gt;&#39;; $postmeta .= thematic_postmeta_entrydate(); $postmeta .= thematic_postmeta_editlink(); $postmeta .= &quot;&lt;/div&gt;&lt;!-- .entry-meta --&gt;\n&quot;; //this bit removes everything from the sticky post only if (is_sticky()) { $postmeta = &#39;&lt;!-- sticky post has no entry-meta --&gt;&#39;; } // and this part was there before, to apply it all return apply_filters(&#39;thematic_postheader_postmeta&#39;,$postmeta); }</code></pre> <p>It seems to work, no errors.... and my regular posts still look like how I want.</p> <p>I'm beginning to get it, sort of. I'm not entirely sure though, why I would apply_filters versus add_filter.</p> <p>Next up to find the magic ingredients that remove the link from the post title of the sticky post, and then the sticky post footer bits. </p> onelittlemoose on "how to remove meta data, comments etc from a sticky post?" http://forums.themeshaper.com/topic/how-to-remove-meta-data-comments-etc-from-a-sticky-post#post-23883 Mon, 21 Nov 2011 17:50:13 +0000 onelittlemoose 23883@http://forums.themeshaper.com/ <p>Thanks for your help, helgatheviking. I really like your parking analogy, and after resisting the urge to run away screaming from the code, I've spent some time on your tutorial and managed to hobble together something. Unfortunately my results are not very good... </p> <p>First, the code I tried, starting with baby steps and trying to remove the postmeta:<br /> <pre><code>function childtheme_override_postheader_postmeta($postmeta) { if (is_sticky()) { $c[] = &#39;s-sticky&#39;; $postmeta = &#39;&#39;; } return apply_filters(&#39;thematic_postheader_postmeta&#39;,$postmeta); }</code></pre> <p>This gives error:<br /> Fatal error: Cannot redeclare childtheme_override_postheader_postmeta() (previously declared in /functions.php:54) in /functions.php on line 103</p> <p>Oopsie, I had previously asked it to remove the author bits on regular posts. So at first glance, initially, that's the cause of the error. But, are my logic and syntax even on the right track? Should my "if" part come before the function part, or should my "if" be added to the previous filter that removed the author part? (http://forums.themeshaper.com/topic/removing-by-author-from-post-in-v-0977)</p> <p>I have difficulty in deciphering, whether they be function/action/hook/filter, what is an_example_name which I could replace with my_custom_name, versus what is the_official_name and therefore I must use the_official_name. </p> <p>I fear I am completely revealing my ignorance here, and I thank you hugely for any and all help. </p> helgatheviking on "how to remove meta data, comments etc from a sticky post?" http://forums.themeshaper.com/topic/how-to-remove-meta-data-comments-etc-from-a-sticky-post#post-23882 Mon, 21 Nov 2011 13:34:24 +0000 helgatheviking 23882@http://forums.themeshaper.com/ <p>looks like you understand conditional logic, so now you just need to merge that with an understanding of filters, b/c you can easily adjust the entry-utility and entry-meta by targeting the appropriate filter in thematic. here's my short run-down on how to filter which should get you started</p> <p><a href="http://forums.themeshaper.com/topic/need-help-understanding-actions-vs-filters-and-changing-post-meta-and-utility#post-22638" rel="nofollow">http://forums.themeshaper.com/topic/need-help-understanding-actions-vs-filters-and-changing-post-meta-and-utility#post-22638</a> </p> onelittlemoose on "how to remove meta data, comments etc from a sticky post?" http://forums.themeshaper.com/topic/how-to-remove-meta-data-comments-etc-from-a-sticky-post#post-23872 Sun, 20 Nov 2011 14:51:42 +0000 onelittlemoose 23872@http://forums.themeshaper.com/ <p>Following my post here <a href="http://forums.themeshaper.com/topic/do-i-need-a-sticky-post-a-featured-post-some-combo-or-something-else" rel="nofollow">http://forums.themeshaper.com/topic/do-i-need-a-sticky-post-a-featured-post-some-combo-or-something-else</a><br /> I've determined that what I need is a sticky post, but need to remove the meta data and whatnot so it appears only as a welcome message, not a post. </p> <p>I would know how to do this in css, but know enough to know that's not the best way.<br /> Wordpress forums suggest adding the below to loop.php, but how would I re-write to add this to functions.php ?</p> <pre><code>&lt;?php if( !is_sticky() || !is_home() ) :?&gt; &lt;div class=&quot;entry-utility&quot;&gt; [...] &lt;/div&gt;&lt;!-- .entry-utility --&gt; &lt;?php endif;?&gt;</code></pre> <p>[from <a href="http://wordpress.org/support/topic/remove-meta-data-from-static-post]" rel="nofollow">http://wordpress.org/support/topic/remove-meta-data-from-static-post]</a></p> <p>Any help is welcome, thanks. </p> yitwail on "Wrap Subsidiary Aside" http://forums.themeshaper.com/topic/wrap-subsidiary-aside#post-22763 Fri, 19 Aug 2011 18:31:10 +0000 yitwail 22763@http://forums.themeshaper.com/ <p>This is an old topic, but you can put something like this in functions.php:<br /> <pre><code>// implement missing hook function add_abovesubasides() { if ( is_active_sidebar(&#39;1st-subsidiary-aside&#39;) || is_active_sidebar(&#39;2nd-subsidiary-aside&#39;) || is_active_sidebar(&#39;3rd-subsidiary-aside&#39;) ) { // one of the subsidiary asides has a widget thematic_abovesubasides(); } } add_action(&#39;widget_area_subsidiaries&#39;, &#39;add_abovesubasides&#39;, 9);</code></pre> <p>although library/extensions/sidebar-extensions.php should have this built in already. </p> candregg on "Post meta function broken in WP 3.2.1" http://forums.themeshaper.com/topic/post-meta-function-broken-in-wp-321#post-22727 Wed, 17 Aug 2011 15:10:24 +0000 candregg 22727@http://forums.themeshaper.com/ <p>Thanks to help from this forum, I got a nifty post-meta function to work beautifully in WordPress 3.1.3. Sadly, when the client upgraded his WP installation to WordPress 3.2.1, suddenly the function is throwing duplicate info.</p> <p>Please reference the 3.1.3 installation at <a href="http://seacliffmm.com/prod/centurion/category/clients-testimonials/," rel="nofollow">http://seacliffmm.com/prod/centurion/category/clients-testimonials/,</a> and the 3.2.1 installation at <a href="http://centurionlists.com/category/clients-testimonials/," rel="nofollow">http://centurionlists.com/category/clients-testimonials/,</a> for reference. </p> <p>The post-meta purpose is to add specific marketing info beneath posted testimonials by client companies. Each post includes custom fields SPONSOR and SPONSORLINK. The function code is as follows:</p> <pre><code>// ADD optional content when available function add_after_content($content) { global $post; $sponsortext = get_post_meta($post-&gt;ID , &#39;sponsor&#39;, true); $sponsorlink = get_post_meta($post-&gt;ID , &#39;sponsorlink&#39;, true); if($sponsortext &#38;&#38; $sponsorlink){ $sponsor = &#39;&lt;div id=&quot;sponsor&quot;&gt;&#39;; $sponsor .= &#39;&#39;.$sponsortext.&#39; &#39;; $sponsor .= &#39;For more information visit the website, &lt;a href=&quot;http://&#39;.$sponsorlink.&#39;&quot; target=&quot;_blank&quot;&gt;http://&#39;.$sponsorlink.&#39;&lt;/a&gt; &#39;; $sponsor .= &#39;&lt;/div&gt;&#39;; $content .= $sponsor ; } return $content; } add_filter(&#39;the_content&#39;, add_after_content); //</code></pre> <p>As you can see, in the WP 3.1.3, it works just fine. In the WP 3.2.1 installation, each post shows the SPONSOR and SPONSORLINK info twice: the first instance appears to be the correct info; the second would appear to be the first/sticky post's SPONSOR and SPONSORLINK info repeated under every post.</p> <p>Could something in the new version's "Make Sticky" function be causing the repeat, or might it be something in the actual function code that is now broken according to the new WP version? Or other?</p> <p>UPDATE: I tried the simple solution of removing the "make sticky" designator from that one post. It didn't help a thing, so the "Make Sticky" function is not the culpret. The repeating info all comes from the first post made.</p> <p>Any help/ideas would be appreaciated. </p> lance1572 on "Adding a widget inside a div to the Homepage Only" http://forums.themeshaper.com/topic/adding-a-widget-inside-a-div-to-the-homepage-only#post-22110 Thu, 30 Jun 2011 19:07:19 +0000 lance1572 22110@http://forums.themeshaper.com/ <p>Oh! Nice!!!! Thank you! </p> helgatheviking on "Adding a widget inside a div to the Homepage Only" http://forums.themeshaper.com/topic/adding-a-widget-inside-a-div-to-the-homepage-only#post-22108 Thu, 30 Jun 2011 18:57:08 +0000 helgatheviking 22108@http://forums.themeshaper.com/ <p>yes i know, but i never tire of hearing it. . ;)</p> <p>that site and<br /> <a href="http://www.bluemandala.com/thematic/thematic-structure.html" rel="nofollow">http://www.bluemandala.com/thematic/thematic-structure.html</a></p> <p>should be in your reference folder </p> lance1572 on "Adding a widget inside a div to the Homepage Only" http://forums.themeshaper.com/topic/adding-a-widget-inside-a-div-to-the-homepage-only#post-22107 Thu, 30 Jun 2011 18:36:16 +0000 lance1572 22107@http://forums.themeshaper.com/ <p>You are quick!!!! I was writing this as you wrote back!</p> <p>I think there may be another way to skin a cat. :)</p> <p>If I use this hook....thematic_abovefooter I can achieve basically what I want.</p> <p>was wondering if there is another way because technically I'd like for it to be placed last in the main div and not outside of it.</p> <p>TY - I have that link bookmarked :)</p> <p>Worked....thematic_belowmainasides() You are the BEST/......you know that right!!!??! </p> helgatheviking on "Adding a widget inside a div to the Homepage Only" http://forums.themeshaper.com/topic/adding-a-widget-inside-a-div-to-the-homepage-only#post-22105 Thu, 30 Jun 2011 18:32:38 +0000 helgatheviking 22105@http://forums.themeshaper.com/ <p>thematic_belowcontainer() will put your content, not too shockingly, below the #container. </p> <p>if you want something after primary and secondary then you need</p> <p>thematic_belowmainasides()</p> <p>or </p> <p>thematic_abovefooter()</p> <p>see this for reference:<br /> <a href="http://visualizing.thematic4you.com/" rel="nofollow">http://visualizing.thematic4you.com/</a> </p> lance1572 on "Adding a widget inside a div to the Homepage Only" http://forums.themeshaper.com/topic/adding-a-widget-inside-a-div-to-the-homepage-only#post-22104 Thu, 30 Jun 2011 18:29:39 +0000 lance1572 22104@http://forums.themeshaper.com/ <p>Quick question. I apologize if this has been answered.</p> <p>When you create these areas, how do you get the ability to print out in a specific area in the code?</p> <p>Example: I've added a new area (news-extra-content) and want to be placed after container - so I used thematic_belowcontainer which is great but how do I control where it gets placed in the html? Right now it gets printed above the secondary, primary, and tertiary. I'd like for it to get printed after the primary, secondary, and tertiary.</p> <p>&lt;div id="main"&gt;<br /> &lt;div id="container"&gt;<br /> &lt;/div&gt;<br /> &lt;div id="news-extra-content"&gt; &lt;/div&gt;<br /> &lt;div id="primary" class="aside main-aside"&gt;<br /> &lt;/div&gt;<br /> &lt;div id="secondary" class="aside main-aside"&gt;<br /> &lt;/div&gt;<br /> &lt;div id="tertiary"&gt; &lt;/div&gt; </p> lance1572 on "Adding a widget inside a div to the Homepage Only" http://forums.themeshaper.com/topic/adding-a-widget-inside-a-div-to-the-homepage-only#post-22101 Thu, 30 Jun 2011 18:15:22 +0000 lance1572 22101@http://forums.themeshaper.com/ <p>I'm creating a homepage with 4 new cols like the subsidiary cols but only on the homepage. I'm using the subs now and that is why I have created new areas. </p> <p>I've got everything working good and the site is loading super fast. Previously, I was on a test box and the install was a couple of directories down.</p> <p>:) </p> kinybird on "Should I use thematic? or simply adapt twentyten to my needs?" http://forums.themeshaper.com/topic/should-i-use-thematic-or-simply-adapt-twentyten-to-my-needs#post-21661 Mon, 06 Jun 2011 02:25:41 +0000 kinybird 21661@http://forums.themeshaper.com/ <p>I am a newbie at customizing WordPress themes. I designed a website for a gallery and I just wanted to add an event calendar plugin in the home page and an image gallery in another page. </p> <p>I don't need the blogging stuff. I was trying to adapt my html code because I wanted it to be just as the one that I designed but I am getting really nervous about having to insert html code using functions.php because I think I'm modifying it too much. Also I commented some sections in the index.php(home.php) to get rid of the comments and loops.</p> <p>I don't know if this is the best option for me or if I'm following good practices. I am starting to think that thematic its too much for my needs right now.</p> <p>What do you think?? </p> riff062885 on "Conditional Tag to display full screen on Home page" http://forums.themeshaper.com/topic/conditional-tag-to-display-full-screen-on-home-page#post-21631 Sat, 04 Jun 2011 02:21:04 +0000 riff062885 21631@http://forums.themeshaper.com/ <p>I could have sworn thats what I did. Obviously not because it's working exactly like it should now! Also, thanks for the tip on the wp_enqueue_script. I got that working too. Your responses are ALWAYS top notch! Thank you so much! </p> helgatheviking on "Conditional Tag to display full screen on Home page" http://forums.themeshaper.com/topic/conditional-tag-to-display-full-screen-on-home-page#post-21625 Fri, 03 Jun 2011 15:48:23 +0000 helgatheviking 21625@http://forums.themeshaper.com/ <p>you can't put the add_action in a conditional tag, you use the conditional tag to wrap the part of the function you want to display conditionally.</p> <pre><code>function childtheme_favicon() { if(is_home()){ ?&gt; &lt;script type=&quot;text/javascript&quot;&gt; //script stuff here &lt;/script&gt; &lt;?php } } add_action(&#39;wp_head&#39;, &#39;childtheme_favicon&#39;);</code></pre> <p>though if your home page is actually a static page then you'd need to use is_front_page() as your conditional b/c is_home() tests for your blog page and imo should actually be called is_blog() but isn't</p> <p>additionally i would use wp_enqueue_script to load the supersize.js look it up in the codex </p>