Support

Home Forums Event Espresso Premium Problem with the 'More' tag in event description

Problem with the 'More' tag in event description

Posted: August 15, 2013 at 5:30 pm


miranda rota

August 15, 2013 at 5:30 pm

I’ve been trying to implement directions given in previous forum posts, requesting how to make the ‘More’ tag work properly in the Event Description pages, but after a couple of hours have to give up! This is the most recent help given (but 1 year ago so maybe outdated??):

Look in event_list_display.php for the comment that says //Show short descriptions
Add a read more link right after the description like this:

<code>1
 &lt;p&gt;&lt;?php echo espresso_format_content($event_desc); ?&gt;&lt;a href=&quot;&lt;?php echo $registration_url; ?&gt;&quot;&gt;Read more&amp;rarr;&lt;/a&gt;&lt;/p&gt;</code>

I have the same problem as those others did, in that when we use the More tag, it does cut off the text but gives no ‘Read More…’ or similar link so the reader can click to see the full event description.

Help appreciated please!


Josh

  • Support Staff

August 15, 2013 at 8:43 pm

I think you’re thinking of this post:

https://eventespresso.com/topic/read-more-buttonlink/#post-11546

I honestly can’t say why that code would not work today. If you can post a copy of your modified event_list_display template over at pastebin.com and post a link to the pastebin here one of us can take a look at the code.


miranda rota

August 16, 2013 at 7:37 am

I’ve put the relevant bit of code up – although couldn’t get it to be coloured like yours are. This is the link:

https://gist.github.com/tara2/6249991


Josh

  • Support Staff

August 16, 2013 at 10:47 am

Nothing wrong with the code there. This might be more of a case that your customized file is not getting loaded up. If you are trying to load the file from /wp-content/uploads/espresso/templates you will also need to copy the event_list.php file from the Event Espresso plugin and paste it into the /wp-content/uploads/espresso/templates location.

-or- you can copy your modified event_list_display.php file over to your active theme’s directory and it will load from there with the event_list.php only in the Event Espresso plugin.

There is more information in this guide: https://eventespresso.com/wiki/put-custom-templates/

Note that some templates need to be copied over in pairs. For example, if you make a change to event_list_display.php, you’ll need to copy over it’s counterpart event_list.php. Also please note that if we need to make a change to a template in version of Event Espresso, you’ll need to copy this change into your custom template to stay current with the plugin.

We recommend using Diffmerge to help merge changes into custom templates.


miranda rota

August 16, 2013 at 12:57 pm

Josh, you are just such a whizz …you know that?!! πŸ˜‰

I took a couple of hours off as brain had had it, and when I cam back suddenly had the inclination to just check that I had the event_list.php there too, although I was (almost) certain that I did …when I looked though I had altered the name of that file (putting ‘_orig’ in it’s name as a backup in case I mess the files up) and had forgotten to put the file with it’s proper file name there. Needless to say, it’s now worked beautifully πŸ™‚

Many thanks to you πŸ™‚


miranda rota

August 16, 2013 at 1:05 pm

Btw, Is this the Diffmerg site you mean?

http://www.sourcegear.com/diffmerge/


Josh

  • Support Staff

August 16, 2013 at 1:18 pm

Yep, that’s diffmerge. And another option that you can use within the web browser for doing code comparisons is at prettydiff.com


miranda rota

August 16, 2013 at 3:55 pm

Josh, nearly there …but one more small challenge still: it’s showing the address after the Read More, which is untidy/not nice, etc. Here on this page is what I mean: http://gator3027.hostgator.com/~yep1/forthcoming-events/

…how can I tell that to remain hidden on this page listing all future events, but to appear of course on the actual Event page?


Josh

  • Support Staff

August 16, 2013 at 4:16 pm

That’s an option in Event Espresso>Template settings:

Display addresses in the event listings?, you can set that to no.

https://eventespresso.com/wiki/template-settings/#templateoptions


miranda rota

August 16, 2013 at 4:58 pm

Yes that did the trick …thanks so much for your help today, you’ve been brilliant

πŸ™‚

The support post ‘Problem with the 'More' tag in event description’ 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