WordPress.org

Forums

How to style the output of a function? (1 post)

  1. irishrunner16
    Member
    Posted 1 year ago #

    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 greatly appreciated, as I'm really lost right now. Here's the link to my site.

    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>

    Below 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.
    http://forums.phpfreaks.com/uploads/monthly_05_2014/post-168532-0-95471200-1399318391.png
    http://forums.phpfreaks.com/uploads/monthly_05_2014/post-168532-0-39753600-1399318392.png

Topic Closed

This topic has been closed to new replies.

About this Topic