Forum Replies Created
-
AuthorPosts
-
Wow, that works great! Super easy.
What do I need to add to the shortcode for the hours/minutes/seconds? I just used [custom_countup date=”2024-03-10″ color=”#fff” background=”#000″ offset=”-4″] but that is counting from midnight.Never mind, I see you can addhour='1' minute='1' min='1'
to do that. But how do I limit which numbers appear? Like only seeing days, hours and minutes and seconds, like the countdown feature. “Smallest time unit” and “Largest time unit”?- This reply was modified 9 months, 1 week ago by calebcuster.
I couldn’t get it to work with the changes to avia.js that you mentioned but changing ‘name’ to ‘id’ allows the Page scroll to id plugin to work correctly. I’ve seen other threads where what was suggest and it works fine as long as the anchors are ids. Problem solved!
Hi,
The anchors are set manually in the special header elements. Just in the “header text” field:
Seating Chart<a name="seating-chart"></a>
They do work and the page scrolls directly to that anchor. It’s just at the very top of the window, behind the header.
I can’t use multiple color sections because whole page is inside one color section that has the background positioned.
I’ve adjusted the scroll offset value the function that you mentioned but it doesn’t change anything.
<div id='main' class='all_colors' data-scroll-offset='145'>
The value in “data-scroll-offset=xxx” changes but it still scrolls to the same place with the anchor right behind the header.Ok, here’s the login link
Did anyone have any thoughts on this? :) I’m stuck!
December 10, 2018 at 8:37 pm in reply to: Exclude categories from post navigation in portfolio items #1043315Hi Mike, any updates on this?
November 14, 2018 at 12:35 am in reply to: Exclude categories from post navigation in portfolio items #1033278Hi Mike – How are things looking on this?
November 9, 2018 at 11:22 pm in reply to: Exclude categories from post navigation in portfolio items #1031864Hi Mike,
Thanks but I couldn’t get this to work. I have it running in a child theme and I think the code has been updated some since 2013. The syntax is a little bit different. This is what I have in my functions.php in my child theme:
if(!function_exists('avia_post_nav')) { function avia_post_nav($same_category = true, $taxonomy = 'category') { global $wp_version; $settings = array(); $settings['same_category'] = $same_category; $settings['excluded_terms'] = '10'; $settings['wpversion'] = $wp_version; //dont display if a fullscreen slider is available since they overlap if((class_exists('avia_sc_layerslider') && !empty(avia_sc_layerslider::$slide_count)) || class_exists('avia_sc_slider_full') && !empty(avia_sc_slider_full::$slide_count) ) $settings['is_fullwidth'] = true; $settings['type'] = get_post_type(); $settings['taxonomy'] = ($settings['type'] == 'portfolio') ? 'portfolio_entries' : $taxonomy; if(!is_singular() || is_post_type_hierarchical($settings['type'])) $settings['is_hierarchical'] = true; if($settings['type'] === 'topic' || $settings['type'] === 'reply') $settings['is_bbpress'] = true; $settings = apply_filters('avia_post_nav_settings', $settings); if(!empty($settings['is_bbpress']) || !empty($settings['is_hierarchical']) || !empty($settings['is_fullwidth'])) return; if(version_compare($settings['wpversion'], '3.8', '>=' )) { $entries['prev'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']); $entries['next'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']); } else { $entries['prev'] = get_previous_post($same_category, '10'); $entries['next'] = get_next_post($same_category, '10'); } $entries = apply_filters('avia_post_nav_entries', $entries, $settings); $output = ""; foreach ($entries as $key => $entry) { if(empty($entry)) continue; $tc1 = $tc2 = ""; $link = get_permalink($entry->ID); $image = get_the_post_thumbnail($entry->ID, 'square'); $class = $image ? "with-image" : "without-image"; $output .= "</a>"; } return $output; } }
Yeah, it’s live now. That’s what I thought too but there are no line breaks or paragraph tags. It happens in the middle of bold tags. Normal unformatted text seems to break fine. You’re not seeing it because the screen is too large in your screenshot. It only happens on that page at 800px or below.
One example would be this page at 800px wide view point. You’ll see “alma” on it’s own line with nothing next to it while the rest of the tag gets pushed down. Meanwhile “Awards/Competitions: 1st” extends beyond the column width when there could be a line break after the colon.
You’ll also get it on this page at 770px wide:
“Hamlet Overture” will go over the column width instead of breaking after “Hamlet”. It kind of causes issues with columns that have inline elements like in them.
We can close it.
Whoa! Thanks man. That’s crazy. I’ll figure it out from here. Amazing work!
So I used that to replace both previous code snippets and it works to reverse the direction correctly but it doesn’t do anything to limit it to one category. So I know it’s working. If I remove it, the post order reverses to the original. But still shows all portfolio items. We’re talking about the arrows to the right and left of the portfolio items that show up on hover, with the thumbnail of the next portfolio item. Class “avia-post-nav” stuff, right?
Ok, the snippet to reverse the next/prev buttons works! But still no go on the limiting to the same category. I made a new portfolio item and put it in it’s own category. No other portfolio items with that category at all. And it still shows the next button and just goes through all portfolio items:
I’m using
add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod'); function avia_post_nav_settings_mod($settings) { if(is_singular('portfolio')) { $settings['taxonomy'] = 'portfolio_entries'; $settings['same_category'] = true;} return $settings; }
The full functions.php is:
<?php add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1); function avia_change_postgrid_excerpt_length($length) { $length = 300; return $length; } add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod'); function avia_post_nav_settings_mod($settings) { if(is_singular('portfolio')) { $settings['taxonomy'] = 'portfolio_entries'; $settings['same_category'] = true;} return $settings; } add_filter( 'avia_post_nav_entries', 'enfold_customization_postnav', 10, 2); function enfold_customization_postnav($entries, $settings) { $entries['prev'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']); $entries['next'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']); return $entries; }
Hm, no go. When I add just the first snippet, there’s no change. Still getting all portfolio items in the left/right arrows. When I add the second snippet as well, the arrows completely disappeared. If I add just the second one, there are no arrows at all.
No, that doesn’t seem to make any change. I’m still getting arrows to go through all portfolio items. But I also need to reverse the previous/next arrows which is why I’m using the first code snippet.
I was able to get it to work in all browsers by just setting the volume to 0 in layer slider. I couldn’t get it to autoplay at all using YouTube. But I think no volume is ok.
-
AuthorPosts