Edit event list page details

Responsive WordPress theme suitable for Schools, Colleges or educational websites.
GK User
Wed Dec 10, 2014 6:43 pm
Hi, compliments for the template, but i have a needs, that i can't modify by myself.
In event-list-1 layout i need to insert under the event detail "WHEN" also the detail "VENUE" (that i have insert by custom fields) and a small excerpt of the post.
In addition i need also to hide the hours detail that appear after the @ because the events are daily (now appears automatically @ 12:00 am - 12:00 am).
I have attached a picture to explain better!
Thank you very much!
User avatar
Fresh Boarder

GK User
Thu Dec 11, 2014 12:36 am
Hello,

First, please check this article about adding the short description in this place (after date)
https://www.gavick.com/forums/universit ... 41018.html
Then you can just replace it with your venue custom field

If you want to remove hours and minutes, please remove this fragment from content-event.php file (at the bottom):
Code: Select all
@ <?php echo $date_start->format('g:i a'); ?> - <?php echo $date_end->format('g:i a'); ?>
User avatar
Moderator

GK User
Thu Dec 11, 2014 10:30 am
thank you, i manage to hide the hours, but following the article that you suggest i have not found the file content.event.php. Maybe you meant content-event.php?
I tryed to add the code to the file content-event.php (as in the attachment) but the custom field are not shown.
User avatar
Fresh Boarder

GK User
Thu Dec 11, 2014 10:43 am
Sorry, i finally found the right line to insert the code into the content-event.php file under the class="event-description". Thank you
User avatar
Fresh Boarder

GK User
Thu Dec 11, 2014 12:58 pm
sorry...i have found the same problem also in the front page widget that show the next event...that show the @time text.
There is another file to change?
How can i also translate this component language?
User avatar
Fresh Boarder

GK User
Thu Dec 11, 2014 10:48 pm
This section on the frontpage is generated by the News Show Pro plugin, you can translate it - please use gk-nsp.pot file (from wp-content/plugins/gk-nsp/languages directory) to create po and mo files (gk-nsp-ru_RU.mo) and move these files into wp-content/languages/plugins directory.

Regarding the time, try to find similar fragment with "@" in wp-content/plugins/gk-nsp/article_wrappers/events/helper.php file
User avatar
Moderator

GK User
Tue Dec 23, 2014 1:06 pm
Piotr Kunicki wrote:Regarding the time, try to find similar fragment with "@" in wp-content/plugins/gk-nsp/article_wrappers/events/helper.php file


hi, can you tell me if is possible how can i disable the link on title of this widget, and also, add near the date field, also the venue?
I need the user to read only the quick information without clicking.

thank you very much and best christmas whishes
User avatar
Fresh Boarder

GK User
Wed Dec 24, 2014 12:04 am
Hi,
If you want to remove links, please edit wp-content/plugins/gk-nsp/article_wrappers/events/helper.php file and edit this line:
Code: Select all
$art_output .= '<h3><a href="' .$art_url. '" title="'.$art_title.'"> ' . $art_title .'</a></h3>';

(remove <a href=... </a>, leave only ' . $art_title .'
I'm sorry, but other modifications are beyond our technical support, generally you have to edit the same file or the events.php file in the same directory.

I also wish you a Merry Christmas.
User avatar
Moderator


cron