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: header Help In Shaping WordPress Themes en Mon, 25 May 2015 01:18:44 +0000 ScottNix on "use Wordpress to set the header > custom header in power blog theme" Fri, 13 Jul 2012 16:11:17 +0000 ScottNix 27501@ <p>The Thematic Forums have moved to <a href="" rel="nofollow"></a></p> <p>To make it so you can use the custom header image, reference <a href="" rel="nofollow"></a></p> <p>Which is basically something like this.<br /> <pre><code>$headerargs = array( &#39;flex-width&#39; =&gt; true, &#39;width&#39; =&gt; 960, &#39;flex-height&#39; =&gt; true, &#39;height&#39; =&gt; 150, &#39;default-image&#39; =&gt; get_stylesheet_directory_uri() . &#39;/images/header.png&#39;, ); add_theme_support( &#39;custom-header&#39;, $headerargs ); function childtheme_add_header_image() { ?&gt; &lt;img src=&quot;&lt;?php header_image(); ?&gt;&quot; height=&quot;&lt;?php echo get_custom_header()-&gt;height; ?&gt;&quot; width=&quot;&lt;?php echo get_custom_header()-&gt;width; ?&gt;&quot; alt=&quot;&quot; /&gt; &lt;?php } add_action(&#39;thematic_header&#39;, &#39;childtheme_add_header_image&#39;, 6);</code></pre> <p>You will need to add (or make sure you already have) a /images/ folder and header.png file which would be the default. This is just an example, as far as doing "random" that depends on how it would be set up and is probably somewhat of a pain, it is up to you to figure out that. :P </p> ScottNix on "Add a slideshow to a header" Fri, 13 Jul 2012 15:32:22 +0000 ScottNix 27500@ <p>The forum has moved to <a href="" rel="nofollow"></a></p> <p>Although you are probably looking for something like this.</p> <pre><code>function childtheme_add_slider_shortcode() { echo do_shortcode(&quot;[satellite custom=1]&quot;); } add_action(&#39;thematic_header&#39;, &#39;childtheme_add_slider_shortcode&#39;, 6);</code></pre> <p>You will also see a "6" above which is the priority, the "odds - 1,3,5,7 and 9" are already taken, so you will have to move it around to where you want using even numbers. </p> <p>References<br /> <a href="" rel="nofollow"></a><br /> <a href="" rel="nofollow"></a> </p> buxx on "use Wordpress to set the header > custom header in power blog theme" Fri, 13 Jul 2012 10:54:19 +0000 buxx 27499@ <p>On <a href="" rel="nofollow"></a> I use the powerblog theme, and if I want another image in the header, i must edit it in de .css file.<br /> How can I use the 'custom header' funtion pf Wordpress to easily edit the headerimage, and even load it at random? </p> Colleen on "Add a slideshow to a header" Wed, 11 Jul 2012 08:32:31 +0000 Colleen 27480@ <p>Hi<br /> I have installed Satellite Slideshow on my wordpress website and would like to know how I put it into the header please? The code for the slide show is [satellite custom=1]. I have a thematic child theme set up on my site.</p> <p>This is what I already have in my functions php page.</p> <p>&lt;?php</p> <p>//<br /> // Custom Child Theme Functions<br /> //</p> <p>// I've included a "commented out" sample function below that'll add a home link to your menu<br /> // More ideas can be found on "A Guide To Customizing The Thematic Theme Framework"<br /> // <a href="" rel="nofollow"></a></p> <p>// Adds a home link to your menu<br /> // <a href="" rel="nofollow"></a><br /> //function childtheme_menu_args($args) {<br /> // $args = array(<br /> // 'show_home' =&gt; 'Home',<br /> // 'sort_column' =&gt; 'menu_order',<br /> // 'menu_class' =&gt; 'menu',<br /> // 'echo' =&gt; true<br /> // );<br /> // return $args;<br /> //}<br /> //add_filter('wp_page_menu_args','childtheme_menu_args');</p> <p>// Unleash the power of Thematic's dynamic classes<br /> //<br /> // define('THEMATIC_COMPATIBLE_BODY_CLASS', true);<br /> // define('THEMATIC_COMPATIBLE_POST_CLASS', true);</p> <p>// Unleash the power of Thematic's comment form<br /> //<br /> // define('THEMATIC_COMPATIBLE_COMMENT_FORM', true);</p> <p>// Unleash the power of Thematic's feed link functions<br /> //<br /> // define('THEMATIC_COMPATIBLE_FEEDLINKS', true);<br /> function remove_title($posttitle) {<br /> if (is_page() || is_404()) {<br /> return '';<br /> } else {<br /> return $posttitle;<br /> }<br /> }<br /> add_filter('thematic_postheader_posttitle', 'remove_title');<br /> function childtheme_favicon() { ?&gt;<br /> &lt;link rel="shortcut icon" href="&lt;?php echo bloginfo('stylesheet_directory') ?&gt;/favicon.ico"&gt;<br /> &lt;?php }</p> <p>// favicon front-end<br /> add_action('wp_head', 'childtheme_favicon');</p> <p>// favicon back-end<br /> add_action('admin_head', 'childtheme_favicon');</p> <p>// favicon login-page<br /> add_action('login_head', 'childtheme_favicon');</p> <p>?&gt;</p> <p>regards Colleen </p> helgatheviking on "how can i edit "header-extensions.php"" Tue, 29 May 2012 11:41:45 +0000 helgatheviking 27214@ <p>agreed. there is very little you can't change in header.php through hooks/filters... probably only a few div IDs or classes. and there is pretty much nothing you can't change in header-extensions.php. so do tell what you need to change. once you figure out 1 function process and 1 filter process, they are all the same. </p> <p>additionally, right now is a terrible time to go hacking header-extensions.php so that you can't upgrade, b/c the thematic 1.0 release is in theme review and due to be approved at any time. </p> middlesister on "how can i edit "header-extensions.php"" Tue, 29 May 2012 09:18:03 +0000 middlesister 27213@ <p>Almost all of the header sections is changeable through filters and hooks. What is it you need to edit, and where do you want to add your code?</p> <p>I have built a site with WPML before and I didn't need to do too much edits, but that was an older version and I don't know how it has changed since then. Basically i replaced #access with a custom one with the wpml navigation menu and language switcher, and registered the footer text on the theme options page for translation with wpml.</p> <p>On a side note, if there is something specific that you miss that is needed for smooth integration with WPML do tell what you need. Thematic has built in compatibility code for several plugins. Maybe something for WPML could be added to Thematic so you wouldn't need to jump through hoops to make it work. </p> sixfootjames on "how can i edit "header-extensions.php"" Tue, 29 May 2012 08:51:16 +0000 sixfootjames 27212@ <p>I see now how that works, but I still need hard access to that file to be able to add the WPML code snippet so unfortunately, I will have to make the change in the header-extensions.php.</p> <p>Unless I can rewrite the header section in the functions.php file?</p> <p>Thanks again. </p> sixfootjames on "how can i edit "header-extensions.php"" Tue, 29 May 2012 05:06:43 +0000 sixfootjames 27207@ <p>Thanks Helga. I will try that!</p> <p>I am using WPML to translate and entire site from English to Afrikaans, hence the reason I need to ability to make changes to that eader-extensions.php without touching the file in thematic.</p> <p>Many thanks again ;) </p> helgatheviking on "how can i edit "header-extensions.php"" Mon, 28 May 2012 20:18:27 +0000 helgatheviking 27203@ <p>you merely use add_action to put it on a different hook for example:</p> <pre><code>add_action(&#39;thematic_aboveheader&#39;,&#39;thematic_blogtitle&#39;);</code></pre> <p>it is always the same, over and over, everywhere in wordpress<br /> <a href="" rel="nofollow"></a></p> <p>also, i was fairly certain that thematic was translation ready... what are you translating that isn't already translation ready. perhaps you should open you own thread for that. </p> sixfootjames on "how can i edit "header-extensions.php"" Mon, 28 May 2012 14:32:16 +0000 sixfootjames 27198@ <p>Hi Helga,</p> <p>This explains how to remove the Blog title which is great, but how does one now add it again in the functions.php file? I have to implement translation of the site and need to do this directly in the header-extensions.php if it is not possible through the functions.php file.</p> <p>Many thanks,<br /> James </p> helgatheviking on "move code from header file to functions.php" Fri, 11 May 2012 03:26:06 +0000 helgatheviking 26962@ <p>i should reinsert my brain from time to time. that's a neat trick. actually, middlesister has convinced me that this bit of code is "doing it wrong"... in the sense that it is <em>hard-coding</em> things into doc-title that seo plugins then have to bludgeon to get out of there.... or can't at all. </p> <p>a better approach might be<br /> <pre><code>&lt;title&gt;&lt;?php wp_title( &#39;|&#39;, true, &#39;right&#39; ); ?&gt;&lt;/title&gt;</code></pre> <p>and then filter in the rest via the wp_title filter that lives inside the wp_title function. </p> PitaMaria on "move code from header file to functions.php" Fri, 11 May 2012 03:10:16 +0000 PitaMaria 26961@ <p>Thanks, gang, for your replies. I was mixing up this issue with another project built on TwentyTen. Re-inserting brain now. </p> helgatheviking on "move code from header file to functions.php" Thu, 10 May 2012 14:12:33 +0000 helgatheviking 26950@ <p>this code is automatically added via thematic_doctitle() in the default header.php. so there is no need to manually include it in a child header.php </p> tammai on "move code from header file to functions.php" Thu, 10 May 2012 09:53:02 +0000 tammai 26946@ <p>I think you can create new function name childtheme_override_doctitle() in your functions.php then put your code into that. </p> PitaMaria on "move code from header file to functions.php" Thu, 10 May 2012 04:37:48 +0000 PitaMaria 26930@ <p>@ScottNix: Yes, I'm using a Thematic child theme. That snippet is being used successfully in my child theme's header.php file ... I'm just trying to eliminate all child theme files except for style.css and functions.php, and the page-titling automation this snippet provides is the only thing keeping me from doing that.</p> <p>Am I understanding you correctly that I could do something to an extensions file in my child theme? What's that? </p> ScottNix on "move code from header file to functions.php" Thu, 10 May 2012 00:08:29 +0000 ScottNix 26922@ <p>Hmm, I know this is going to come up. Are you using a Thematic Child Theme? It would take some serious butchering to work this into a child theme considering all the relevant information for titles is handled in the extensions file. :/</p> <p>There is something else going on here, more to fix than just converting this to a functions.php snippet. </p> PitaMaria on "move code from header file to functions.php" Thu, 10 May 2012 00:03:35 +0000 PitaMaria 26921@ <p>Apologies if this topic is covered in this forum; I searched but couldn't find anything relevant.</p> <p>I'm using the code below to customize page titles, but have only figured out how to make it work placed in my child theme's header.php file. Is it possible to move this code out of that header file and put it in my functions.php? If so, would you be so kind as to provide the syntax that I may copy and paste? Thanks in advance for your attention to this issue.</p> <pre><code>&lt;title&gt;&lt;?php /* * Print the &lt;title&gt; tag based on what is being viewed. */ global $page, $paged; wp_title( &#39;|&#39;, true, &#39;right&#39; ); // Add the blog name. bloginfo( &#39;name&#39; ); // Add the blog description for the home/front page. $site_description = get_bloginfo( &#39;description&#39;, &#39;display&#39; ); if ( $site_description &#38;&#38; ( is_home() || is_front_page() ) ) echo &quot; | $site_description&quot;; // Add a page number if necessary: if ( $paged &gt;= 2 || $page &gt;= 2 ) echo &#39; | &#39; . sprintf( __( &#39;Page %s&#39;, &#39;twentyten&#39; ), max( $paged, $page ) ); ?&gt;&lt;/title&gt;</code></pre> accessprogram on "Adding a Header Image" Tue, 20 Mar 2012 01:42:17 +0000 accessprogram 26017@ <p>You all doing a great job thanks for sharing such a nice and informative post. </p> Hdsded on "Adding a Header Image" Fri, 16 Mar 2012 06:56:43 +0000 Hdsded 25950@ <p>Upload your header image (which should be 960px wide) to your media library and then post the URL of that image here and we can help you with the code.</p> <p><a href="" rel="nofollow"></a> </p> helgatheviking on "function thematic_create_doctype()" Thu, 15 Mar 2012 23:04:37 +0000 helgatheviking 25944@ <p>good catch scott. i've edited chris' code. </p> ScottNix on "function thematic_create_doctype()" Thu, 15 Mar 2012 23:01:31 +0000 ScottNix 25943@ <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;;&gt;&#39; . &quot;\n&quot;; $content .= &#39;&lt;html xmlns=&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()" Thu, 15 Mar 2012 22:02:23 +0000 fahdi 25942@ <p>This filter is giving me an internal server error. Am I missing something? </p> nimmolo on "Multiple Header graphics for Power Blog" Mon, 12 Mar 2012 07:09:00 +0000 nimmolo 25849@ <p>Scott- Thanks! Just getting your reply. </p> <p>I am aware that it's not good to hack anything in the Thematic code - it was just my little experiment there, and I was way more ignorant then than I even am now, which is saying something. I did get it working in childtheme functions.php, sorry that wasn't clear.</p> <p>I've downloaded your PDF - VERY helpful. </p> wlanni on "Adding logo and removing blog title/description" Sun, 19 Feb 2012 01:11:59 +0000 wlanni 25466@ <p>Hello rwheeler!</p> <p>I know this has been answered, but maybe we haven't tagged the previous post well to have it show up in search.</p> <p>here's what you do:</p> <ol> <li>Copy the thematicsamplechildtheme directory and contents out of the thematic theme and into your wp-content/themes directory. Rename the directory, open the styles.css and rename the style. Then in your wp-admin set your new child theme to be the active theme.</li> <li>open your functions.php file in your new child theme.</li> <li>You'll want to remove the existing site title and tagline. In the blank space before the closing ?&gt; php mark, add the following code:<br /> <pre><code>//remove WordPress site title, blog description function unhook_thematic_functions() { remove_action(&#39;thematic_header&#39;,&#39;thematic_blogtitle&#39;,3); remove_action(&#39;thematic_header&#39;,&#39;thematic_blogdescription&#39;,5); } add_action(&#39;init&#39;,&#39;unhook_thematic_functions&#39;);</code></pre> </li> <li>Next, you'll want to add in custom code to place your logo in the header area:<br /> <pre><code>//Add in custom branding function childtheme_logo() { ?&gt; &lt;div id=&#39;branding-logo&#39;&gt; &lt;a href=&quot;&lt;?php bloginfo(&#39;url&#39;) ?&gt;/&quot; title=&quot;&lt;?php bloginfo(&#39;name&#39;) ?&gt; &amp;raquo; &lt;?php bloginfo(&#39;description&#39;) ?&gt;&quot;&gt; &lt;img id=&quot;logo&quot; src=&quot;&lt;?php echo bloginfo(&#39;stylesheet_directory&#39;) ?&gt;/images/IMAGENAME.png&quot; alt=&quot;&lt;?php bloginfo(&#39;name&#39;) ?&gt;: &lt;?php bloginfo(&#39;description&#39;) ?&gt;&quot; /&gt; &lt;/a&gt; &lt;/div&gt; &lt;?php } add_action(&#39;thematic_header&#39;,&#39;childtheme_logo&#39;,2);</code></pre> </li> <li>OK. That's all fine and dandy, but what about adding social media and search into the header? I think the easiest way for you to deal with this is to add a custom widget area into your header, and then install a social media plugin, and use the search widget. Here's how to add a widget into the header:<br /> <pre><code>// This will create header widget area function my_widgets_init() { register_sidebar(array( &#39;name&#39; =&gt; &#39;Header Aside&#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&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;, 7);</code></pre> </li> </ol> <p>Hope that helps. I used the above to make <a href="" rel="nofollow"></a> work, and used Brian Freytag's <a href="">Social Media Widget</a> to get the social media buttons across the top. </p> rwheeler on "Adding logo and removing blog title/description" Sat, 18 Feb 2012 22:21:15 +0000 rwheeler 25460@ <p>So I am complete newbie here and am starting to lose the hair I have left. :-)</p> <p>I have experience creating basic XHTML/CSS websites but want to offer clients the ability to have a WordPress site to provide a CMS. I have started with Thematic as the theme and created a child theme from that. My question is and will probably be very simple to most people in here, how do I remove the blog title and description from my header and add my logo left aligned and centered vertically in the header area? Once I get that I can hopefully figure out how to then move the navigation bar to the right and add some social media links and search box in the upper right corner of the header.</p> <p>Any help or a push in the right direction would be greatly appreciated. </p> helgatheviking on "Help! :-) I don't know how tho change the size of the NivoSlider in the Header" Tue, 14 Feb 2012 00:29:04 +0000 helgatheviking 25372@ <p>looks like you're using timthumb to generate the images. you need to adjust the height and width whereever you are defining the images to be used in the slider</p> <p>&lt;img src=";<strong>h=280&amp;w=960</strong>&amp;zc=1&amp;q=100" alt="" title="Tecnologia all’avanguardia" style="display: none; "&gt; </p> proto on "Help! :-) I don't know how tho change the size of the NivoSlider in the Header" Mon, 13 Feb 2012 17:57:56 +0000 proto 25368@ <p>Ciao Lucia,</p> <p>Come stai? My understanding of NivoSlider (happy for anyone to correct me out reading this!!) is that you need to upload your images to the same height and width that you'd like the NivoSlider to display them at and also ensure that the CSS instructions for rendering your NivoSlider reflect the same height and width as your image size. I think having a smaller image and a larger NivoSlider won't work. I think you need to prepare the graphic files to fit exactly the same height and width that you set your NivoSlider CSS.</p> <p>For future reference I had a problem with image size not displaying correctly and Helga helped me out of it with a regeneration plugin <a href="" rel="nofollow"></a> You may try to regenerate the images, the plugin above is targeted at thumbnails I think so not sure / doubtful it will work with NivoSlider. </p> <p>Otherwise, failing that, ensuring that your CSS file specifying the image height and width you want and that you've uploaded the images to this same height and width and re-upload them? It's a pain but it might solve your problem. To save you time try it with one image and if it works then repeat for all your images. </p> <p>Someone else may have a better suggestion on here - (by all means - pitch in anyone) but that's how I'd go about it... </p> <p>I might add I saw that your dropdown menu on your main nav might be disappearing behind your NivoSlider. I had the same problem. The way to fix it is to add the following to your CSS</p> <p><code>.nivoSlider {z-index: 0;}</code></p> <p>Hope it helps :) </p> MEDIAWISE on "Help! :-) I don't know how tho change the size of the NivoSlider in the Header" Mon, 13 Feb 2012 15:54:12 +0000 MEDIAWISE 25366@ <p>NO, I am sorry this is not the fix to my specific problem. Can you check this out?<br /> <a href="" rel="nofollow"></a><br /> I need to enlarge the height of the slider. I can do it with the Css file, but the images...they stay at their previous height. I need to reload them so they fit the new height or there some code I need to change somewhere?<br /> I hope I am no asking far too much...<br /> Lucia </p> MEDIAWISE on "Help! :-) I don't know how tho change the size of the NivoSlider in the Header" Mon, 13 Feb 2012 15:46:05 +0000 MEDIAWISE 25365@ <p>WOW! Thanks for the fast reply!!! I'll try right away. I am fixing up a WP Thematic web site built by somebody else and I am in the proces of learning.<br /> Thanks,<br /> Lucia </p> proto on "Help! :-) I don't know how tho change the size of the NivoSlider in the Header" Mon, 13 Feb 2012 15:32:46 +0000 proto 25363@ <p>Hello Mediawise,</p> <p>The answer to that may well depend on how you've included NivoSlider into your Wordpress website. If you've used the plugin check out the video here on using and configuring the slider:</p> <p><a href="" rel="nofollow"></a></p> <p>If you've done included it via Jquery see here for the CSS you'd need to adjust, about halfway down the page:</p> <p><a href="" rel="nofollow"></a></p> <p>I hope that helps :) </p>