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: functions http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Thu, 28 May 2015 22:05:26 +0000 Victorius on "The parameters of a function to be filtered" http://forums.themeshaper.com/topic/the-parameters-of-a-function-to-be-filtered#post-26315 Thu, 12 Apr 2012 23:11:32 +0000 Victorius 26315@http://forums.themeshaper.com/ <p>Hi Helga!</p> <p>Thank you very much for a clear and fast answer!</p> <p>After raeding these two examples I understand well the difference.</p> <p>Regards,<br /> Victor </p> helgatheviking on "The parameters of a function to be filtered" http://forums.themeshaper.com/topic/the-parameters-of-a-function-to-be-filtered#post-26314 Thu, 12 Apr 2012 22:43:58 +0000 helgatheviking 26314@http://forums.themeshaper.com/ <p>you are new to WP and this is your first theme? your understanding of filters is a damned site better than mine was at the same time... to answer your question, you don't <em>have</em> to pass in an argument. you do that when you want to preserve the variable in its original state. then you can modify it in your function. if you are completely overwriting everything you don't need to keep it as the variable will be generated completely from your function.</p> <p>for example say the original apply filters looks like</p> <pre><code>echo apply_filters(&#39;bacon_filter&#39;,&#39;i like bacon&#39;);</code></pre> <p>so we want to filter it and pass in the argument:</p> <pre><code>function test($bacon){ $bacon .= &#39; a lot.&#39; return $bacon; } add_filter(&#39;bacon_filter&#39;,&#39;test&#39;);</code></pre> <p>the end result would be : I like bacon a lot.</p> <p>or if we didn't pass the $bacon variable in</p> <pre><code>function test(){ $bacon = &#39;mmmm, bacon&#39; return $bacon; } add_filter(&#39;bacon_filter&#39;,&#39;test&#39;);</code></pre> <p>the result would be mmmmm, bacon and the initial "i like bacon" would be totally lost. </p> <p>this would've been important in the example you linked to if you only wanted to change the page title under 1 condition (like category archives or something), but leave it in tact in all other cases </p> Victorius on "The parameters of a function to be filtered" http://forums.themeshaper.com/topic/the-parameters-of-a-function-to-be-filtered#post-26312 Thu, 12 Apr 2012 22:29:14 +0000 Victorius 26312@http://forums.themeshaper.com/ <p>Hi!</p> <p>I am new in WordPress and I am doing my first theme with Thematic.<br /> I have been using filters and hooks to customize my theme without problems,<br /> however, there are some things I haven´t understand completely</p> <p>I have a doubt undertanding when to use $content (or another parameter) inside the parenthesis of my function:</p> <p>Untill now, I have doing like this, for example:</p> <p>my_custom_function($content) {</p> <p>// here I modify $content (sometimes I overwrite doing $content= ... )<br /> // (Other times I add things with $content.= ... )</p> <p>return $content;<br /> } </p> <p>// and later I use add_filter where corresponding.</p> <p>To sum it up, my filter function accept an argument (the initial content) and I return the modified content (the output) when it´s done.</p> <p>Not long ago, I have modified the page title following this nice example:</p> <p><a href="http://forums.themeshaper.com/topic/tip-modify-thematic-page-title" rel="nofollow">http://forums.themeshaper.com/topic/tip-modify-thematic-page-title</a></p> <p>And I was wondering why there is no need of putting any argument inside the parenthesis of the function.</p> <p>I would apreciatte if somebody could give me an answer or a link I can read about this topic: The parameter / argument of the function to be filtered ( In the examples I´ve seen, sometimes is $content, other times is another variable, and other times there is no variable)</p> <p>Thanks in advance!<br /> Víctor </p> 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> wmarkusen on "Changing <title> layout using $doctitle" http://forums.themeshaper.com/topic/changing-lttitlegt-layout-using-doctitle#post-25145 Wed, 01 Feb 2012 19:55:07 +0000 wmarkusen 25145@http://forums.themeshaper.com/ <p>I found your post helpful in something I was trying to figure out. Thank you. </p> helgatheviking on "Can't change the folder name...." http://forums.themeshaper.com/topic/cant-change-the-folder-name#post-24808 Tue, 10 Jan 2012 23:27:54 +0000 helgatheviking 24808@http://forums.themeshaper.com/ <p>if you change the folder name you probably need to reactivate the theme in the backend. </p> marlies on "Can't change the folder name...." http://forums.themeshaper.com/topic/cant-change-the-folder-name#post-24630 Wed, 04 Jan 2012 15:43:28 +0000 marlies 24630@http://forums.themeshaper.com/ <p>Hi there!</p> <p>I am new to Thematic, but learning a lot everyday! I have one very silly question, very easy to solve for you guys probably. It seems like I'm overlooking something...</p> <p>Here it is: I moved the thematicsamplechildtheme folder one level up. When I leave the name like that, all is fine, and I can see the thematic theme on my website. But when I change the name of the folder, and then visit the website, I get errors concerning functions.php in my wp-includes (saying something like: can't find file). Then when I change the folder name back to thematicsamplechildtheme all is fine again... </p> <p>any ideas??<br /> Hope to hear from you!! Thanks so much!</p> <p>Kind regards,<br /> Marlies </p> helgatheviking on "sidebar shown on blog page in wrong place" http://forums.themeshaper.com/topic/sidebar-shown-on-blog-page-in-wrong-place#post-24427 Tue, 20 Dec 2011 19:13:12 +0000 helgatheviking 24427@http://forums.themeshaper.com/ <p>on a US keyboard the backtick mark ( ` ) shares a key with the tilde ~ ... upper left next to the 1. i'm not sure where it lies on other keyboards.</p> <p>text widgets aren't in the template. they're in the widgets section of the dashboard. </p> Irene Ogier on "sidebar shown on blog page in wrong place" http://forums.themeshaper.com/topic/sidebar-shown-on-blog-page-in-wrong-place#post-24425 Tue, 20 Dec 2011 18:56:14 +0000 Irene Ogier 24425@http://forums.themeshaper.com/ <p>Thanks for your reply!</p> <p>In fact I did'nt change that much in the php or html but stuff in css....</p> <p>I couldn't find the textwidgets any where in the template. A mistery...<br /> I solved this sidebar issue by replacing it to the 2 second and third additional sidebar.<br /> and I called the sidebar so early to place it above the container/ content en not below.</p> <p>I appreciate your reply! Backtick marks are? ... &lt; ? &gt;? Like that? </p> helgatheviking on "sidebar shown on blog page in wrong place" http://forums.themeshaper.com/topic/sidebar-shown-on-blog-page-in-wrong-place#post-24408 Tue, 20 Dec 2011 14:35:50 +0000 helgatheviking 24408@http://forums.themeshaper.com/ <p>first off, it looks like you have some improperly closed html markup. you can tell this b/c when i view the source w/ firebug or chrome's dev tools you can see the markup doesn't match what thematic's ought to look like<br /> <pre><code>#main #container #content #primary #secondary</code></pre> <p>my guess is the problem lies in one of your text widgets, i've seen that happen plenty of times before. </p> <p>additionally, i'm not sure why you are calling that sidebar so soon in your template. if you want it to replace the normal sidebar, why not put it in place of thematic_sidebar() which occurs nearer to the end of the default template.</p> <p>please post your code between backtick marks </p> Irene Ogier on "sidebar shown on blog page in wrong place" http://forums.themeshaper.com/topic/sidebar-shown-on-blog-page-in-wrong-place#post-24403 Tue, 20 Dec 2011 13:08:20 +0000 Irene Ogier 24403@http://forums.themeshaper.com/ <p>anywone? <a href="http://www.image2media.nl/blog/" rel="nofollow">http://www.image2media.nl/blog/</a><br /> This page is is.<br /> The code...<br /> If anyone could give me some advice, you'd be very kind. I can't save it in some way or the other.</p> <p>&lt;?php<br /> /**<br /> * Template Name: de blogpagina<br /> *<br /> * This template allows you to display the latest posts on any page of the site.<br /> *<br /> */</p> <p> // calling the header.php<br /> get_header();</p> <p> // action hook for placing content above #container<br /> thematic_abovecontainer();</p> <p>?&gt; &lt;div id="sidebar-zij"&gt;<br /> &lt;?php if ( !function_exists('dynamic_sidebar')<br /> || !dynamic_sidebar('sidebar1') ) : ?&gt;<br /> &lt;?php endif; ?&gt;<br /> &lt;?php if ( !function_exists('dynamic_sidebar')<br /> || !dynamic_sidebar('sidebar2') ) : ?&gt;<br /> &lt;?php endif; ?&gt; &lt;/div&gt;&lt;!-- #sidebar --&gt;</p> <p> &lt;div id="container"&gt;</p> <p> &lt;?php thematic_abovecontent(); ?&gt;</p> <p> &lt;div id="content"&gt;</p> <p> &lt;?php<br /> $wp_query = new WP_Query();<br /> $wp_query-&gt;query( array( 'posts_per_page' =&gt; get_option( 'posts_per_page' ), 'paged' =&gt; $paged ) );<br /> $more = 0;<br /> ?&gt;</p> <p> &lt;?php </p> <p> // create the navigation above the content<br /> thematic_navigation_above();</p> <p> // calling the widget area 'index-top'<br /> get_sidebar('index-top');</p> <p> // action hook for placing content above the index loop<br /> thematic_above_indexloop();</p> <p> // action hook creating the index loop<br /> thematic_indexloop();</p> <p> // action hook for placing content below the index loop<br /> thematic_below_indexloop();</p> <p> // calling the widget area 'index-bottom'<br /> get_sidebar('index-bottom');</p> <p> // create the navigation below the content<br /> thematic_navigation_below();</p> <p> ?&gt;</p> <p> &lt;/div&gt;&lt;!-- #content --&gt;</p> <p> &lt;?php thematic_belowcontent(); ?&gt; </p> <p> &lt;/div&gt;&lt;!-- #container --&gt;</p> <p>&lt;?php </p> <p> // action hook for placing content below #container<br /> thematic_belowcontainer();</p> <p> // calling footer.php<br /> get_footer();</p> <p>?&gt; </p> Irene Ogier on "sidebar shown on blog page in wrong place" http://forums.themeshaper.com/topic/sidebar-shown-on-blog-page-in-wrong-place#post-24399 Tue, 20 Dec 2011 08:00:16 +0000 Irene Ogier 24399@http://forums.themeshaper.com/ <p>Hi there,</p> <p>I made a child theme upon thematic theme for a client with some extra sidebars. I have put some code in functions.php and it works just fine. But now I have problems with the blogpage. It shows the sidebar that is not supposed to show up and worse, it's shown underneath the posts! :-(</p> <p>I have tried some things like deleting the sidebar, showing the full template but the effect is the same all the time. When I click on preview, It works, but I can't save the template page for the blog.<br /> What to do?</p> <p>The url is: <a href="http://www.image2media.nl" rel="nofollow">www.image2media.nl</a> </p> <p>Kind regards Irene </p> onelittlemoose on "Parse error!" http://forums.themeshaper.com/topic/parse-error-1#post-24085 Sat, 03 Dec 2011 15:33:14 +0000 onelittlemoose 24085@http://forums.themeshaper.com/ <p>oops, timothyd, I think I gave you bad advice in the beginning. My apologies. Glad it is resolved, though. </p> helgatheviking on "Parse error!" http://forums.themeshaper.com/topic/parse-error-1#post-24083 Sat, 03 Dec 2011 01:08:53 +0000 helgatheviking 24083@http://forums.themeshaper.com/ <p>that is my time-tested debug method. please mark the thread as resolved. </p> timothyd on "Parse error!" http://forums.themeshaper.com/topic/parse-error-1#post-24082 Sat, 03 Dec 2011 00:33:53 +0000 timothyd 24082@http://forums.themeshaper.com/ <p>Thank you for all your help! I think I took the easy way out by simply removing all my child theme files, starting over with the Thematic child theme provided files, and then one by one putting back my templates and functions. Seems to be fine. Although probably have some little things to work out.</p> <p><a href="http://www.timewithtimothy.com" rel="nofollow">www.timewithtimothy.com</a> </p> helgatheviking on "Parse error!" http://forums.themeshaper.com/topic/parse-error-1#post-24081 Sat, 03 Dec 2011 00:22:54 +0000 helgatheviking 24081@http://forums.themeshaper.com/ <p>you only need the backticks to post in the forum to make code easier to read like in my post. it has nothing to do with what goes in your functions.php</p> <p>you are missing a ; at the end of </p> <pre><code>add_action(&#39;thematic_postfooter_postcategory&#39;,&#39;childtheme_postfooter_postcategory&#39;);</code></pre> <p>almost all php lines must end with a ;</p> <p>parse errors mean your code is incorrect and usually means you are missing something such as a ; , ) ?&gt; etc. look closely at the line in question and the lines immediately preceding it. </p> timothyd on "Parse error!" http://forums.themeshaper.com/topic/parse-error-1#post-24080 Fri, 02 Dec 2011 23:48:51 +0000 timothyd 24080@http://forums.themeshaper.com/ <p>Ok I added ?&gt; after line 4. I don't really understood the backticks. You're saying I just need one backtick at the beginning and one at the end of the document, and all my code goes in between. Or I individually wrap. </p> <p>The parse error has now changed to line 38, the last line.</p> <p>&lt;?php<br /> function childtheme_create_stylesheet() {<br /> $templatedir = get_bloginfo('template_directory');<br /> $stylesheetdir = get_bloginfo('stylesheet_directory');<br /> ?&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/styles/reset.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/styles/typography.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/styles/images.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/layouts/2c-l-fixed.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/styles/18px.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $stylesheetdir ?&gt;/style.css" /&gt;<br /> &lt;?php<br /> function remove_access() {<br /> remove_action( 'thematic_header', 'thematic_access', 9 );<br /> }<br /> add_action( 'init', 'remove_access' );<br /> function childtheme_override_postheader_postmeta() {<br /> $postmeta = ('&lt;div class="entry-meta"&gt;');<br /> $postmeta .= thematic_postmeta_entrydate();<br /> $postmeta .= thematic_postmeta_editlink();<br /> $postmeta .= "&lt;/div&gt;&lt;!-- .entry-meta --&gt;\n";<br /> return apply_filters('thematic_postheader_postmeta',$postmeta);<br /> }<br /> $entrydate = ('&lt;span class="meta-prep meta-prep-entry-date"&gt;') . __('Published: ', 'thematic') . ('&lt;/span&gt;');<br /> function childtheme_override_postmeta_entrydate() {<br /> $entrydate = ('&lt;span class="meta-prep meta-prep-entry-date"&gt;') . __('', 'thematic') . ('&lt;/span&gt;');<br /> $entrydate .= ('&lt;span class="entry-date"&gt;&lt;abbr class="published" title="');<br /> $entrydate .= get_the_time(thematic_time_title()) . '"&gt;';<br /> $entrydate .= get_the_time(thematic_time_display());<br /> $entrydate .= ('&lt;/abbr&gt;&lt;/span&gt;');<br /> return apply_filters('thematic_post_meta_entrydate', $entrydate);<br /> }<br /> // CHANGE THE WAY CATEGORIES AND THE EDIT LINK ARE DISPLAYED (HIDE THEM)<br /> function childtheme_postfooter_postcategory($postcategory) {<br /> $postcategory = ('');<br /> }<br /> add_action('thematic_postfooter_postcategory','childtheme_postfooter_postcategory')<br /> ?&gt; </p> helgatheviking on "Parse error!" http://forums.themeshaper.com/topic/parse-error-1#post-24079 Fri, 02 Dec 2011 23:38:41 +0000 helgatheviking 24079@http://forums.themeshaper.com/ <p>you're still not using backticks to wrap code. type 1 backtick... paste all your code... type the closing backtick.</p> <p>"I am not sure what you mean about closing the php brackets before. Thanks for your help."</p> <p>it means that you must wrap php code by opening with &lt;?php and closing with ?&gt; on line 4 it looks like you are forgetting to close your php tag before switching to plain HTML on line 5</p> <p>so you are technically trying to parse:</p> <pre><code>&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;?php echo $templatedir ?&gt;/library/styles/reset.css&quot; /&gt;</code></pre> <p>as if it were PHP. hence, the parse error. </p> timothyd on "Parse error!" http://forums.themeshaper.com/topic/parse-error-1#post-24078 Fri, 02 Dec 2011 23:15:00 +0000 timothyd 24078@http://forums.themeshaper.com/ <p>Ok I think I wrapped all the code that was in backtick marks. I am not sure what you mean about closing the php brackets before. Thanks for your help.</p> <p>&lt;?php<br /> function childtheme_create_stylesheet() {<br /> $templatedir = get_bloginfo('template_directory');<br /> $stylesheetdir = get_bloginfo('stylesheet_directory');<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/styles/reset.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/styles/typography.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/styles/images.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/layouts/2c-l-fixed.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/styles/18px.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $stylesheetdir ?&gt;/style.css" /&gt;<br /> function remove_access() {<br /> remove_action( 'thematic_header', 'thematic_access', 9 );<br /> }<br /> add_action( 'init', 'remove_access' );<br /> function childtheme_override_postheader_postmeta() {<br /> $postmeta = ('&lt;div class="entry-meta"&gt;');<br /> $postmeta .= thematic_postmeta_entrydate();<br /> $postmeta .= thematic_postmeta_editlink();<br /> $postmeta .= "&lt;/div&gt;&lt;!-- .entry-meta --&gt;\n";<br /> return apply_filters('thematic_postheader_postmeta',$postmeta);<br /> }<br /> $entrydate = ('&lt;span class="meta-prep meta-prep-entry-date"&gt;') . __('Published: ', 'thematic') . ('&lt;/span&gt;');<br /> function childtheme_override_postmeta_entrydate() {<br /> $entrydate = ('&lt;span class="meta-prep meta-prep-entry-date"&gt;') . __('', 'thematic') . ('&lt;/span&gt;');<br /> $entrydate .= ('&lt;span class="entry-date"&gt;&lt;abbr class="published" title="');<br /> $entrydate .= get_the_time(thematic_time_title()) . '"&gt;';<br /> $entrydate .= get_the_time(thematic_time_display());<br /> $entrydate .= ('&lt;/abbr&gt;&lt;/span&gt;');<br /> return apply_filters('thematic_post_meta_entrydate', $entrydate);<br /> }<br /> // CHANGE THE WAY CATEGORIES AND THE EDIT LINK ARE DISPLAYED (HIDE THEM)<br /> function childtheme_postfooter_postcategory($postcategory) {<br /> $postcategory = ('');<br /> }<br /> add_action('thematic_postfooter_postcategory','childtheme_postfooter_postcategory');<br /> ?&gt; </p> helgatheviking on "Parse error!" http://forums.themeshaper.com/topic/parse-error-1#post-24077 Fri, 02 Dec 2011 22:57:49 +0000 helgatheviking 24077@http://forums.themeshaper.com/ <p>please wrap code between backtick marks `</p> <p>also, only looking quickly... i think you failed to close the php brackets <em>before</em></p> <pre><code>$stylesheetdir = get_bloginfo(&#39;stylesheet_directory&#39;);</code></pre> timothyd on "Parse error!" http://forums.themeshaper.com/topic/parse-error-1#post-24075 Fri, 02 Dec 2011 22:54:31 +0000 timothyd 24075@http://forums.themeshaper.com/ <p>Well thank you for your help thus far. I used those link tags because following Ian Stewart's instructions here:</p> <p><a href="http://themeshaper.com/2009/04/30/modular-css-wordpress-child-themes/" rel="nofollow">http://themeshaper.com/2009/04/30/modular-css-wordpress-child-themes/</a> </p> onelittlemoose on "Parse error!" http://forums.themeshaper.com/topic/parse-error-1#post-24074 Fri, 02 Dec 2011 22:51:34 +0000 onelittlemoose 24074@http://forums.themeshaper.com/ <p>timothyd, this seems to have narrowed down the problem, but beyond identifying it I fear I'm not much help. Line 5 is using html, which is, I believe, the problem. The html part might need to be contained in a variable first.<br /> <code>&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=</code> and then added in to the rest.</p> <p>Can someone more knowledgeable assist in the rest? </p> timothyd on "Parse error!" http://forums.themeshaper.com/topic/parse-error-1#post-24073 Fri, 02 Dec 2011 22:20:02 +0000 timothyd 24073@http://forums.themeshaper.com/ <p>Ok I deleted the extra &lt;?php ?&gt;. Now the parse error says it is on line 5. Here is my code now.</p> <p>&lt;?php<br /> function childtheme_create_stylesheet() {<br /> $templatedir = get_bloginfo('template_directory');<br /> $stylesheetdir = get_bloginfo('stylesheet_directory');<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/styles/reset.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/styles/typography.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/styles/images.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/layouts/2c-l-fixed.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/styles/18px.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $stylesheetdir ?&gt;/style.css" /&gt;<br /> function remove_access() {<br /> remove_action( 'thematic_header', 'thematic_access', 9 );<br /> }<br /> add_action( 'init', 'remove_access' );<br /> function childtheme_override_postheader_postmeta() {<br /> $postmeta = '&lt;div class="entry-meta"&gt;';<br /> $postmeta .= thematic_postmeta_entrydate();<br /> $postmeta .= thematic_postmeta_editlink();<br /> $postmeta .= "&lt;/div&gt;&lt;!-- .entry-meta --&gt;\n";<br /> return apply_filters('thematic_postheader_postmeta',$postmeta);<br /> }<br /> $entrydate = '&lt;span class="meta-prep meta-prep-entry-date"&gt;' . __('Published: ', 'thematic') . '&lt;/span&gt;';<br /> function childtheme_override_postmeta_entrydate() {<br /> $entrydate = '&lt;span class="meta-prep meta-prep-entry-date"&gt;' . __('', 'thematic') . '&lt;/span&gt;';<br /> $entrydate .= '&lt;span class="entry-date"&gt;&lt;abbr class="published" title="';<br /> $entrydate .= get_the_time(thematic_time_title()) . '"&gt;';<br /> $entrydate .= get_the_time(thematic_time_display());<br /> $entrydate .= '&lt;/abbr&gt;&lt;/span&gt;';<br /> return apply_filters('thematic_post_meta_entrydate', $entrydate);<br /> }<br /> // CHANGE THE WAY CATEGORIES AND THE EDIT LINK ARE DISPLAYED (HIDE THEM)<br /> function childtheme_postfooter_postcategory($postcategory) {<br /> $postcategory = '';<br /> }<br /> add_action('thematic_postfooter_postcategory','childtheme_postfooter_postcategory');<br /> ?&gt;</p> <p>On line 5 is: &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/styles/reset.css" /&gt; </p> onelittlemoose on "Parse error!" http://forums.themeshaper.com/topic/parse-error-1#post-24072 Fri, 02 Dec 2011 22:12:21 +0000 onelittlemoose 24072@http://forums.themeshaper.com/ <p>Just an observation and I don't know if this would make any difference, but I don't think you need to wrap each bit in &lt;?php ?&gt; If's all php, then you should only need one to open at the start, and the other to close at the end. </p> timothyd on "Parse error!" http://forums.themeshaper.com/topic/parse-error-1#post-24071 Fri, 02 Dec 2011 22:05:13 +0000 timothyd 24071@http://forums.themeshaper.com/ <p>Ps. Line 48 is the last line in the functions.php document. I have read about empty space being an issue. </p> timothyd on "Parse error!" http://forums.themeshaper.com/topic/parse-error-1#post-24070 Fri, 02 Dec 2011 21:52:47 +0000 timothyd 24070@http://forums.themeshaper.com/ <p>I have just switched over from my locally designed wordpress to the real thing and encountered this error:</p> <p>Parse error: syntax error, unexpected $end in /home/timothyd/public_html/wp-content/themes/timewith/functions.php on line 48</p> <p>Here is my functions.php in my child theme.</p> <p>&lt;?php<br /> function childtheme_create_stylesheet() {<br /> $templatedir = get_bloginfo('template_directory');<br /> $stylesheetdir = get_bloginfo('stylesheet_directory');<br /> ?&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/styles/reset.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/styles/typography.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/styles/images.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/layouts/2c-l-fixed.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $templatedir ?&gt;/library/styles/18px.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $stylesheetdir ?&gt;/style.css" /&gt;<br /> &lt;?php<br /> function remove_access() {<br /> remove_action( 'thematic_header', 'thematic_access', 9 );<br /> }<br /> add_action( 'init', 'remove_access' );<br /> ?&gt;<br /> &lt;?php<br /> function childtheme_override_postheader_postmeta() {</p> <p> $postmeta = '&lt;div class="entry-meta"&gt;';<br /> $postmeta .= thematic_postmeta_entrydate();<br /> $postmeta .= thematic_postmeta_editlink();<br /> $postmeta .= "&lt;/div&gt;&lt;!-- .entry-meta --&gt;\n";</p> <p> return apply_filters('thematic_postheader_postmeta',$postmeta);<br /> }<br /> ?&gt;<br /> &lt;?php<br /> $entrydate = '&lt;span class="meta-prep meta-prep-entry-date"&gt;' . __('Published: ', 'thematic') . '&lt;/span&gt;';<br /> function childtheme_override_postmeta_entrydate() {</p> <p> $entrydate = '&lt;span class="meta-prep meta-prep-entry-date"&gt;' . __('', 'thematic') . '&lt;/span&gt;';<br /> $entrydate .= '&lt;span class="entry-date"&gt;&lt;abbr class="published" title="';<br /> $entrydate .= get_the_time(thematic_time_title()) . '"&gt;';<br /> $entrydate .= get_the_time(thematic_time_display());<br /> $entrydate .= '&lt;/abbr&gt;&lt;/span&gt;';</p> <p> return apply_filters('thematic_post_meta_entrydate', $entrydate);<br /> }<br /> ?&gt;<br /> &lt;?php<br /> // CHANGE THE WAY CATEGORIES AND THE EDIT LINK ARE DISPLAYED (HIDE THEM)<br /> function childtheme_postfooter_postcategory($postcategory) {<br /> $postcategory = '';<br /> }<br /> add_action('thematic_postfooter_postcategory','childtheme_postfooter_postcategory');<br /> ?&gt;</p> <p>Line 48, as mentioned in the parse error, is the last one. </p> ScottNix on "Thematic default functions;;; where are they?" http://forums.themeshaper.com/topic/thematic-default-functions-where-are-they#post-23241 Mon, 26 Sep 2011 22:03:10 +0000 ScottNix 23241@http://forums.themeshaper.com/ <p>Go to your Thematic Theme folder.</p> <p>Library &gt; Extensions</p> <p>Once in the Extensions folder, you will find them.</p> <p>They are pretty clearly marked so header and doctype functions are located in header-extensions.php </p> omarelmasry on "Thematic default functions;;; where are they?" http://forums.themeshaper.com/topic/thematic-default-functions-where-are-they#post-23238 Mon, 26 Sep 2011 18:18:53 +0000 omarelmasry 23238@http://forums.themeshaper.com/ <p>I am a beginner in the wordpress field:)<br /> I am really interested in designing a theme based on the popular Thematic theme...<br /> but there is something that is really driving me crazy :D</p> <p>I noticed the action hooks spread everywhere in the theme ... I understand that I replace them with custom functions I want</p> <p>BUT WHERE ARE THE DEFAULT FUNCTIONS ORIGINALLY HOOKED TO THEM ????</p> <p>They must be some where or else how is the theme displaying the content ??? ... For example, something like thematic_header() or thematic_doctype() ... It is impossible that there is no default code for that, right?? </p>