Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: all category display on frontpage

  1. #11
    Member
    Not a Verified Customer
    secretstache's Avatar
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: all category display on frontpage

    moving the categories is not as tough as you might expect.

    Open up index.php in your classipress theme folder and find this block of code beginning on line 7:

    Code:
    <ul id="catnav">
                <li<?php if ( is_home() ) { echo " class=\"current-cat\""; } ?>><?php _e('Latest Listings','cp'); ?>
    	     <?php wp_list_categories('show_count=0&hide_empty=true&orderby=name&order=asc&title_li='); ?>
    	[*]<div class="clear"></div>[/list]
    This line of code displays each category as list items within an unordered list:
    Code:
     <?php wp_list_categories('show_count=0&hide_empty=true&orderby=name&order=asc&title_li='); ?>
    If you know a bit about html and have a working knowledge of php, you could display that content how ever you like.

  2. #12
    Member
    Not a Verified Customer
    secretstache's Avatar
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: all category display on frontpage

    Of course, any changes to the core files will make updating much harder, since the updated classipress will override any modifications you make. So beware of that.

  3. #13
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: all category display on frontpage

    Sites with a ton of categories should build a mega tab like this customer has done. I'm not sure what his code looks like but you should ask him to share.

    It would be a great add-on feature if he ended up sharing.

  4. #14
    Junior Member egm1947's Avatar
    Join Date
    Jun 2009
    Location
    United States
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: all category display on frontpage

    Sent e-mail off. Hope for a reply!

  5. #15
    valerio's Avatar
    Join Date
    May 2009
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: all category display on frontpage

    Quote Originally Posted by secretstache
    moving the categories is not as tough as you might expect.

    Open up index.php in your classipress theme folder and find this block of code beginning on line 7:
    .....

    If you know a bit about html and have a working knowledge of php, you could display that content how ever you like.

    I hope to have time this weekend to work on an elegant solution with Mootools...

    Thanks for the tips
    Valerio
    ---------
    Managing MailingLists and NewsLetters with FollowUps..?
    Try http://www.YellowCurl.com

  6. #16
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: all category display on frontpage

    I recommend looking for a solution with JQuery since ClassiPress and WordPress both use it. MooTools is good too but you will be loading another .js file and also might have some conflicts down the road.

  7. #17
    Junior Member egm1947's Avatar
    Join Date
    Jun 2009
    Location
    United States
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: all category display on frontpage

    Ok, A scriptlancer friend worked on my code and came up with what I now have.

    wvfreeads.com

    I will try and copy the code and post here'

  8. #18
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,967
    Thanks
    169
    Thanked 3,406 Times in 3,277 Posts

    Re: all category display on frontpage

    That would be great. Others including me might find great use of the code that you will be sharing.
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  9. #19
    Thread Starter
    togitron's Avatar
    Join Date
    Apr 2009
    Location
    Philippines
    Posts
    70
    Thanks
    8
    Thanked 4 Times in 4 Posts

    Re: all category display on frontpage

    To fix the margins..

    try this

    Code:
    <?php wp_list_categories('show_count=0&hide_empty=0&orderby=name&order=asc&title_li='); ?>
    			[*]<div class="clear"></div>[/list]<div class="clear"></div>

  10. #20
    Rookie
    Not a Verified Customer
    topao's Avatar
    Join Date
    Jul 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: all category display on frontpage


Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)