Posted: October 1, 2013 at 7:24 am
|
Hi guys, i am editing the PAYMENT PAGE and would like to show the title of my location only! <?xphp echo stripslashes_deep($event_venue) ?x> shows the whole deal including the map. $event_location shows nothing?! Any idea? Thanks for your help! |
|
Which file are you editing? |
|
I am editing the payment_page.php |
|
Hi, The venue data isn’t available at that point, you could use a shortcode though <?php echo do_shortcode('[ESPRESSO_VENUE event_id="' . $event->id . '" show_image="false" show_description="false" show_address="false" show_google_map_link="false" show_map_image="false"]'); ?> |
|
Works, shows the location only! Almost done! Problem: using this in my text (or everywhere else), that shortcode as a (br/) included, so that my text is teared apart. Doesn’t look good. Any idea? |
|
There shouldn’t be a br tag, though the title is a header (h3) and there is a surrounding div and an empty p tag. Css should be able to resolve those as they have classes available and the shortcode can be modified to edit those classes to make them unique should you use this shortcode elsewhere. If it is adding in a BR tag then your theme is modifying the output. If the Br tag is within an element with a class/id you could target it with css e.g. .event_venue br { display:none; } https://eventespresso.com/wiki/shortcodes-template-variables/#venue |
|
yes, it’s probably a headline thing. wrapping the shortcode in css works, but the line break still appears 🙁 where can i edit that shortcode? |
|
Well, if you have the Custom Files Addon, you could go to the shortcodes.php file in the main plugin and copy the shortcode to the custom_shortcodes.php file in the custom files addon. Then you would need to rename it so it doesnt clash, make your adjustments and use that new shortcode in your template. Of course you could just amend the shortcode directly in the shortcodes.php file, but as it is a core file updates will over write your changes. |
|
got that addon. thanks, will check tonight or tomorrow. hope that works… |
|
No problem. |
The support post ‘Shwo Location on Payment Page’ 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.