carmeljune
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: php help pleaseI had missed the ‘change’ button.
Forum: Fixing WordPress
In reply to: php help pleasethank you, thought I had done that … it is such a satisfying thing to do!
Forum: Fixing WordPress
In reply to: how to remove sidebar from selected pagesThis is the final solution
function kish_picture_page_no_sidebar() { global $post; if ( !is_category() ) return; $cats=get_the_category($post->ID); foreach($cats as $cat) { if( in_array($cat->cat_name,array("Birds", "Gardens", "Technology")) ) { {?> <style> #sidebars { display: none; border: none; } #container {width:940px} #content {width:100%; background} #content_box { background:none; } #content_box img{max-width:850px;height:auto;} </style> <?php } } } } add_filter('thesis_hook_before_html', 'kish_picture_page_no_sidebar');
Forum: Fixing WordPress
In reply to: Disable some screen option widgetsSorry, I don’t know about the code but this plugin works well for controlling widgets: TS Custom Widgets v2.0 WP Plugin
Forum: Fixing WordPress
In reply to: sidebar on category pagesthis is the complete code
/* function kish_picture_page_no_sidebar() { global $post; if ( !is_category() ) return; $cats=get_the_category($post->ID); foreach($cats as $cat) { if( in_array($cat->cat_name,array("Birds", "Gardens", "Technology")) ) { {?> <style> #sidebars { display: none; border: none; } #container {width:940px} #content {width:100%; background} #content_box { background:none; } #content_box img{max-width:850px;height:auto;} </style> <?php } } } } add_filter('thesis_hook_before_html', 'kish_picture_page_no_sidebar'); */
Forum: Fixing WordPress
In reply to: php help pleaseThank you vtxyzzy, now I have complete control over the sidebar.
Forum: Fixing WordPress
In reply to: php help pleasethanks vtxyzzy, this works now. Unfortunately it isn’t doing exactly what I wanted. I want the code to remove the sidebar on all of the category pages except the first one which is the home page. This code removes the sidebar from the 3 category pages, but I assume it is reading those names into the home page because it contains posts in those categories, and there fore removes its sidebar too.
Maybe the code has to say if the page contains only posts in these categories, than remove side bar.
Can someone translate that into php?
Forum: Fixing WordPress
In reply to: very strange problem that no one seems to know aboutIn my limited experience, I can’t imagine what is causing this. But to find out if it is the server or not, why not try a different host, just for a short period to see if it is more stable.
Could you run 2 installations on the same server, keep them as parallel as possible with the same set up, but public traffic only using the one, and see if it is the heavy traffic causing the problem.
It is a really strange problem for the restore not to work and yet the server is fine. Have you used a few different computers to look at the site when it goes wrong?
Sorry I can’t be of any real help.Forum: Fixing WordPress
In reply to: Widgets jumping aroundFrom the beginning I have been using TS Custom Widgets v2.0 WP Plugin and I have had no problems with the widgets at all. I can put whatever wherever, maybe it will help you too. Good luck! sounds like a really strange and frustrating problem.
Forum: Fixing WordPress
In reply to: Category Problemon the add post page or edit post page, are you selecting a category that you have made for the posts? It is hard to see what is wrong from the front end of your blog.
Forum: Fixing WordPress
In reply to: Multiple errors when trying to add new post Still UnresolvedI’m sorry I can’t help you. But I did look it up and found that this error is referring to the 3rd last line of the following code. Maybe this might help someone else work out what is wrong. If you don’t get a reply I think in this case I would resort to reinstalling wp. But hopefully some one can see what is happening.
$i++;
$style = ”;
$hidden_class = in_array($box[‘id’], $hidden) ? ‘ hide-if-js’ : ”;
echo ‘<div id=”‘ . $box[‘id’] . ‘” class=”postbox ‘ . postbox_classes($box[‘id’], $page) . $hidden_class . ‘” ‘ . ‘>’ . “\n”;
echo ‘<div class=”handlediv” title=”‘ . __(‘Click to toggle’) . ‘”>
</div>’;
echo “<h3 class=’hndle’><span>{$box[‘title’]}</span></h3>\n”;
echo ‘<div class=”inside”>’ . “\n”;
call_user_func($box[‘callback’], $object, $box); //<<<<<<<<<<<< this line
echo “</div>\n”;
echo “</div>\n”;Forum: Fixing WordPress
In reply to: best method to increase memoryThanks Samuel, no 4. worked!!! PlanetDomain.com.au have fixed it for me.
Forum: Fixing WordPress
In reply to: uploading pictures – Fatal error: Allowed memory sizeAzadeh at Planet domain has fixed this for me.
.htaccess now says:
suPHP_ConfigPath /home/cajo/public_html/carmeljames/myblog/
AddHandler application/x-httpd-php5 .phpand the php.ini file, that didn’t even exist before, is now about 5 pages long!!!
but it works!!!
3 cheers for PlanetDomain.com.au
(if anyone wants more details, contact me through my blog! carmeljames.com)
Forum: Themes and Templates
In reply to: Fatal error: Allowed memory size exhausted – Helpmy wonderful hosts at Planet Domain fixed it and have given me 300mb. Now all works.
Instructions given so often in posts are right, the .htaccess file and the php.ini and they have to be at the top level. I had them in the uploads folder, and/or in the plugins folder, and when I tried them at the top level, I no doubt had something wrong with the code.Forum: Fixing WordPress
In reply to: how to remove sidebar from selected pagesI have found 2 solutions for this .. one costs, thesis theme, but it’s a good theme, really worth looking at for the way it organises modifications in custom files that aren’t changed when making updates.
But the other is a neat bit of code from this page:
https://www.kisaso.com/technology/thesis-customization-selected-category-posts-without-sidebar/