Entries Tagged as ''

Fix WordPress Sidebar Widgets That Don’t Work

You may have come across a cool theme that you really want to use on your but it might need just a bit of tweaking to make it standout or, in some cases work correctly. In this example what to do if your new themes widgets aren’t working.

This post is taken from the “Ask Max” page where I try to answer your questions about WordPress. First off I ask those posting questions on that page to not get too technical or into things such as template coding and things of that nature. And in this case the question actually wasn’t of that nature but the answer is.

Here is the Question:

When I try to customize the sidebars, nothing changes! No matter how I drag and drop widgets on them, they always look the same with same default categories & archives on the left and calendar blogroll, and meta on the left. Any idea why that is? Thanks.

After looking at the theme, jd-nebula-3c 1.0, and dealing with the arrogance on a certain forum that is supposed to help people with their , I figured out what the problem with theme is.

The are not working on this theme meaning that moving them around in the dashboard didn’t register a change on the blog itself. The first issue with this two sidebar theme was the functions.php file. so lets fix that first and without going into an in-depth explanation I am just going to show you the proper code to use in your functions.php file.

Warning! Before you change any code in your themes template files create a backup so you can restore it if it doesn’t work for you!

Below is the code needed in the functions.php file to use for a two sidebar theme. It basically says to get sidebar1 and sidebar2 if they exist. Replace the all the code in your functions.php file with this:

<?php
if ( function_exists(’register_sidebar’) )
register_sidebar(array(’name’=>’sidebar1′,
‘before_widget’ => ‘<div id=”%1$s” class=”side-c %2$s”>’, // Removes <li>
‘after_widget’ => ‘</div>’, // Removes </li>
‘before_title’ => ‘<h3>’, // Replaces <h2>
‘after_title’ => ‘</h3>’, // Replaces </h2>
));
register_sidebar(array(’name’=>’sidebar2′,
‘before_widget’ => ‘<div id=”%1$s” class=”side-c %2$s”>’, // Removes <li>
‘after_widget’ => ‘</div>’, // Removes </li>
‘before_title’ => ‘<h3>’, // Replaces <h2>
‘after_title’ => ‘</h3>’, // Replaces </h2>
));

?>

Next the sidebar file in this particular theme was calling up two sidebars that the functions.php file didn’t know about. We just fixed the functions.php file above and now we need to add the proper code in the sidebar.php file. Open your sidebar.php file and look for these two areas of text, the red text is the problem that needs addressed:

This is for the left sidebar:

<div id=”left-sidebar”>

<?php if ( function_exists(’dynamic_sidebar’) && dynamic_sidebar(’Sidebar_1′) ) : else : ?>

<div id=”categories”>

And a little further down is the right sidebar:

<div id=”right-sidebar”>
<?php if ( function_exists(’dynamic_sidebar’) && dynamic_sidebar(’Sidebar_2′) ) : else : ?>

You can see that these are calling for Sidebar_1 and Sidebar_2 but again the functions.php file had no reference to them. So now replace the red text in your sidebar.php file with this code:

For the left sidebar use this:

<div id=”left-sidebar”>

<?php if ( !function_exists(’dynamic_sidebar’) || !dynamic_sidebar(’sidebar1′) ) : ?>

And for the right sidebar use this:

<div id=”right-sidebar”>
<?php if ( !function_exists(’dynamic_sidebar’) || !dynamic_sidebar(’sidebar2′) ) : ?>

This is the fix for WordPress sidebar widgets that don’t work on the particular theme mentioned above. It may work on other but I offer no guarantees.

If you need help customizing or fixing your WordPress blog post a comment or click here to send me an email, you will find my fees are very reasonable.

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!


Tagged with ,


Related Posts



WordPress Version 2.3 Coming Soon

WordPress continues to improve and evolve. As some continue to with plugins, some of the more popular are getting bundled into WordPress.

Here is the latest from about the next release due out on September 24 2007. Built in tagging options, improved Post and Draft Management using filters and upgrade notification within the dashboard.

Currently in development, scheduled for September 20, 2007

