Support

Home Forums Event Espresso Premium adding venue title to widget but can't figure out how to remove header style

adding venue title to widget but can't figure out how to remove header style

Posted: June 19, 2015 at 8:28 am

Viewing 2 reply threads


mgregor

June 19, 2015 at 8:28 am

Following the instructions here:
https://eventespresso.com/topic/how-to-display-venue-title-on-custom-template/

i added this to my widget.php

<?php echo do_shortcode('
      [ESPRESSO_VENUE event_id="'.$event->id.'"
      show_image=false
      show_description=false
      show_address=false
      show_additional_details=false
      show_google_map_link=false
      show_map_image=false]
');?>  

the venue name shows up, but it’s wrapped in an h3. i found one around line 43-53 of my event_list_display file, but changing that h3 in my template file didn’t affect the output of the widget.

where do i change that?


Dean

June 22, 2015 at 1:17 am

Hi,

Why not use the parameter

title_wrapper=p

This will change the wrapping html from an h3 to a p(aragraph) tag. You can change the p to an alternative html tag.

Full example

<?php echo do_shortcode('
      [ESPRESSO_VENUE event_id="'.$event->id.'"
      show_image=false
      title_wrapper=p
      show_description=false
      show_address=false
      show_additional_details=false
      show_google_map_link=false
      show_map_image=false]
');?>  

More information on the ESPRESSO_VENUE shortcode: https://eventespresso.com/wiki/shortcodes-template-variables/#venue


mgregor

June 23, 2015 at 10:55 am

ah thank you, that worked perfectly. appreciate the link. not sure i’ve seen that wiki before. 🙂

Viewing 2 reply threads

The support post ‘adding venue title to widget but can't figure out how to remove header style’ 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.

Event Espresso