Jump to content


Photo
- - - - -
Resolved

Customising metabar info

categories styling metabar

  • Please log in to reply
12 replies to this topic

#1 attac

attac

    Super Member

  • Members
  • 122 posts
  • Country: Country Flag

Posted 24 September 2012 - 01:19 PM

How do I customise how the metabar information is shown?

For instance:
- The list of categories is separated by commas? Can I change that?
- Can I make it show only one category? (my previous theme did this, with lower ID number getting priority)
- Can I use CSS to style different parts of the information. This:

Please Login or Register to see this Hidden Content

doesn't work, but I'd like something like that.

#2 catrina

catrina

    Advocate

  • Moderators
  • 12,345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 24 September 2012 - 02:44 PM

  • Categories are separated by commas in

    Please Login or Register to see this Hidden Content

    The location of your category template tag should be in the post loop file, so you'd need to use the base theme to make the adjustment in that file.
  • I think you can show only one category by using code to exclude certain other ones. You'll need to see the WordPress Codex:

    Please Login or Register to see this Hidden Content

  • You'll need to use Firebug or Chrome Development to inspect the elements in your metabar and see what customizations can be made then Custom Code > Custom CSS in Site Options to make those customizations (

    Please Login or Register to see this Hidden Content

    ).


#3 attac

attac

    Super Member

  • Members
  • 122 posts
  • Country: Country Flag

Posted 25 September 2012 - 10:03 AM

  • Categories are separated by commas in

    Please Login or Register to see this Hidden Content

    The location of your category template tag should be in the post loop file, so you'd need to use the base theme to make the adjustment in that file.

Thanks, but what/where is the post loop file? Can I add code to functions.php in my base theme, or do I need to add a separate file with the same name as the post loop file?

#4 attac

attac

    Super Member

  • Members
  • 122 posts
  • Country: Country Flag

Posted 25 September 2012 - 11:02 AM

regarding 3. it seems like the categories class governs how the [post_categories] metainformation is shown, but I can only get the comma separator to change color with CSS:

Please Login or Register to see this Hidden Content


I tried adding an "a.", but it doesn't help. Any idea on why it doesn't work?

#5 attac

attac

    Super Member

  • Members
  • 122 posts
  • Country: Country Flag

Posted 25 September 2012 - 11:08 AM

solved 3. with Chrome Inspector

#6 Danny

Danny

    Ninja

  • Moderators
  • 7,482 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 25 September 2012 - 11:46 AM

The topic was marked as resolved.

#7 attac

attac

    Super Member

  • Members
  • 122 posts
  • Country: Country Flag

Posted 25 September 2012 - 12:25 PM

it's not really resolved yet.

#8 Rob

Rob

    One Smart Egg

  • Moderators
  • 9,359 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 25 September 2012 - 09:28 PM

Try Dashboard > PageLines > Site Options > Blog And Posts

Scroll down to "Full Width Post Meta" where you'd edit the shortcodes in the same format shown.

I restored this topic to Open. Please explain further what needs to be done. Thanks.

#9 attac

attac

    Super Member

  • Members
  • 122 posts
  • Country: Country Flag

Posted 26 September 2012 - 10:13 AM

Thanks Rob. This hasn't been answered:

but what/where is the post loop file? Can I add code to functions.php in my base theme, or do I need to add a separate file with the same name as the post loop file?


There has to be a file somewhere in the framework that deceides that there should be a comma separating categories trough the the_category-function (BTW: default is space, not comma according to WP Codex), and I wonder if anyone know what file this is. Half the documentation for the Framework on the wiki is unfinished so it's hard to figure this out by myself.

#10 attac

attac

    Super Member

  • Members
  • 122 posts
  • Country: Country Flag

Posted 26 September 2012 - 10:58 AM

Thanks Danny.

#11 Danny

Danny

    Ninja

  • Moderators
  • 7,482 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 26 September 2012 - 11:18 AM

The topic was marked as resolved.

#12 Simon_P

Simon_P

    Messer

  • Administrators
  • 5,067 posts
  • LocationDevon
  • Framework Version:trunk
  • Country: Country Flag

Posted 26 September 2012 - 01:54 PM

Please dont edit core files! The solutions was actually simple ;)

Most shortcodes accept attributes:

Please Login or Register to see this Hidden Content



#13 attac

attac

    Super Member

  • Members
  • 122 posts
  • Country: Country Flag

Posted 26 September 2012 - 01:56 PM

Simon: Great, that should be added to some documentation somewhere....





Also tagged with one or more of these keywords: Resolved, categories, styling, metabar

Click to return to top of page in style!