New User Features

  • Tagging
  • Improved Post and Draft Management using filters
  • WordPress Upgrade Available Notification

Developer / Power User Stuff

  • Terms tables (combined post categories/link categories/tags)
  • Upgrade to “800% times faster” jQuery (1.1.3), and replaces some parts of the WordPress dashboard have been converted to jQuery.
  • Several other bundled libraries were updated to the latest versions. TinyMCE is now at 2.1.1.1, Prototype is at 1.5.1, and script.aculo.us is at 1.7.1 beta 2. More updates to script.aculo.us and an update for TinyMCE Spellchecker are on the way.
  • The files in wp-admin were reorganized to make things easier to find.

Stay tuned here for the details…


Tagged with ,


Related Posts



Back Date WordPress Posts With The Post Timestamp

A blog has the ability to to edit the published date of a post to an earlier date. This shows how to use the Post Timestamp option. This may be useful if you have articles from a static website that you want to incorporate into the archives of a your . Or of you want to give your blog a more established look.

It is very easy to edit the published or post date of a . To do this when creating a new post or editing an existing one, look over to the bottom right side for the . You can place any date in there you want even back to a date before the blog existed. Your posts will show on the main page in chronological order based on the Timestamp.

If you don’t have more than 10 posts they may stay on the first page of the blog until enough new posts are made to push them off because a default 10 posts show on the main blog page. You can specify the number of post shown on the fist page in Options, Reading, under Blog Pages edit the “Show At Most xx Posts”.

Using the is useful to build your blog content quickly but still give it the look of a well established blog.


Tagged with ,


Related Posts



Add Background Color To Single Page Sidebar On Default WordPress Theme

Wow is that title long enough for you? I searched for the answer to this for hours and what seems like second nature to the geeks actually drove me nuts! I explain how to add the sidebar to a single page in this related post, Adding The Sidebar To The WordPress Page Or Single Post Template. In that I explain how to add the sidebar to the single post page of the . What is missing from that are instructions for getting the single post page to show the light gray background on the sidebar that is shown on the main index page.

So here we are going to further to get everything looking uniform throughout the entire blog using the .

First you need to be able to either edit the themes files through the or edit them from your hosting accounts control panel. To edit the themes files in the dashboard they need the proper file permissions set, I explain how to change the file permissions in this related post: Adding The Sidebar To The WordPress Page Or Single Post Template.

From the WordPress dashboard go to Presentation, Theme Editor. Click on Header on the right side and the header.php file will be visible in the editor. Warning if you are not experienced with editing these files copy all the text in here and paste it into Wordpad or Notepad and save a copy of it on your computer.

The WordPress default theme was written to not show the sidebar on the single post page. Because of that it specifies one background image for the main index that shows the gray background in the sidebar. And another image for the single post page with no background in the sidebar area. The version of the default theme you have determines what image background to use. But don’t worry you will see what image to use right within your header.php file.

With the header.php file open scroll down and look for the code that looks like this for older versions of the theme:

#page { background: url(”<?php bloginfo(’stylesheet_directory’); ?>/images/kubrickbg.jpg“) repeat-y top; border: none; }
<?php } else { // No sidebar ?>
#page { background: url(”<?php bloginfo(’stylesheet_directory’); ?>/images/kubrickbgwide.jpg“) repeat-y top; border: none; }
<?php } ?>

</style>

Or like this for newer versions:

#page { background: url(”<?php bloginfo(’stylesheet_directory’);

?>/images/kubrickbg-<?php bloginfo(’text_direction’); ?>.jpg”) repeat-y top; border:

none; }
<?php } else { // No sidebar ?>
#page { background: url(”<?php bloginfo(’stylesheet_directory’);

?>/images/kubrickbgwide.jpg”) repeat-y top; border: none; }
<?php } ?>

</style>

The first instance of the red text is specifying the background image to use on the a page that has no sidebar, again it depends on what version of the theme you are using as to what you are going to see in your header.php file. Now all you need to do is copy the code from the top and replace it with the code on the bottom like this:

