Jump to content

How to style the output of a function?


irishrunner16

Recommended Posts

Hi everyone. I am using Wordpress and have a calendar plugin I'm using to display events. I'm trying to get the output of a function to display differently in one of my templates (have the output on one line). By default the plugin is having the output appear on multiple lines. Is it possible to wrap the function in a div to target it and remove the line breaks? I haven't been able to find anything to force the output to be on a single line.

 

I'm not sure if I'm doing something wrong since I'm a newbie at this, or if I'd need to use something else other than CSS since the function does use a class, as shown here in the plugin's docs.

 

Any advice or tips would be grealty appreciated, as I'm really lost right now.

 

Thanks for taking the time to read this, and of course, for any assistance!

Sean

 

This is what I've added to my template thus far:

<div class="tribe-events-event-category-list"> <?php echo Tribe_Register_Meta::event_category( 'tribe_event_category' ) ?> </div>

Here are a couple images of how the output is being displayed by default (on two lines). Again, I don't want to change the output everywhere on my site; only on a certain php template.

 

post-168532-0-95471200-1399318391_thumb.png

 

post-168532-0-39753600-1399318392_thumb.png

Link to comment
https://forums.phpfreaks.com/topic/288261-how-to-style-the-output-of-a-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.