Forum Replies Created
-
AuthorPosts
-
Thanks Ismael & Victoria.
Here my tutorial to use the enfold postslider with the plugin “Event Calender”
1. Copy this code to your function.php in your child theme (important)
add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); function avia_include_shortcode_template($paths) { $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; }
2. Copy this code to your function in your child theme
<?php /* * Add your own functions here. You can also copy some of the theme functions into this file. * WordPress will use those functions instead of the original functions then. */ /* * Enfold Avia Shortcode changes for child theme */ add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); function avia_include_shortcode_template($paths) { $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; } /* * add a upcoming event filte to postslider */ add_filter('avia_post_slide_query', 'avia_post_slide_query_mod', 10, 2); function avia_post_slide_query_mod( $query, $params ) { $eventquery = array('paged'=> false, 'eventDisplay' => 'list', 'tax_query'=> array( array( 'taxonomy' => 'tribe_events_cat', 'field' => 'term_id', 'terms' => explode(',', $params['categories']) ) )); $upcoming = Tribe__Events__Query::getEvents( $eventquery, true); $include = array(); foreach($upcoming->posts as $key => $event) { $include[] = $event->ID; } $query['tax_query'] = array(); $query['post__in'] = $include; return $query; }
3. Create a folder called /shortcodes (important) in your child theme. After that copy all files from the original theme /enfold/config-templatebuilder/avia-shortcodes/postslider to the folder /shortcodes
4. Than change this in file: postslider.php | row 761:
$order = ‘DESC’; to $order = ‘ASC’; (DESC = Descending / ASC = Ascending)5. In your postslider.php change this code | row 629 (This entry is to display the startdate from the event.)
$meta .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
in
$meta .= "<time class='slide-meta-time updated' $markup>" .tribe_get_start_date( $entry->ID, false, 'F j, Y' )."</time>";
This entry is to display the startdate from the event.Different display:
a .tribe_get_start_date( $entry->ID, false, ‘F j, Y’ ). Looks like this: November 11, 2018
b .tribe_get_start_date( $entry->ID, false, ‘F j, Y – g:i a’ ). Looks like this: November 11, 2018 – 9:00 am
c .tribe_get_start_date( $entry->ID ). Looks like this: .November 11 @ 9:00
Change the @ sign in the plugin options from event calender in what you like.Addional.
Limiting excerpt (if you want to limit the excerpt in postslider)
Add this code to your functions.phpadd_filter('avf_postgrid_excerpt_length','avia_change_excerpt_length',10,1); function avia_change_excerpt_length() { return 65; }
Change “return 65” to increase or reduce the excerpt. Example return 100;
Have fun.
Thanks Enfold team for helping me.
Best regards
Chris- This reply was modified 6 years, 3 months ago by Kingsfield.
Hi Ismael, thanks. Works perfectly. :)
If it´s okay I would like to post the result for other creatives down belowbest regards
ChrisHi Ismael,
sorry for delay.Hi add this to postslider.php:
.tribe_get_start_date( $entry->ID, false, 'F j, Y' )
Works fine. The event start dates are displayedCurrently, the problem is that only display one categorie if i choose more than one on the startpage. Strange ! :)
best regards
ChrisHi Ismael, thanks.
I´ll check today and let you know.
Best regards
ChrisHi Ismael,
in the private section you will find the login details
Best regards
ChrisHi Ismael, thanks for your quick reply.
I enter the code above in my functions.php. It works partly.
Now I have the upcoming events, but the created date is displayed. Not the date of the event.
And secondly all categories are displayed, although I eg. choose only one category.Strange! :)
best regards
ChrisHi Ismael.
Sorry for delay. Litte vacation :)First of all the website is not ready yet.
What i did:
I copy this code:add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); function avia_include_shortcode_template($paths) { $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; }
to my function.php and i have created a folder called /shortcodes. After that i copy all files from the original theme /enfold/config-templatebuilder/avia-shortcodes/postslider to my new folder.
Than I changed this: $order = ‘DESC’; to $order = ‘ASC’; in /postslider.php | row 761 (DESC = Descending / ASC = Ascending)
Works fantastic.
Currently I have the problem that all events are displayed. The past, too. (Dates are correct) Only the upcoming events should be displayedAn the second:
I would like to have the date above the slide-image.
I found this in /postslider.php:$output .= '<footer class="entry-footer">'; if( !empty($meta) ) $output .= $meta; $output .= '</footer>';
But where i have to copy it above the silde-image?
best regards
Chris- This reply was modified 6 years, 3 months ago by Kingsfield.
Hi Ismael, thanks for your quick reply.
Actually the website is in maintenance mode so I can´t show. But its okay.
Come back if I have finish the website and react this thread.Best regards
Hallo Vinay, thanks for your quick reply.
1. hmm? Strange, it does not work for me. ..
2 & 3:
Unfortunately, that’s not what I was looking for. I will think of something else.Thanks for the tips.
The thread can be closed.best regards
ChrisUpps, can be closed. Thanks!
best regards
chrisOkay. Thanks. I´ll fixed it.
Thanks
Best regards ChrisHi, thanks for your quick reply.
Okay, the first question is fixed. Thanks.
What about the second?
I would like to have a login sidebar like your forum, but it doesn´t work. There is no sidebar. hmmbest regards
ChrisHi Basilis, tempory login created.
Thanks.Best regards
ChrisHi Basilis, thanks for your quick reply.
What you need actually?best regards
ChrisHi, i fixed the problem with the blurred images. No idea why it works now. :)
I changed the Image Size from Medium 300×300 to Portfolio 495×400Topic can be closed
Back again :)
The Result:
I use following settings
#Portfolio Raster / 3 Rows / Medium 300×300 / Yes, display sort options
And here is the css code for free :)/* Portfolio Raster */ .grid-content { display: none; } .sort_width_container { display: block; margin: 20px 0 40px !important; padding: 0; text-align: center !important; } #js_sort_items { display: inline-block; text-decoration: none; } .sort_by_cat a { background: #000 none repeat scroll 0 0; border: 2px solid #000; color: #fff; display: inline-block; font-size: 12px; letter-spacing: 1px; line-height: 1; margin-bottom: 3px; margin-right: 4px; padding: 13px 20px; text-transform: uppercase; } .sort_by_cat a:hover { transition: all 0.4s ease-in-out 0s; background: #fff; border-color: #000; color: #000 !important; } .avia_transform a .image-overlay { transition: opacity 0.4s ease-in-out 0s; } .image-overlay.overlay-type-extern .image-overlay-inside::before { content: ""; font-family: "entypo-fontello"; font-size: 40px; } .image-overlay { background: #000 none repeat scroll 0 0; }
But i have one problem:
Why are the images blurred? I have different images sizes. All images are blurred.Best Regards
Christian- This reply was modified 7 years, 2 months ago by Kingsfield.
Hi Victoria,
i know thats different. Thats why i´am ask for the CSS Classes :)
for example:.inner_sort_button { } .text-sep { display: none } .all_sort_button active_sort { }
This what i have found :)
Do you have the full css code on for the menue?I try my best and the i´ll post the result right here :)
best regards
ChristianHi Victoria, my website is currently in scheduled maintenance.
I found that Masonry right here:
Website
Click on the right site and scroll a little bit.
I like the Masonry Menue and the pic format.I hope it helps
Best regards
ChristainHi Rikard,
thanks for your quick replyI´ll would like to create a Masonry Menue like this
Picture
Of course are all classes avaiable :)best regards
ChristianHi Victoria, thanks for your reply.
Reg. #3 Portfoilo-Item
ahhhh fixed. Thank you!Reg.#2 Portfolio [Gallery]
I try something again and on success I explain this in the forum.Reg. #1 Most Recent Entries
Sorry, i found it. Its a Masonry without sort-options.
I need more sleep :)
Best Chris
- This reply was modified 7 years, 2 months ago by Kingsfield.
-
AuthorPosts