ejm
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: functions.php in child theme to twentytwelve causes blank pageThank you, both.
I used Alcymyth’s
href="' . site_url() . '/favicon.ico"and put the favicons into the theme folder. Finally, the coding is appearing in the header area.Forum: Fixing WordPress
In reply to: functions.php in child theme to twentytwelve causes blank pageThank you both for your replies.
Esmi, I’m not authorized to show the URL to the site at this point. sorry. (It’s not my site; it’s my sister’s.) I’ll try putting the icon into the theme folder but it still doesn’t make sense to me that that is necessary.
I am connection problems today – hoping maybe this is part of the problem
Forum: Fixing WordPress
In reply to: functions.php in child theme to twentytwelve causes blank pageHere it is:
http://codex.wordpress.org/Child_Themes
function favicon_link() { echo '<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />' . "\n"; } add_action( 'wp_head', 'favicon_link' );It doesn’t make sense that this won’t work even if wordpress is in its own folder. Please note that this coding for the favicon is working on the rest of the site.
Forum: Fixing WordPress
In reply to: functions.php in child theme to twentytwelve causes blank pageBut the coding should appear when viewing the source code, shouldn’t it?
The favicon is already in the main file of the site. WordPress is in its own folder. Do I have to use the full link or do I really have to put the favicon into the wordpress folder too?
Forum: Fixing WordPress
In reply to: functions.php in child theme to twentytwelve causes blank pageGood ideas to check the error logs or enable DEBUG (I’ll just have to remember to disable it once the site is live). Thank you.
As for the recent fix to functions.php, alas, the shortcut icon is not actually appearing in the coding of the header. Is there something I’m missing? (I got that example of coding from the codex.)
Forum: Fixing WordPress
In reply to: functions.php in child theme to twentytwelve causes blank pageAugh! That was all? Who would have known that an extra closing curly bracket would cause the page to go blank?
Thank you, Esmi.
Forum: Fixing WordPress
In reply to: custom fields – adding images with linksSigh. Another correction…
The images are showing on the main page but when I go to the actual post, the image disappears.
example:
The Cookbook cover shows here etherwork.net/blog/But when going to the post itself, the cookbook cover disappears: etherwork.net/blog/?p=1672 and there is no sign of the coding of the image in the source code.
Where have I misstepped?
-E. Morris
Forum: Fixing WordPress
In reply to: custom fields – adding images with linksCorrection!! (sigh… proofreading is always a good thing, isn’t it?)
The images are now showing up as expected. (I had the wrong path on for the image file)
But I still do not see the new fields on handy list on the edit post page
-E Morris
WP3.5; Firefox18.0.2; WinXP
Forum: Fixing WordPress
In reply to: Theme-Check Plugin syntax errorYes. I’m pleased to report that upgrading to php5 solves the problem.
Forum: Fixing WordPress
In reply to: Theme-Check Plugin syntax errorAfter reading the following http://codex.wordpress.org/Switching_to_PHP5 I’m suspecting that the plugin failure is due to my webhost running PHP4 rather than PHP5. I have sent a request for support for PHP5. Fingers crossed that the request is granted AND that that is the solution….
Forum: Fixing WordPress
In reply to: Theme-Check Plugin syntax errorBut I want to use the plugin!
Perhaps I need to reword the question…
I have now installed a test wordpress – version 3.0.5 with the twenty ten theme and all the plugins that I have on my current wordpress. After activating the theme-check plugin, this is the result I see when going to the ThemeCheck page in the admin area:
Parse error: syntax error, unexpected T_STRING in ../testwordpress/wp-content/plugins/theme-check/checkbase.php on line 11
What version of MySQL is required for this plugin to work OR what changes should be made to checkbase.php on line 11 so that the plugin works with MySQL4?
EMorris, WinXP, Firefox3.6.8, WP3.0.5, MySQL 4.1.22
Forum: Fixing WordPress
In reply to: Theme-Check Plugin syntax errorAm I correct that you are suggesting to delete the .htaccess file from the wordpress folder? As suspected, it made zero difference. The error message remains.
It seems to me that any change would have to be to the plugin coding.
EMorris, WinXP, Firefox3.6.8, WP3.0.5, MySQL 4.1.22
Forum: Fixing WordPress
In reply to: previous/next post linksI looked a little more at http://codex.wordpress.org/Function_Reference/previous_post_link and have now altered the coding to the following (I remembered to fix the character entities and make sure they ended with semicolons):
<?php previous_post_link('%link', '<b>«</b> %title <b>«</b> ', FALSE, '7'); next_post_link('%link', ' <b>»</b> %title <b>»</b>', FALSE, '7'); ?>And hey presto, the previous/next post links (with the exception of any links to posts in the #7 category) are showing up only on the actual post pages. Yay!
Forum: Fixing WordPress
In reply to: previous/next post linksExcuse me for replying to myself yet again. Because I did not receive any replies to my questions, I continued googling and searching. While it might not be the most elegant or perfect solution, I do think it works.
MichaelH suggested to “edit the single.php” in a reply to the thread Display text on one post and one post only?
My theme didn’t have a single.php file but now it does. I have removed the following coding from my theme index.php and put it onto the newly formed single.php
<?php previous_post_link('<b>«</b> %link <b>«</b> '); ?> <?php next_post_link(' <b>»</b> %link <b>»</b>'); ?>This will work well for now. I’ll stare at the following to see if there is a tidier way. http://codex.wordpress.org/Conditional_Tags#A_Single_Post_Page
-E
Forum: Fixing WordPress
In reply to: previous/next post linkssigh… please excuse me for replying to myself yet again.
I just noticed that I was using the now deprecated tags
previous_postandnext_post(http://codex.wordpress.org/Function_Reference/previous_post). I have now changed the coding on my index page to read the following – it is within the loop.<?php previous_post_link('<b>«</b> %link <b>«</b> '); ?> <?php next_post_link(' <b>»</b> %link <b>»</b>'); ?>Irritatingly, the links are still showing on the index page.
Just to reiterate, what must I do to get those links to show ONLY on the post page and not on the main blog page?
-EMorris, Firefox 3.6.8, WinXP, WP3.0.5
etherwork.net/blog/ «« I have purposely left this unlinked, in an attempt to keep spammers at bay.