Forum Replies Created
-
AuthorPosts
-
Really? Why can’t we adjust the functions file, like we did with the previous code? The previous code (that I posted above) used to work. Worked perfectly. Now it sounds like a line of code changed. Can you please provide what that new code looks like, that we can easily drop into our child theme???
Use the Blog Post widget does not work. Post publish date and sorting do not appear, which are critical for listing our links.
Correct – we can not put this directly in the template file; it must be added to the child functions theme. Please provide the code that allows us to embed this into functions.php.
This is critical for us, too. We need this to work again with the Magazine format (need the filtering, tabs available).
This is what we previously had in our CHILD functions file. What should we change it to so it works now?
function avia_custom_link_content_filter($content) { //retrieve the link for the post $link = ""; $pattern1 = '$^\b(https?|ftp|file)://[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|]$i'; $pattern2 = "!^\<a.+?<\/a>!"; $pattern3 = "!\<a.+?<\/a>!"; //if the url is at the begnning of the content extract it preg_match($pattern1, $content , $link); return $link[0]; }
thanks!
Hello – is it possible to add this script to a child theme?
November 6, 2018 at 12:32 am in reply to: Autoplay: start videos when they appear in viewport #1030121Hi – checking on this since several years have gone by since my initial question.
Wondering if we can add some sort of code ot get the Easy Slider video to autoplay only when showing in the viewport. I realize we can still use the LayerSlider, but their settings are complex and not easy for our clients to navigate. Would love for the simple Easy Slider wizard to have this functionality.
Thanks!
September 6, 2018 at 7:31 pm in reply to: Change background color and overlay color on Masonry element #1006790Thank You, Yigit! It worked. ;)
Thank you Ismael, this worked.
September 6, 2018 at 3:28 pm in reply to: Change background color and overlay color on Masonry element #1006649ok – thanks, code is now removed.
Droid Serif is already in the dropdown list of fonts available to the theme, so I shouldn’t need to upload a second version, correct?
Regardless, I have this in my functions file:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Droid Serif'] = 'Droid Serif:400'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Droid Serif'] = 'Droid Serif:400'; return $fonts; }
And am using !important to the text css to try and override the theme choice fonts, but not having any luck.
Thanks~
- This reply was modified 6 years, 2 months ago by kristenangel.
September 5, 2018 at 9:01 pm in reply to: Change background color and overlay color on Masonry element #1006316Thanks Victoria—unfortunately this doesn’t work. When a new post gets added, the masonry item # changes. I need the tiles to always be the colors listed on that order, so the first tile will be yellow, second tile always cyan, etc. Is there a way to apply nth-child to this css to modify the background colors?
September 4, 2018 at 4:38 am in reply to: Change background color and overlay color on Masonry element #1005257Hi Victoria,
Thanks for helping. I was on vacation over the weekend; back now! I’ve removed the code for you to begin testing.August 30, 2018 at 3:35 pm in reply to: Change background color and overlay color on Masonry element #1003682Sure – link below.
Currently I have the six squares on the homepage in yellow, and two are appearing in a light blue (these two images have background featured images – the css is writing the blue over the picture). The following code is making it appear this way:
.main_color .container .av-inner-masonry-content:nth-child(1) { background-color: #FFD035 } .main_color .container .av-inner-masonry-content:nth-child(2n+0) { background-color: #95D4F4 !important } .main_color .container .av-inner-masonry-content:nth-child(3n+0) { background-color: #28AC50!important } .main_color .container .av-inner-masonry-content:nth-child(4n+0) { background-color: #F26722!important } .main_color .container .av-inner-masonry-content:nth-child(5n+0) { background-color: #0177C1!important; color: #fff; }
…which is NOT correct. I am looking to make each box a different color, whether it is an overlay on an image or jsut a background color, it should be the size different colors as listed above.
- This reply was modified 6 years, 2 months ago by kristenangel.
Hi – I’m a little disappointed since this feature is shown on the Enfold template. Cross-sells appear on the cart page on the main Enfold site; why isn’t it available for us to use too? Please remove it from your template if it is not actually available.
Cross sells visible here (once you’ve added an item to the cart): https://kriesi.at/themes/enfold/cart/
Add this event to your cart: https://1000-petals.com/event/wellness-2-jan-5-cedarrapids/
You can do so on the bottom of the left sidebar. Make sure you enter your info when the short form appears.On the product page, I’ve added the cross-sell items in the Product Data / Linked Products panel.
When you review your cart, cross sells do not appear.
Hi – the shop item (in this case, the event ticket) needs to be added to the cart on your computer for you to see it on your cart.
Login info below. Thanks.
October 12, 2017 at 2:54 am in reply to: Woocommerce/enfold/events tickets plus is not displaying currency position #863106Ok, for those with the same issue – digging through support forums and found this on The Event Tickets Plus (MOdern Tribe) website. Add this to your functions file:
add_filter( 'tribe_reverse_currency_position', function(){ return null; } );
This will force all currency symbols to the left of the price. They said this is a workaround until their next release.
August 26, 2017 at 7:59 pm in reply to: Vimeo error – Oops! The embed code for this video is not valid. #844429We really need the Vimeo videos to appear again; this is a huge issue on my client’s site at the moment.
BUMPing has worked for me in the past; the guys have always been very helpful with a faster turnaround than this. Hoping someone can look into this issue. I can’t find any other threads relating to this exact issue in the accordion.
Summary of issue: I’ve placed a Vimeo video link in an accordion panel’s wysiwyg several months ago. The videos used to open properly, but we just noticed that the links are no longer working, and we get an error saying “Oops! the embed code for this video is not valid”. See above for details.
August 16, 2017 at 3:50 pm in reply to: Vimeo error – Oops! The embed code for this video is not valid. #839945*bump*
Hi Rikard,
This issues is happening for me as well. I have a few links in an accordion wysiwyg. They are written like this (code view):
PreK LessonNo matter what, the video is opening in a lightbox (not a new window) and I get the error “Oops! The embed code for this video is not valid.”
This used to work. Can you let me know if there is a new shortcode or something else I should try for linking to Vimeo videos (through an accordion wysiwyg; not through the regular layout builder)?
Thanks,
KristenHi there,
I’m having an issue very similar to this, but because my js starts with$(document).ready(function() { /*--------------------------------------- Circle animation ---------------------------------------*/ // Create canvas $('.dots').append('<canvas id="dot_canvas"></canvas>');
It’s not working.
Here’s my codepen: https://codepen.io/angeldesign/pen/mwVEvm
Do I need to start or end the string (that Ismael posted above) differently to accommodate canvas?
I there, I’m having this same issue. The “Random” masonry posts are not random.
December 19, 2016 at 11:53 pm in reply to: Change portfolio breadcrumbs to only display Breadcrumb parent page #726348That worked!!! Thank you so much!
December 19, 2016 at 11:39 pm in reply to: Change portfolio breadcrumbs to only display Breadcrumb parent page #726337I’m assuming therre’s a typo in this—are those arrays supposed to both be (7854,46)? They are returning the same result as of now.
I have updated the code to include correct titles:
add_filter('avf_title_args', 'fix_single_portfolio_title', 10, 2); function fix_single_portfolio_title($args,$id) { if(is_singular('portfolio') && !is_single(array(7854,46))){ $args['link'] = get_home_url() ."/work/"; $args['title'] = "Work"; } elseif(is_singular('portfolio') && is_single(array(7854,46))) { $args['link'] = get_home_url() ."/who-we-are/"; $args['title'] = "Who We Are"; } return $args; }
December 19, 2016 at 9:40 pm in reply to: Change portfolio breadcrumbs to only display Breadcrumb parent page #726300—bump—
December 19, 2016 at 8:41 pm in reply to: Autoplay: start videos when they appear in viewport #726271For anyone who sees this post – you can now set this by using LayerSlider WP’s autoplay video in viewport settings.
December 16, 2016 at 4:41 am in reply to: Change portfolio breadcrumbs to only display Breadcrumb parent page #725145No, we won’t be adding more posts with the team category.
In order to get posts to have the “What we know” page title, I created a copy of single.php in my child theme and added this under the get_header() call:
$title = __('What We Know', 'avia_framework'); //default blog title - CHANGED $t_link = home_url('/what-we-know'); $t_sub = ""; if(avia_get_option('frontpage') && $new = avia_get_option('blogpage')) { $title = get_the_title($new); //if the blog is attached to a page use this title $t_link = get_permalink($new); $t_sub = avia_post_meta($new, 'subtitle'); } if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(array('heading'=>'strong', 'title' => $title, 'link' => $t_link, 'subtitle' => $t_sub));
Maybe there is a way to do this for ‘team’ portfolio items?
December 15, 2016 at 11:12 pm in reply to: Change portfolio breadcrumbs to only display Breadcrumb parent page #725069*bump*
December 14, 2016 at 4:27 pm in reply to: Change portfolio breadcrumbs to only display Breadcrumb parent page #724354Sure – login info below.
December 14, 2016 at 5:37 am in reply to: Change portfolio breadcrumbs to only display Breadcrumb parent page #724091Thanks, Yigit. It’s very close… half of it is working. With a few modifications, I was able to link the portfolio items back to the Work landing page. However, the Team category items are using the code for work. Probably because the && !in_category(”) was removed… however I can’t set it to just one category because the portfolio items span many categories. Is there an if/then statement if it is NOT in the category ‘team’?
Here’s what I used:
add_filter('avf_title_args', 'fix_single_portfolio_title', 10, 2); function fix_single_portfolio_title($args,$id) { if (is_singular('portfolio')){ $args['link'] = get_home_url() ."/work/"; $args['title'] = "Work"; } elseif(is_singular('portfolio') && !in_category('team')){ $args['link'] = get_home_url() ."/who-we-are/"; $args['title'] = "Who We Are"; } return $args; }
I’m thinking if I can add something into this calling all other categories other than ‘team’, it will work.
if (is_singular('portfolio')){
Thanks so much for your help!- This reply was modified 7 years, 11 months ago by kristenangel.
-
AuthorPosts