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: php http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Wed, 27 May 2015 21:52:14 +0000 bruinmark on "Exclude a category from index loop" http://forums.themeshaper.com/topic/exclude-a-category-from-index-loop#post-26338 Sat, 14 Apr 2012 01:32:35 +0000 bruinmark 26338@http://forums.themeshaper.com/ <p>Thanks for your input, helga. Great suggestion. I went back to functions.php for my child theme and removed all the code I had added. Result: Query is in DESC order as it should be. Then I added in only the exclude_category_five function I mentioned above, and it works as planned (omitting category id #5), but posts are definitely no longer in DESC order. So conflict with other functions isn't the cause. (As an aside, all posts are in the correct DESC order when I check each /category.)</p> <p>Beyond that, there are no other page templates or additional PHP that I know of in my WP install. It's just Thematic and my Thematic child theme.</p> <p>I only have five active plugins (Contact Form 7, Contact Form to DB Extension, Really Simple CAPTCHA, Widget Logic and WP Google Fonts), and I'm doubting they're the source of this.</p> <p>Kind of interesting. Anyway, will explore this further and report back if/when I find the cause. </p> helgatheviking on "Exclude a category from index loop" http://forums.themeshaper.com/topic/exclude-a-category-from-index-loop#post-26333 Fri, 13 Apr 2012 22:01:27 +0000 helgatheviking 26333@http://forums.themeshaper.com/ <p>you must have done something wrong somewhere else, or there is a plugin causing problems, b/c there is nothing in that code snippet that would reverse the order. </p> <p><a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" rel="nofollow">http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters</a></p> <p>desc order is the default query. </p> <p>if you are sure they are being reversed, remove everything else from your functions, check you aren't using some kind of template, and disable all plugins. </p> bruinmark on "Exclude a category from index loop" http://forums.themeshaper.com/topic/exclude-a-category-from-index-loop#post-26330 Fri, 13 Apr 2012 20:57:38 +0000 bruinmark 26330@http://forums.themeshaper.com/ <p>Thanks, that definitely works (I simplified it because I'm just excluding one category from home page)...</p> <pre><code>add_action(&#39;pre_get_posts&#39;, &#39;exclude_category_five&#39; ); function exclude_category_five( &#38;$wp_query ) { // Exclude category 5 from home if ( is_home() ) { set_query_var(&#39;category__not_in&#39;, 5); } }</code></pre> <p>But: same problem happens. Posts in category 5 are excluded as expected, but the remaining posts do not appear in DESC order. (Can't show you a live link... install is on localhost.) I'm sure I'm missing something or doing something wrong. Any other thoughts? </p> helgatheviking on "Exclude a category from index loop" http://forums.themeshaper.com/topic/exclude-a-category-from-index-loop#post-26328 Fri, 13 Apr 2012 19:47:51 +0000 helgatheviking 26328@http://forums.themeshaper.com/ <p>this is no longer the way i recommend excluding a category from the index loop as it requires 2 queries. the more efficient way is to modify the query <em>before</em> it is ever run using the pre_get_posts() action</p> <p><a href="http://codex.wordpress.org/Custom_Queries#Category_Exclusion" rel="nofollow">http://codex.wordpress.org/Custom_Queries#Category_Exclusion</a></p> <pre><code>add_action(&#39;pre_get_posts&#39;, &#39;kia_exclude_cat&#39; ); function kia_exclude_cat( &#38;$wp_query ) { // Figure out if we need to exclude glossary - exclude from // archives (except category archives), feeds, and home page if( is_home() || is_feed() || ( is_archive() &#38;&#38; !is_category() )) { set_query_var(&#39;category__not_in&#39;, array(25,26)); } }</code></pre> bruinmark on "Exclude a category from index loop" http://forums.themeshaper.com/topic/exclude-a-category-from-index-loop#post-26327 Fri, 13 Apr 2012 18:50:32 +0000 bruinmark 26327@http://forums.themeshaper.com/ <p>I'm a noob with Thematic and to a lesser extent WP (both are great!). Question for helga or anyone: I tested helga's solution above on a child theme I'm doing. It works, but: the order of posts seems to be wrong (it's either ASC or mixed up, I can't tell which). But it's definitely not the default DESC with newest results on top.</p> <p>Is there an easy solution for this? Do I have to do a new query_posts() statement before the Loop? Am I doing something wrong?</p> <p>Any help from these awesome forums appreciated! </p> ScottNix on "secondary menu disappeared when I added another function" http://forums.themeshaper.com/topic/secondary-menu-disappeared-when-i-added-another-function#post-25962 Fri, 16 Mar 2012 23:26:37 +0000 ScottNix 25962@http://forums.themeshaper.com/ <p>Was it something to do with the z-index on the header covering the menu? </p> hlynnt on "secondary menu disappeared when I added another function" http://forums.themeshaper.com/topic/secondary-menu-disappeared-when-i-added-another-function#post-25961 Fri, 16 Mar 2012 23:25:30 +0000 hlynnt 25961@http://forums.themeshaper.com/ <p>fixed it!</p> <p>disregard :) </p> hlynnt on "secondary menu disappeared when I added another function" http://forums.themeshaper.com/topic/secondary-menu-disappeared-when-i-added-another-function#post-25959 Fri, 16 Mar 2012 22:15:56 +0000 hlynnt 25959@http://forums.themeshaper.com/ <p>The home page function isn't working either... I'm pretty sure it's a syntax flub a little farther down the page </p> hlynnt on "secondary menu disappeared when I added another function" http://forums.themeshaper.com/topic/secondary-menu-disappeared-when-i-added-another-function#post-25958 Fri, 16 Mar 2012 22:14:24 +0000 hlynnt 25958@http://forums.themeshaper.com/ <pre><code>// adding the widget area to your child theme function featured_home_widgets() { if (is_home()) { echo get_royalslider(1); if ( function_exists(&#39;dynamic_sidebar&#39;) &#38;&#38; is_sidebar_active(&#39;featured-home&#39;) ) { echo &#39;&lt;div id=&quot;featured-home&quot; class=&quot;aside clearfix&quot;&gt;&#39;. &quot;\n&quot; . &#39;&lt;ul class=&quot;xoxo&quot;&gt;&#39; . &quot;\n&quot;; dynamic_sidebar(&#39;featured-home&#39;); echo &#39;&#39; . &quot;\n&quot; . &#39;&lt;/div&gt;&lt;!-- #featured-home --&gt;&#39;. &quot;\n&quot;; } } } add_action(&#39;thematic_belowheader&#39;, &#39;featured_home_widgets&#39;, 8);</code></pre> <p>I think this is the area where I screwed up... but I'm not sure </p> hlynnt on "secondary menu disappeared when I added another function" http://forums.themeshaper.com/topic/secondary-menu-disappeared-when-i-added-another-function#post-25957 Fri, 16 Mar 2012 22:12:37 +0000 hlynnt 25957@http://forums.themeshaper.com/ <p>I think I need help with the syntax. Is there something missing? I've been using .net for a year so my PHP is rusty. A couple extra eyeballs would be great!</p> <p>function top-menu isn't showing up after I added </p> <p>if (is_home()) </p> <p>to the featured widget area. </p> <pre><code>&lt;?php // // Custom Child Theme Functions // // Adds a home link to your menu // <a href="http://codex.wordpress.org/Template_Tags/wp_page_menu" rel="nofollow">http://codex.wordpress.org/Template_Tags/wp_page_menu</a> function childtheme_menu_args($args) { $args = array( &#39;show_home&#39; =&gt; &#39;Home&#39;, &#39;sort_column&#39; =&gt; &#39;menu_order&#39;, &#39;menu_class&#39; =&gt; &#39;menu&#39;, &#39;echo&#39; =&gt; true ); return $args; } add_filter(&#39;wp_page_menu_args&#39;,&#39;childtheme_menu_args&#39;); // Register the new menus function register_my_menus() { register_nav_menus( array( &#39;primary-menu&#39; =&gt; __( &#39;Primary Menu&#39; ), &#39;top-menu&#39; =&gt; __( &#39;Top Menu&#39; ), ) ); } add_action( &#39;init&#39;, &#39;register_my_menus&#39; ); ///Top Menu (optional) function top_menu() { if ( has_nav_menu( &#39;top-menu&#39; ) ) { wp_nav_menu( array( &#39;theme_location&#39; =&gt; &#39;top-menu&#39;, &#39;container_id&#39;=&gt;&#39;top-menu&#39;, &#39;container_class&#39; =&gt; &#39;clearfix &#39;, &#39;menu_class&#39; =&gt; &#39;sf-menu&#39;, // we assign the sf-menu class to the menu ul so that superfish works on this menu too ) ); } } add_action(&#39;thematic_aboveheader&#39;,&#39;top_menu&#39;); // Add a dynamic menu using wp_list_pages function childtheme_menu() { ?&gt; &lt;div class=&quot;menu&quot;&gt; &lt;ul class=&quot;sf-menu&quot;&gt; &lt;?php wp_list_pages(&#39;title_li=&#39;); ?&gt; &lt;/ul&gt; &lt;div id=&quot;access-search&quot;&gt; &lt;form id=&quot;searchform&quot; method=&quot;get&quot; action=&quot;&lt;?php bloginfo(&#39;home&#39;) ?&gt;&quot;&gt; &lt;div&gt; &lt;input id=&quot;s&quot; name=&quot;s&quot; type=&quot;text&quot; value=&quot;Search&quot; onfocus=&quot;if (this.value == &#39;Search InMobi&#39;) {this.value = &#39;&#39;;}&quot; onblur=&quot;if (this.value == &#39;&#39;) {this.value = &#39;Search InMobi&#39;;}&quot; size=&quot;20&quot; tabindex=&quot;1&quot; /&gt; &lt;input id=&quot;searchsubmit&quot; name=&quot;searchsubmit&quot; type=&quot;submit&quot; value=&quot;&lt;?php _e(&#39;Go&#39;, &#39;thematic&#39;) ?&gt;&quot; tabindex=&quot;2&quot; /&gt; &lt;/div&gt; &lt;/form &gt;&lt;/div&gt; &lt;/div&gt; &lt;?php } add_action(&#39;wp_page_menu&#39;,&#39;childtheme_menu&#39;); // creates widget PHONE NUMBER function my_widgets_init() { register_sidebar(array( &#39;name&#39; =&gt; &#39;Header Phone Number&#39;, &#39;id&#39; =&gt; &#39;header-aside&#39;, &#39;before_widget&#39; =&gt; &#39;&lt;li id=&quot;%1$s&quot; class=&quot;widgetcontainer %2$s&quot;&gt;&#39;, &#39;after_widget&#39; =&gt; &quot;&quot;, &#39;before_title&#39; =&gt; &quot;&lt;h3 class=\&quot;widgettitle\&quot;&gt;&quot;, &#39;after_title&#39; =&gt; &quot;&lt;/h3&gt;\n&quot;, )); } add_action( &#39;init&#39;, &#39;my_widgets_init&#39; ); // adding the widget area to your child theme function my_header_widgets() { if ( function_exists(&#39;dynamic_sidebar&#39;) &#38;&#38; is_sidebar_active(&#39;header-aside&#39;) ) { echo &#39;&lt;div id=&quot;header-aside&quot; class=&quot;aside clearfix&quot;&gt;&#39;. &quot;\n&quot; . &#39;&lt;ul class=&quot;xoxo&quot;&gt;&#39; . &quot;\n&quot;; dynamic_sidebar(&#39;header-aside&#39;); echo &#39;&#39; . &quot;\n&quot; . &#39;&lt;/div&gt;&lt;!-- #header-aside .aside --&gt;&#39;. &quot;\n&quot;; } } add_action(&#39;thematic_header&#39;, &#39;my_header_widgets&#39;, 8); // Home Featured // creates widget Featured Home function featured_home_widgets_init() { register_sidebar(array( &#39;name&#39; =&gt; &#39;Featured Home Page Excerpts&#39;, &#39;id&#39; =&gt; &#39;featured-home&#39;, &#39;before_widget&#39; =&gt; &#39;&lt;li id=&quot;%1$s&quot; class=&quot;widgetcontainer %2$s&quot;&gt;&#39;, &#39;after_widget&#39; =&gt; &quot;&quot;, &#39;before_title&#39; =&gt; &quot;&lt;h3 class=\&quot;widgettitle\&quot;&gt;&quot;, &#39;after_title&#39; =&gt; &quot;&lt;/h3&gt;\n&quot;, )); } add_action( &#39;init&#39;, &#39;featured_home_widgets_init&#39; ); // adding the widget area to your child theme function featured_home_widgets() { if (is_home()) { echo get_royalslider(1); if ( function_exists(&#39;dynamic_sidebar&#39;) &#38;&#38; is_sidebar_active(&#39;featured-home&#39;) ) { echo &#39;&lt;div id=&quot;featured-home&quot; class=&quot;aside clearfix&quot;&gt;&#39;. &quot;\n&quot; . &#39;&lt;ul class=&quot;xoxo&quot;&gt;&#39; . &quot;\n&quot;; dynamic_sidebar(&#39;featured-home&#39;); echo &#39;&#39; . &quot;\n&quot; . &#39;&lt;/div&gt;&lt;!-- #featured-home --&gt;&#39;. &quot;\n&quot;; } } } add_action(&#39;thematic_belowheader&#39;, &#39;featured_home_widgets&#39;, 8); // Read More link under Excerpts function excerpt_read_more_link($output) { global $post; return $output . &#39;&lt;a class=&quot;btn1&quot; href=&quot;&#39;. get_permalink($post-&gt;ID) . &#39;&quot;&gt; Read More...&lt;/a&gt;&#39;; } add_filter(&#39;the_excerpt&#39;, &#39;excerpt_read_more_link&#39;); // Hide Wordpress version function wpt_remove_version() { return &#39;&#39;; } add_filter(&#39;the_generator&#39;, &#39;wpt_remove_version&#39;); // Unleash the power of Thematic&#39;s dynamic classes // // define(&#39;THEMATIC_COMPATIBLE_BODY_CLASS&#39;, true); // define(&#39;THEMATIC_COMPATIBLE_POST_CLASS&#39;, true); // Unleash the power of Thematic&#39;s comment form // // define(&#39;THEMATIC_COMPATIBLE_COMMENT_FORM&#39;, true); // Unleash the power of Thematic&#39;s feed link functions // // define(&#39;THEMATIC_COMPATIBLE_FEEDLINKS&#39;, true); ?&gt;</code></pre> helgatheviking on "function thematic_create_doctype()" http://forums.themeshaper.com/topic/function-thematic_create_doctype#post-25944 Thu, 15 Mar 2012 23:04:37 +0000 helgatheviking 25944@http://forums.themeshaper.com/ <p>good catch scott. i've edited chris' code. </p> ScottNix on "function thematic_create_doctype()" http://forums.themeshaper.com/topic/function-thematic_create_doctype#post-25943 Thu, 15 Mar 2012 23:01:31 +0000 ScottNix 25943@http://forums.themeshaper.com/ <p>You are correct about the error. Try,<br /> <pre><code>function my_create_doctype($content) { $content = &#39;&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;&#39; . &quot;\n&quot;; $content .= &#39;&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&#39;; return $content; } add_filter(&#39;thematic_create_doctype&#39;, &#39;my_create_doctype&#39;);</code></pre> <p>Swapped out apply_filter with add_filter </p> fahdi on "function thematic_create_doctype()" http://forums.themeshaper.com/topic/function-thematic_create_doctype#post-25942 Thu, 15 Mar 2012 22:02:23 +0000 fahdi 25942@http://forums.themeshaper.com/ <p>This filter is giving me an internal server error. Am I missing something? </p> helgatheviking on "Tons of trouble w "child theme options" header code" http://forums.themeshaper.com/topic/tons-of-trouble-w-child-theme-options-header-code#post-25316 Fri, 10 Feb 2012 15:19:31 +0000 helgatheviking 25316@http://forums.themeshaper.com/ <p>i highly recommend Devin price's options framework for all theme option endeavors:</p> <p><a href="http://wordpress.org/extend/plugins/options-framework/" rel="nofollow">http://wordpress.org/extend/plugins/options-framework/</a></p> <p>you are reporting 2 different errors. unless you've monkeyed w/ thematic, thematic_create_doctype() is the first function in header-extensions.php</p> <p>headers already sent error, usually means you have extra space after a closing ?&gt; at the end of a file</p> <p>so</p> <pre><code>&lt;?php //all your code ?&gt; oh what is this extra space?</code></pre> theed on "Tons of trouble w "child theme options" header code" http://forums.themeshaper.com/topic/tons-of-trouble-w-child-theme-options-header-code#post-25313 Fri, 10 Feb 2012 14:50:27 +0000 theed 25313@http://forums.themeshaper.com/ <p>Hi all. I've been using this:<br /> <pre><code>&lt;?php // ---------- &quot;Child Theme Options&quot; menu STARTS HERE add_action(&#39;admin_menu&#39; , &#39;childtheme_add_admin&#39;); function childtheme_add_admin() { add_submenu_page(&#39;themes.php&#39;, &#39;Child Theme Options&#39;, &#39;Child Theme Options&#39;, &#39;edit_themes&#39;, basename(__FILE__), &#39;childtheme_admin&#39;); } function childtheme_admin() { $child_theme_image = get_option(&#39;child_theme_image&#39;); $enabled = get_option(&#39;child_theme_logo_enabled&#39;); if ($_POST[&#39;options-submit&#39;]){ $enabled = htmlspecialchars($_POST[&#39;enabled&#39;]); update_option(&#39;child_theme_logo_enabled&#39;, $enabled); $file_name = $_FILES[&#39;logo_image&#39;][&#39;name&#39;]; $temp_file = $_FILES[&#39;logo_image&#39;][&#39;tmp_name&#39;]; $file_type = $_FILES[&#39;logo_image&#39;][&#39;type&#39;]; if($file_type==&quot;image/gif&quot; || $file_type==&quot;image/jpeg&quot; || $file_type==&quot;image/pjpeg&quot; || $file_type==&quot;image/png&quot;){ $fd = fopen($temp_file,’rb’); $file_content=file_get_contents($temp_file); fclose($fd); $wud = wp_upload_dir(); if (file_exists($wud[path].&#39;/&#39;.strtolower($file_name))){ unlink ($wud[path].&#39;/&#39;.strtolower($file_name)); } $upload = wp_upload_bits( $file_name, &#39;&#39;, $file_content); // echo $upload[&#39;error&#39;]; $child_theme_image = $wud[url].&#39;/&#39;.strtolower($file_name); update_option(&#39;child_theme_image&#39;, $child_theme_image); } ?&gt; &lt;div class=&quot;updated&quot;&gt;&lt;p&gt;Your new options have been successfully saved.&lt;/p&gt;&lt;/div&gt; &lt;?php } if($enabled) $checked=&#39;checked=&quot;checked&quot;&#39;; ?&gt; &lt;div class=&quot;wrap&quot;&gt; &lt;div id=&quot;icon-themes&quot; class=&quot;icon32&quot;&gt;&lt;/div&gt; &lt;h2&gt;Child Theme Options&lt;/h2&gt; &lt;form name=&quot;theform&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot; action=&quot;&lt;?php echo str_replace( &#39;%7E&#39;, &#39;~&#39;, $_SERVER[&#39;REQUEST_URI&#39;]);?&gt;&quot;&gt; &lt;table class=&quot;form-table&quot;&gt; &lt;tr&gt; &lt;td width=&quot;200&quot;&gt;Use logo image instead of blog title and description:&lt;/td&gt; &lt;td&gt;&lt;input type=&quot;checkbox&quot; name=&quot;enabled&quot; value=&quot;1&quot; &lt;?php echo $checked; ?&gt;/&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Current image:&lt;/td&gt; &lt;td&gt;&lt;img src=&quot;&lt;?php echo $child_theme_image; ?&gt;&quot; /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Logo image to use (gif/jpeg/png):&lt;/td&gt; &lt;td&gt;&lt;input type=&quot;file&quot; name=&quot;logo_image&quot;&gt;(you must have writing permissions for your uploads directory)&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;input type=&quot;hidden&quot; name=&quot;options-submit&quot; value=&quot;1&quot; /&gt; &lt;p class=&quot;submit&quot;&gt;&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Save Options&quot; /&gt;&lt;/p&gt; &lt;/form&gt; &lt;/div&gt; &lt;?php } // ---------- &quot;Child Theme Options&quot; menu ENDS HERE // ---------- Adding the logo image to the header STARTS HERE if(get_option(&#39;child_theme_logo_enabled&#39;)){ function remove_thematic_blogtitle() { remove_action(&#39;thematic_header&#39;,&#39;thematic_blogtitle&#39;,3); } add_action(&#39;init&#39;,&#39;remove_thematic_blogtitle&#39;); function remove_thematic_blogdescription() { remove_action(&#39;thematic_header&#39;,&#39;thematic_blogdescription&#39;,5); } add_action(&#39;init&#39;,&#39;remove_thematic_blogdescription&#39;); function thematic_logo_image() { echo &#39;&lt;div id=&quot;logo-image&quot;&gt;&lt;a href=&quot;&#39;.get_option(&#39;home&#39;).&#39;&quot;&gt;&lt;img src=&quot;&#39;.get_option(&#39;child_theme_image&#39;).&#39;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&#39;; } add_action(&#39;thematic_header&#39;,&#39;thematic_logo_image&#39;,4); } // ---------- Adding the logo image to the header ENDS HERE ?&gt;</code></pre> <p>By cozmos labs on a few sites for a few years. This code adds something called "child theme options" to the wordpress admin menu and allows you to upload/swap out header banners right through the wordpress interface and replace the blog/title description with them. I have never had a problem with it until now. </p> <p>I've recently completed a new site and when the code above is placed in the functions.php file (that's where it goes), I get this message upon trying to load the site:</p> <p>"Fatal error: Call to undefined function thematic_create_doctype() in /home/content/89/8917489/html/wp-content/themes/thematic/header.php on line 4" </p> <p>In order to correct this I had to put fresh functions.php files in the theme. When I added the child theme options code again, it worked fine and I had the banner uploaded and displayed correctly. HOWEVER, upon going to the site again, in the same browser, I got another error message. I can't recreate this message exactly now because the site is live and I can't take it down or my client will freak out. : ) </p> <p>The message was something like the above but instead said "header already called" or something like that. </p> <p>Can anyone give me any insight on this? I'm not to familiar with these php errors! </p> <p>Thanks! </p> proto on "Getting Rid of Content in #Content" http://forums.themeshaper.com/topic/getting-rid-of-content-in-content#post-24950 Wed, 18 Jan 2012 07:36:00 +0000 proto 24950@http://forums.themeshaper.com/ <p>Hello Zella,</p> <p>I think helgatheviking's solution may be easiest if you're new to loops etc? You could remove content as Helga says by commenting out the thematic_content and put your image there and then set your homepage in the dashboard &gt; settings &gt; reading section.</p> <p>As an aside, if you're interested in loops and tutorials etc, one free option is to google them. It sounds like you're pressed for time in which case Helga's link should really help. </p> <p><strong>If you're wanting to learn more about loops etc?</strong></p> <p>The way I learnt about loops was via a book, the one I purchased was "Smashing WordPress: Beyond the Blog" by Thord Daniel Hedengren. I can't say this is the best book out there, Helga or someone else may recommend something else, but that taught me about custom loops with wordpress etc... Time and ease may dictate you go for Helga's option?</p> <p>Good luck! </p> helgatheviking on "Getting Rid of Content in #Content" http://forums.themeshaper.com/topic/getting-rid-of-content-in-content#post-24946 Wed, 18 Jan 2012 04:02:06 +0000 helgatheviking 24946@http://forums.themeshaper.com/ <p>easiest way would be to create a custom page template and assign it to your static home page. </p> <p><a href="http://www.wpbeginner.com/wp-themes/how-to-create-a-custom-page-in-wordpress/" rel="nofollow">http://www.wpbeginner.com/wp-themes/how-to-create-a-custom-page-in-wordpress/</a></p> <p>you can copy thematic's page.php into your new custom template and then comment out thematic_content() and that should remove the content. </p> zella on "Getting Rid of Content in #Content" http://forums.themeshaper.com/topic/getting-rid-of-content-in-content#post-24945 Wed, 18 Jan 2012 03:41:36 +0000 zella 24945@http://forums.themeshaper.com/ <p>Thank you very much Proto. But your second explanation is actually what I'm going for. I already did the first. What I want is what you described: a home page that is just a custom made background image in the #content and then a separate blog page that is traditional, allowing posts in the #content area.</p> <p>I am using a child theme. </p> <p>I am willing to learn php to have this done (in fact if you have any tutorials I can go to to learn php for wordpress I would be very receptive) however I need to get this website up and running soon so if you can suggest a possible solution I would be very grateful. </p> proto on "Getting Rid of Content in #Content" http://forums.themeshaper.com/topic/getting-rid-of-content-in-content#post-24941 Tue, 17 Jan 2012 22:49:45 +0000 proto 24941@http://forums.themeshaper.com/ <p>Hello Zella,</p> <p>If I understand correctly you want a homepage that displays quite differently to your blog page? The content of home and blog can be separate if you go to your dashboard &gt; settings &gt; reading and then set your front page and post page. From reading above it sounds like you might have done this already?</p> <p>QUICK SOLUTION (Limited, but some options)</p> <p>1: Two thoughts, you can set your homepage as any page that you've created, and have the content you'd like there. Additionally, you can choose if you'd like the content to display, default (with sidebar) or full width by selecting the page template from the dropdown on the right-hand side when you're editing or creating a page. You could then target the CSS of the page that you set as the homepage and add a background image to the content area. Use / install firebug for firefox if you want to quickly identify which CSS elements / ID's or classes you need to change.</p> <p>YOU WANT SOMETHING LIKE A MAGAZINE STYLE HOMEPAGE AND THEN A MORE TRADITIONAL BLOG PAGE (Warning PHP skills required and css)</p> <p>2: Before you proceed I would read this on why you should develop your website as a child theme: <a href="http://themeshaper.com/thematic/guide/?page_id=66" rel="nofollow">http://themeshaper.com/thematic/guide/?page_id=66</a> If this scenario is what you want you will need some php coding knowledge. There's a free sample child theme that comes with the Themeshaper download, take a look inside the file and find the file called "thematicsamplechildtheme".</p> <p>If you're already using a child theme then you can skip that link above! For a magazine style homepage (think New York Times style, etc) you would then need to create a home.php file and use a loop to display anything that you wanted. Often people copy the native Themeshaper "index.php" file and then adjust to their display needs through a custom loop and then save that adjusted file as "home.php". Explaining custom loops and homepages is beyond the scope of a simple forum answer but if you can let us all know what you're wanting to do exactly, eg Homepage shows no content but just a background image and then a separate page is a more traditional blog, we can let you know what you might need to consider. </p> <p>I hope the above helps Zella. </p> zella on "Getting Rid of Content in #Content" http://forums.themeshaper.com/topic/getting-rid-of-content-in-content#post-24930 Tue, 17 Jan 2012 09:44:14 +0000 zella 24930@http://forums.themeshaper.com/ <p>I am trying to quickly get a custom theme up and running with themeshaper. Everything is pretty well except the #content area. I have fixed the home page, and I have a blog page set to post. What I want is for the content of the home and blog area to be separate. Thusly in home I may end up just using a background design for the content area, and for the blog area have the title and etc., different.<br /> So my question is how do I do this? I have little css and no php skills, so my solution to the problem was this kind of pseudo code;</p> <p>php- if (is_page(ID))<br /> hentry{display:none}</p> <p>obviously this isn't correct, but I do not understand how to make this problem work.<br /> Any help is appreciated! </p> helgatheviking on "Insert new html somewhere in Thematic header (using a hook?)" http://forums.themeshaper.com/topic/insert-new-html-somewhere-in-thematic-header-using-a-hook#post-24707 Sat, 07 Jan 2012 00:21:52 +0000 helgatheviking 24707@http://forums.themeshaper.com/ <p>how to use an action hook:<br /> <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> TyeNewton on "Insert new html somewhere in Thematic header (using a hook?)" http://forums.themeshaper.com/topic/insert-new-html-somewhere-in-thematic-header-using-a-hook#post-24706 Fri, 06 Jan 2012 22:36:53 +0000 TyeNewton 24706@http://forums.themeshaper.com/ <p>Okay, I'm trying to understand hooks, but I just don't know PHP at all yet.<br /> I really want to try to ask as few questions as possible as I learn this stuff, but maybe that's silly... Also, someone else might just find what I'm trying to do interesting... maybe. ; )</p> <p>Anyway, I have a specific goal, and I only have a vague notion of how it's done:</p> <p>I'm pretty sure I want to use an action hook (or perhaps I need a filter hook) to place a couple div tags within the thematic header. My specific goal is to create an alternating masthead graphic, utilizing <a href="http://css-tricks.com/webkit-image-wipes/">Chris Coyier's CSS trick for webkit image wipes</a> (I realize I will have to come up with an alternative for non-webkit browsers... One step at a time.)</p> <p>Ideally, the two alternating mastheads would still be clickable links, and ultra-ideally, they'd each link to separate URLs! (Again, one step at a time.)</p> <p>I guess I'm just looking for a straight answer about how exactly I use PHP to insert code into the header (probably the blog-title area?). I just recently used an action hook, for the first time, to move #access from one place to another; now I'm thinking I need to do something similar here, but I'm <em>creating</em> new html this time.</p> <p>Thanks so much for any and all tips! </p> helgatheviking on "Editing widgets-extensions.php not working" http://forums.themeshaper.com/topic/editing-widgets-extensionsphp-not-working#post-24066 Fri, 02 Dec 2011 14:02:19 +0000 helgatheviking 24066@http://forums.themeshaper.com/ <p>no problem. if that solved it for you don't forget to mark this thread as resolved. </p> drewdavid on "Editing widgets-extensions.php not working" http://forums.themeshaper.com/topic/editing-widgets-extensionsphp-not-working#post-24059 Fri, 02 Dec 2011 06:27:46 +0000 drewdavid 24059@http://forums.themeshaper.com/ <p>Ok acknowledged.</p> <p>Thank you for this information! :) I really appreciate it.</p> <p>Best Regards,</p> <p>Drew </p> helgatheviking on "Editing widgets-extensions.php not working" http://forums.themeshaper.com/topic/editing-widgets-extensionsphp-not-working#post-24054 Fri, 02 Dec 2011 01:40:19 +0000 helgatheviking 24054@http://forums.themeshaper.com/ <p>all function/filter changes to the parent theme happen in your child's functions.php. at least until you get so many that you need to start organizing them into separate files.</p> <p>you can name your function anything you'd like as long as the function name matches the name of the function being added in add_filter. you should preface it w/ something to avoid "namespace collision" which is what you saw before of 2 functions having the same name.</p> <p>kia just stands for "kathy is awesome" which if i ever finished my damned portfolio would be my brand name, but you could have just as easily called it bacon_search_form_length() </p> drewdavid on "Editing widgets-extensions.php not working" http://forums.themeshaper.com/topic/editing-widgets-extensionsphp-not-working#post-24053 Fri, 02 Dec 2011 01:12:42 +0000 drewdavid 24053@http://forums.themeshaper.com/ <p>Hi,</p> <p>Thanks it makes some sense now yes.</p> <p>First question, where do I place this filter in my child theme? What file does it live in?</p> <p>Second, was "kia" an arbitrary name given to the filter, or does it mean something? </p> helgatheviking on "Editing widgets-extensions.php not working" http://forums.themeshaper.com/topic/editing-widgets-extensionsphp-not-working#post-24051 Fri, 02 Dec 2011 00:46:33 +0000 helgatheviking 24051@http://forums.themeshaper.com/ <p>my post doesn't discuss filtering the length of the search widget specifically. instead i tried to explain filters in general, b/c the <em>process</em> is the same, every, single time. once you get it you won't have to ask, how do i filter this? how do i filter that? b/c you will know how to simply filter. it took me a long time to get my head around it which is why i make a point to try to explain it to people. </p> <p>so you want to change the search form length.... the first function in widget-extensions.php is thematic_search_form() and the very first line of said function is </p> <pre><code>$search_form_length = apply_filters(&#39;thematic_search_form_length&#39;, &#39;32&#39;);</code></pre> <p>in my primer on filters i explained that <strong>apply_filters</strong> is your signal that you can <em>filter</em> that value, and that thematic_search_form_length is the filter's name.</p> <p>then i go on to explain how to set up filter in order to change a variable. which adapted to your specific example should be: </p> <pre><code>function kia_search_length(){ return &quot;22&quot;; } add_filter(&#39;thematic_search_form_length&#39;,&#39;kia_search_length&#39;);</code></pre> <p>short, sweet, elegant. that is how you filter anything.... take a value in, (not in this case since we don't need it), change it, pass it back. </p> <p>hope that makes sense </p> drewdavid on "Editing widgets-extensions.php not working" http://forums.themeshaper.com/topic/editing-widgets-extensionsphp-not-working#post-24050 Fri, 02 Dec 2011 00:14:50 +0000 drewdavid 24050@http://forums.themeshaper.com/ <p>Hi Helga,</p> <p>I am just trying to shorten the length of the search form from "32" to something like "22".</p> <p>It works find when I edit widgets-extensions.php in the parent theme. But of course that kind of defeats the purpose of using a child theme! :)</p> <p>BTW I read your post, but frankly I don't see how it applies to something like this (at all). Maybe you could enlighten me? </p> drewdavid on "Editing widgets-extensions.php not working" http://forums.themeshaper.com/topic/editing-widgets-extensionsphp-not-working#post-24049 Fri, 02 Dec 2011 00:13:08 +0000 drewdavid 24049@http://forums.themeshaper.com/ <p>I do notice an instruction to load the widgets-extensions.php file in functions.php!</p> <p>// Load custom Widgets<br /> require_once(THEMELIB . '/extensions/widgets-extensions.php');</p> <p>However I'm still left with the problem of having functions.php in my child theme (see above).</p> <p>Thanks :) </p> helgatheviking on "Editing widgets-extensions.php not working" http://forums.themeshaper.com/topic/editing-widgets-extensionsphp-not-working#post-24048 Fri, 02 Dec 2011 00:11:15 +0000 helgatheviking 24048@http://forums.themeshaper.com/ <p>you can't straight up copy b/c then you will have functions named the same thing. as your error indicates. please read the explanation of hooks and filters i linked you too and then let me know what you are actually trying to do so i can offer more specific help. </p>