#page { background: url(”<?php bloginfo(’stylesheet_directory’); ?>/images/kubrickbg.jpg“) repeat-y top; border: none; }
<?php } else { // No sidebar ?>
#page { background: url(”<?php bloginfo(’stylesheet_directory’); ?>/images/kubrickbg.jpg“) repeat-y top; border: none; }
<?php } ?>

</style>

Or like this for newer versions:

#page { background: url(”<?php bloginfo(’stylesheet_directory’);

?>/images/kubrickbg-<?php bloginfo(’text_direction’); ?>.jpg”) repeat-y top; border:

none; }
<?php } else { // No sidebar ?>
#page { background: url(”<?php bloginfo(’stylesheet_directory’);

?>/images/kubrickbg-<?php bloginfo(’text_direction’); ?>.jpg”) repeat-y top; border: none; }
<?php } ?>

</style>

Click Update File and check out your blog to make sure you did it correctly. If your is all messed up just paste the code back in from the backup file you made. And don’t blame me if you didn’t make a backup of the files, I warned you twice!


Tagged with , ,


Related Posts



Get Top Search Engine Rankings With WordPress SEO Plugins

Self-hosted WordPress blogs are probably the fastest way to get to the top of the natural search engine listings. There are literally thousands of available but here I will discuss just a few that help with SEO and ultimately top search engine rankings.

The main that really helps with SEO and search engine rankings is All in One SEO Pack This plugin does several very important things. The latest version of this plugin has options for adding your home title, description and keywords. The most advantageous option for SEO is the Rewrite Titles option. This option will display the more search engine friendly title of your post before the name of your blog in the title tag. Helping the keywords in your post title getting picked up first by the search engines.

The other that helps with search engine rankings is Google (XML) Sitemaps. Installing this plugin will build a sitemap for you WordPress blog and automatically notify Google of any updates. There is also an option to include Yahoo with the inclusion of a Yahoo application ID.

Using the keyword rich title of your post in the URL will also help with SEO and search engine rankings. This can be done using a custom Permalink structure. Read more about custom Permalinks here: WordPress Custom Permalink Structure

These plugins and options as well as good keyword rich titles and of course good original content all contribute to top search engine rankings. Continued use of these tactics will get you in the top of of the search engines in no time. Don’t believe me? check this Google search for WordPress Guides. This site, running on WordPress, is on the first page of Google for the term WordPress Guides in under a month. It doesn’t even have a page rank as of the post it is so new.

This post was inspired by Carl Hendricks of Home Based Business Prosperity Carl asked this question on the Ask WordPress Max Questions About WordPress How do plugins - WordPress or otherwise - help your blog rise in search engine ranking? Visit his blog Home Based Business Prosperity and website CEHMagic. Thanks Carl for contributing to the blog!


Tagged with , ,


Related Posts



RSS Basics The Benefits Of RSS

As blogging becomes more popular those of using had better start learning and utilizing RSS. RSS or Really Simple Syndication, is an innovation in information management in the worldwide web as well as online marketing. I will admit that I have been slacking in this department and it’s time to learn how to learn more about it and fully utilize the technology.

A good place to start is on a blog I built for Carl Hendricks at Home Based Business Prosperity, his latest post covers the basics about RSS, check it out here: Comprehending RSS Basics


Tagged with ,


Related Posts



Why Have A WordPress Blog On Your Own Domain

Those new to Internet marketing ask this question quite a bit on various forums. There are plenty of reasons to use a blog on your own site and most of them contribute to the biggest and most sought after, website traffic.

First to clear up some confusion: WordPress.com offers a free blog that is hosted on WordPress.com just like you can start a free blog on Blogger. A different site, WordPress.org is where you can download all the files, for free, to upload and run a on your own site.

The blogs hosted on blogger and WordPress.com are limited in options, and customization. To customize these blogs to any extent you need to know how to open and manipulate the templates PHP or HTML code.

A self-hosted is highly customizable, extremely flexible, and you need not worry about it being shut down like a blog can be on Blogger or any other site you don’t control. There are thousands of free available so finding the right look for your blog should not be a problem.

