You must be logged in to post


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Adding Categories and other Widgets to your home page

UserPost

9:17 pm
December 18, 2008


Market Admin

Admin

posts 4756

1

To select which widgets appear on your site such as "categories", "calendar", "tags", or any other widget to appear on your website, first log into your WordPress administration area and click on the "Design" tab, and then click "Widgets".  (In WordPress version 2.7, click on "Appearance", then on "Editor".)

Simply select the widgets you want to add and then click on "Save Changes".

To make these widgets appear on your main index page, make the following changes.

Open the Main Index Template file “index.php”.

Scroll all the way to the bottom and find the lines:

  <?php endwhile; ?>
</div>
<?php get_footer(); ?>

 Immediately above the “</div>” line, enter ”<?php get_sidebar(); ?>”.  It should now look like this:

  <?php endwhile; ?>
<div class='widgetcase'>
    <ul>
      <?php if ( !function_exists('dynamic_sidebar')
        || !dynamic_sidebar() ) : ?>
      <?php endif; ?>
    </ul>
  </div>
  <div style='clear: both'></div>
</div>
<?php get_footer(); ?>

Save your file.

1:45 am
January 16, 2009


jenniferwebmiss

Member

posts 21

2

Do you know how to get rid of the uncategorized category? I tried just changing this category name to "new" and putting it under Products and that messed up the blog post on the home page. I am using a widget (per your instructions above) and it works great, other then, it is showing the category "uncategorized", which I wish I could make private or not show as a category, as I intend to put nothing in that category. Please let me know. Thanks.

4:36 am
January 16, 2009


Fendi

Member

posts 11

3

Apparently, this has been resolved with Version 3.3

Just use the widgets off the rack.

1:23 pm
January 16, 2009


jenniferwebmiss

Member

posts 21

4

Fendi, sorry to be naive on this, I know what widgets are how to install them and use them. What does "use Widgets off the rack" mean? Please clarify. Appreciate it. BTW, I do have all latest installed and it is still showing that uncategorized category. (cannot actually remove this category). I'm thinking of just naming it something else, but again, it shows up when using the Widget for Category. Thanks for your help on this.

2:51 pm
January 16, 2009


Market Admin

Admin

posts 4756

5

Hi Jennifer,

All you really have to do usually, is just not have any posts in the "uncategorized" category.  My guess is that you still have a post in that category.  Change it, and the category won't show anymore.

As far as widgets go, under your "design" or "appearance" tab, you'll see a "widgets" tab.  In that area, is where you add widgets to your site.  (Think of a widget like a "lego" building block.)  A widget is a "module" that does a specific purpose.

Such as a calendar, a category list, a tag cloud, links area, search bar, and other stuff. 

Feel free to add some of them to your site and explore them.  If you don't like them, just remove them.

For the Categories widget, I like to edit it so that it shows the links in a hierarchy.

5:33 pm
January 16, 2009


jenniferwebmiss

Member

posts 21

6

The original welcome default post, that comes with theme, was set to the category of "uncategorized" by default.

When I changed the post to the category of "products", my posting was gone from home page. So that will not work.

I was able to change the "uncategorized" name to "Store Home" as a temporary work around.

So it seems the original posting is forced to be in whatever category was originally in word press by default.

7:01 pm
January 16, 2009


Market Admin

Admin

posts 4756

7

Just delete the original welcome post.  You don't need it anyway. 

If you chang the post category to "products", then it's not supposed to show up in the standard blog post area.  Any post that chooses the "products" category will be handled differently than regular blog posts.

For regular blog type posts, you will need to put it in SOME category other than products.  Create a new one such as "advice", "information", "company" or whatever fits your website style.

2:51 pm
October 21, 2009


EuniceC

Member

posts 25

8

I tried to install the code to make my widgets appear on the main index page but my code is different than what you have above. This is what the editor has on my main index page:

<?php
if (!file_exists('phpThumb.config.php')) {
    if (file_exists('phpThumb.config.php.default')) {
        echo 'WARNING! "phpThumb.config.php.default" MUST be renamed to "phpThumb.config.php"';
    } else {
        echo 'WARNING! "phpThumb.config.php" should exist but does not';
    }
    exit;
}
header('Location: ./demo/');
?>

Where do I place the code to show widgets on my main index page?

Thanks,

Eunice

Advice and tips for internet marketing newbies and small businesses online at http://www.simple-internet-strategies.com

3:35 pm
October 21, 2009


Market Admin

Admin

posts 4756

9

I don't know what version you're referring to.

If it's version 3.5 or above, then the bottom of "index.php" starting around line # 77 should look like this:

?>
 
  <?php get_sidebar(); ?>
 
  <div style="clear: both"></div>
</div>
<?php get_footer(); ?>

The "get_sidebar()" is the part that integrates the widgets.

8:22 am
October 22, 2009


EuniceC

Member

posts 25

10

This is version 3.52 . It looks liike something is missing or incorrect since it reads:

echo 'WARNING! "phpThumb.config.php.default" MUST be renamed to "phpThumb.config.php"';

I'm using Market Theme on another blog that says the same thing on the code for index.php .

Can you help me out with this? Thanks.

Advice and tips for internet marketing newbies and small businesses online at http://www.simple-internet-strategies.com

3:39 pm
October 22, 2009


Market Admin

Admin

posts 4756

11

Post edited 7:40 pm – October 22, 2009 by Market Admin


Oh, I see what's going on…

The new version of the WordPress theme editor draws all the files in the theme folder, including those located within the sub-folders.  The "index.php" file that you are seeing, is not the Market root folder index file, but the "index.php" that's located within the "phpThumb/" theme sub-folder.

This is a WordPress editor bug that started in version 2.8 and I hope they realize and fix soon, as currently if there are two files with the same name, I think it only shows one.  That's what's happening in this case.

If you want to edit the "index.php" file, then you may need to edit it on your computer first, and then upload it manually.



 

Market takes e-commerce to the next level with an easy to use, quick setup platform. Learn more or take the tour.