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 Category links and Widgets to your sidebar

UserPost

4:50 pm
November 11, 2008


Market Admin

Admin

posts 4728

1

In case anybody desires to display all the topic categories in your sidebar such as in the live demo, it's very easy. 

Here's how:

===============

In your WordPress administration area, click on the "Design" tab. Then click on "Widgets" in the sub-menu.

(In WordPress version 2.7, it's the "Appearance" tab, then the "Editor" link.)

Find "Categories" under 'Available Widgets'.  Click the "Add" button, then click on "Save".

That should do it.

 

OPTION:

If you would ALSO like the categories to appear on your main index page, perform the code changes above and also do the following:

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 and you should now see the categories displayed.

1:59 am
January 8, 2010


Osman

Singapore

Member

posts 4

2

Hi,

I'd like to have topics appearing under the category section like in the demo
site but can't get it to work.

And iin the index.php file, at the bottom of it is something as such:

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

…not like the code you've shown above.

I'd appreciate if you could give a step-by-step instruction since I'm not 
well versed in this kind of stuff.

Thanks in advance.

Osman
—- 

1:06 pm
January 8, 2010


Market Admin

Admin

posts 4728

3

Yeah, that was for an older version of Market.

To add the Categories widget (and other widgets), simply click the "Widgets" menu item under "Appearance".

From there, select the "Categories" widget and enable it. 

Click the "Save" button.

Now, you can choose the method that the categories are displayed, by clicking the "Edit" button and choosing the option of your liking.

Click Save when done.

9:53 pm
January 31, 2010


wboswell

Member

posts 37

4

I did the widget that adds categories, but it doesn't make them show up on the home page. There's got to be an easier way to do something that is so basic, rather than digging into the CSS.

7:24 pm
February 1, 2010


Market Admin

Admin

posts 4728

5

Are you using a recent version of Market  or an older one?

The newer releases have widgets enabled on the front page.

Or, are you using the grid-view storefront as your home page?

10:49 pm
February 1, 2010


wboswell

Member

posts 37

6

I just downloaded it two days ago. So it's pretty recent.

yes, I am using the grid-view storefront as the home page. Does that mean that the categories don't show up? That seems short-sighted if true.

11:19 am
February 2, 2010


Market Admin

Admin

posts 4728

7

There are a couple of code changes you'll need to do.

1.  Edit your "frontdoor.php" file. 

around line # 41 you'll see:

<?php /* get_sidebar(); */ ?>

You'll need to remove the "/*" and the "*/" so that it looks like this:

<?php get_sidebar(); ?>

Save the file.

2.  Now, you'll need to edit your "functions.php" file.

around line #61, you'll see:

    #content .grid { width: <?php echo $mkt_options['mkt_TOTAL_PAGE_WIDTH']; ?>px; }

disable this line by changing it to:

   // #content .grid { width: <?php echo $mkt_options['mkt_TOTAL_PAGE_WIDTH']; ?>px; }

Now, find on or around lline #63 where it says:

    //#content .grid { width: <?php echo $mkt_options['mkt_TOTAL_PAGE_WIDTH']-$mkt_options['mkt_STYLE_WIDTH_PRODUCTS']; ?>px; }

enable this line by removing the beginning slashes, so that it looks like this:

    #content .grid { width: <?php echo $mkt_options['mkt_TOTAL_PAGE_WIDTH']-$mkt_options['mkt_STYLE_WIDTH_PRODUCTS']; ?>px; }

Save the file.

Lastly, I think you may need to go to your Market Theme options settings area in your WP dashboard, and change the number of thumbnails that it displays on that page.

From memory, I think that's all.

9:03 pm
February 2, 2010


wboswell

Member

posts 37

8

Seriously?!?!? I really don't have the time or inclination to goof around with CSS. I thought this theme was ready out of the box. This is a pretty basic need that's covered in every WP theme I've ever dealt with – categories on the front page. Why wasn't this included in this release?

7:24 pm
February 3, 2010


Market Admin

Admin

posts 4728

9

Well, you want to do something that's not standard.

If you check the online demo, you'll see that the default setup not to show the categories.

You wanted to customize it, so there's the code.

You don't even need to mess with CSS.  All you've got to do is disable a line, and enable one in two places.

You probably could've made the changes in less time than it took to write your message above.

11:53 am
February 23, 2010


wboswell

Member

posts 37

10

I apologize, didn't mean to be rude. Appreciate the help!

12:52 pm
February 24, 2010


Market Admin

Admin

posts 4728

11

No worries… 



 

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