Adding items to the sidebar on a self-hosted WordPress blog can easily be done within the dashboard using widgets. Simply add a text widget, write your text, paste in your affiliate links, newsletter sign up form, Goggle ads, pictures or anything you want. Then simply drag and drop the widgets into your desired position. No need dig around in the themes code to add anything.

When you write a blog post you are actually adding another content page to your website. The search engines love to see and crawl a site with fresh content. And another page on your website raises your chances of more traffic.

The most valuable feature of a self-hosted WordPress blog are : Almost all are free to download and they add features or change the functions of your blogs behavior. Plugins cannot be added to the WordPress hosted free blog.

Here is what WordPress and some of the thousands of plugins can do.

Search engine optimization – As stated above, when you write a new post you are actually adding a new content page to your website. By default It will be seen by the search engines like this: My Blog | Keyword Rich Title Of Post. With a few plugins the post’s page can be automatically optimized, adding keywords and descriptions and swap the title around to a more search engine friendly Keyword Rich Title Of Post | My Blog.

Then by placing your post in a keyword targeted category and using a custom Permalink structure the posts URL will look like this: www.myblog.com/keywordCategory/titleofpost. Another tactic the search engines like. A blog post can very quickly find its way to the top of the search engines, sometimes in just one day.

Tagging plugins are used for better internal linking structure and additional search engine optimization. A keyword phrase, or in blog terms, a tag in your posts will link to other posts with the same tags. Top blog directories like Technorati can also be tagged within a post. This will automatically alert them that there is content related to the tagged phrase on your blog.

WordPress can be setup to ping a list of directories automatically when you publish a post. Getting back links and traffic very quickly. You can add as many of these sites as you want.

There are several plugins available to setup a Google sitemap for your blog that automatically notifies Google and Yahoo of any changes to your blog.

Social Bookmarking and are the big buzzwords online now, and are available to take advantage of this too. By allowing your visitors to comment on your blog and using a plugin to subscribe them to the post, they will be notified of any new comments, repeat traffic.

There are plugins available that show the most popular sites on each post. So you and your visitors can bookmark your posts. Adding links to your blog on these sites, more links means more traffic.

I briefly touched on social bookmarking but that is probably one of the most powerful and viral methods of driving targeted traffic your blog. I highly suggest getting a free copy of the Authority Black Book to learn more.

Utilizing Trackbacks are another feature to increase traffic to your blog. Find another blog with content related to yours. If you like a specific post on another blog write a post about it on your blog. Place a link to it in the Trackback section, and a link to it in your post also. Then if the other blogger approves it, an excerpt from your post including a link to it will appear in the comment section of the other blog.

Installing WordPress on your own site can be confusing and time consuming for first timers. You need an FTP program, know how to setup a database, how to CHMOD files on your hosting account, and must also tweak some code in one of the files. You may also need to add a few lines of code to your sites .htaccess file.

As you can see all different things I touched on about a self-hosted WordPress blog all add up to one thing, increased traffic. Of course you need to provide your visitors with quality content, post on a regular basis, and utilize all of the tools and WordPress plugins to get the most out of it.

If you need help installing WordPress on your site or adding and configuring all the correct plugins, get in touch and I can help here: Help Installing WordPress


Tagged with , ,


Related Posts



Answers To Your WordPress Questions

Have you searched all over the Internet for information about and can’t seem to find the answer you are looking for? Have you found the answer but can’t quite figure out exactly how to implement it? I know how it is especially in some forums where newbies with simple questions are treated like they have the plague.

I have read threads on some forums where the answers people get only send them on a wild ride of reading the entire WordPress.org site to make a simply change on a template theme. I understand that some are trying to get the newbie to learn how to educate them self, and thus learn how to do things. But still, all we really want is a simple explanation and a quick fix.

So recently a new page has been added here and is visible on the header and in the sidebar, Ask WordPress Max. If you have a question about WordPress ask on that page and I will try to help as best I can.


Tagged with ,


Related Posts



Close
E-mail It