irishrunner16 Posted May 5, 2014 Share Posted May 5, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/288261-how-to-style-the-output-of-a-function/ Share on other sites More sharing options...
BuildMyWeb Posted May 9, 2014 Share Posted May 9, 2014 you would likely do better on wordpress support forums, im guessing Quote Link to comment https://forums.phpfreaks.com/topic/288261-how-to-style-the-output-of-a-function/#findComment-1478837 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.