Posted: July 1, 2012 at 6:28 pm
|
Hi Guys, I’m working on adding a few things to my upcoming events. I have been working with this event_name) ?>Start Date: – start_date) ?>End Date: – end_date) ?><a href="”>Click Here to Book Thanks in advance |
The [ESPRESSO_VENUE] shortcode could be added as a do_shortcode in the widget.php. This shortcode can be configured to display the event address. To make the title bigger and more bold, you can adjust the font size/weight in the stylesheet. First, wrap the title in a strong or span like so in widget.php:
Then add something like the following to your theme’s stylesheet (or where you’re saving the custom styles):
|
|
|
Hi Josh, I got the title sorted ok but not sure how to get the shortcode into the widget.php. I only want to show the city and not the full address and price would be great to have in too.. Any thoughts would be great Thank |
Have a look at the event_list.php and event_list_display.php templates handle the venue city. Depending on how you have your venues set up, you should be able to copy some of that code over to the widget.php. The same could be done for price, or you could use the event_price shortcode. Look in the shortcode documentation for examples of how to include shortcodes in template files. |
|
|
Hi Josh, Thanks for you help.. I cant seem to get it to work.. If there was a easy basic way to explain it to me that would be brill.. Cheers |
To add a shortcode into a template, it needs to be wrapped in an echo do_shortcode. For the pricing, it would look like this:
Let’s take a different approach to get the city name and create a new shortcode based on the venue shortcode: Then in widget.php, add this new shortcode:
|
|
|
Hi Josh, I have tried the above but not working or showing in the widget. Cheers |
k |
|
|
Hi Josh, Im not using venue manager. Think the problem might be if im not putting it in the right place. event_name) ?>Start Date: – start_date) ?>End Date: – end_date) ?><a href="”>Click Here to Book Would this be right?? Thanks |
The code I posted was tested to work with the venue manager. The code you posted doesn’t look right either. Here’s an example to work off of:
|
|
|
Hi Josh, If you take a look at nifirstaidservices.co.uk and look at the side widget and you will see the layout in trying to get. the blank space under the title is what i get when i input the way you have said.. sorry to ask but is there a different code for the price to display before the vat?? and also a uk £ sign. Hope that helps. |
I added some line breaks in the code samples for the sake of readability. Try removing those. Other than that, it might be a theme issue where the br tags are getting automatically added. |
|
|
Hi Josh, I got it.. Now I need to work at the price. Thanks again |
The event_price shortcode totals everything up, so you might need to customize that function. The html entity for pounds is £ |
|
|
Hi Josh, Thanks again for all your help.. I’m one very happy guy and its looking good.. I updated manually and all working great. Thanks again |
The support post ‘Venue in Upcoming Events’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.