Forum Replies Created
-
AuthorPosts
-
Hi
There was a little mistake in the code that prevented to share on Whatsapp when you were opening the post from Facebook.
I’ve changed:
=> “https://api.whatsapp.com/send?text=url=%5Bpermalink%5D”,
into
=> “https://api.whatsapp.com/send?text=%5Bpermalink%5D”,
but you can also use
=> “https://api.whatsapp.com/send?text=I want to share this post with you or any other text [permalink]”,Sorry guys
Add this code in Quick CSS
#top #wrap_all .av-social-link-whatsapp:hover a { color: #fff; background-color: #25D366; }
- This reply was modified 5 years, 6 months ago by manurimini.
Hi OlonamZaid, Jarmo and Enfold Team
If you want to share a post or page on Whatsapp you have to change the line
$args['Whatsapp'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "https://whatsapp.com/share?text=[title]&url=[permalink]");
into
$args['whatsapp'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "https://api.whatsapp.com/send?text=[permalink]", 'label' => __("Share on Whatsapp",'avia_framework'));
otherwise like you reported the link will open up the whatsapp core website.
It works for me. Tested on several devices, but I’m only a graphic designer not a programmer. Hope this will help.
Best RegardsHere the code I use (functions.php in child theme)
// Register new icon as a theme icon add_filter('avf_default_icons','avia_add_custom_icon', 10, 1); function avia_add_custom_icon($icons) { $icons['whatsapp'] = array( 'font' =>'rockets', 'icon' => 'uf232'); return $icons; } //Adjust icons add_filter('avia_filter_social_icons', 'avia_filter_social_icons_mod', 10, 1); function avia_filter_social_icons_mod($icons) { $icons['Whatsapp'] = 'whatsapp'; return $icons; } //Add items on the social share section add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1); function avia_add_social_share_link_arguments($args) { $args['whatsapp'] = array("encode"=>true, "encode_urls"=>false, "pattern" => "https://api.whatsapp.com/send?text=[permalink]", 'label' => __("Share on Whatsapp",'avia_framework')); return $args; }
Pay attention to put the right icon with the font-family you are using: array( ‘font’ =>’font-family‘, ‘icon’ => ‘the one you choose‘);
- This reply was modified 5 years, 6 months ago by manurimini.
Hi Rikard
thank you for your reply. I’m sorry for my poor English.
What I meant was if I click on a link in a page, it should load the new page and then scroll to the specific div element or first load the #top anchor and then after a delay scroll to given anchor position. There is the plugin Guenni007 suggested, but I would rather prefer a function to put in functions.php.
Less (plugins) is better :)- This reply was modified 5 years, 6 months ago by manurimini.
Hi Rikard
Actually yes. Can you or Ismael or Yigit give me a js to postpone the anchor link after the page is loaded or to put the ‘scrolling to anchor link’ in footer? Thank you
Best Regards
ManuThank you Guenni007. I will give the plugin a try, but it would be nice to have a js doing it to put in functions.php.
Parhaps a solution could be to shift the scrolling when clicking on anchor links in footer in order to load the page before.- This reply was modified 5 years, 6 months ago by manurimini.
Dear milano24ore
Grazie, but we had yhe possibility to change the categories with Quick Edit also before WP5 and for all the themes. With Quick Edit you cannot add new Categories, you have to add them in Portfolio Categories and then you can choose them in Quick Edit. It is faster if you have the possibility to add and choose Categories while you’re preparing your Portfolio Item, like you can do with post. I think that maybe something went missing in portfolio.php, because in the Post section it’s working.
Thank you anyway.Hi
I have the same problem. The portfolio categories are not shown in the portfolio item setting. If I install the Classic Editor plugin they appear again.
Best Regards
ManuSOLVED:
/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio/portfolio.php
Change line 652
$output .= !empty($excerpt) ? “<div class=’grid-entry-excerpt entry-content’ “.avia_markup_helper(array(‘context’=>’entry_content’,’echo’=>false, ‘id’=>$the_id, ‘custom_markup’=>$custom_markup)).”>”.$excerpt.”</div>” : ”;
in
$output .= !empty($excerpt) ? “<div class=’grid-entry-excerpt entry-content’ “.avia_markup_helper(array(‘context’=>’entry_content’,’echo’=>false, ‘id’=>$the_id, ‘custom_markup’=>$custom_markup)).”>”.do_shortcode($excerpt).”</div>” : ”;I have the same problem
Hi Nikko
Thank you for the quick reply.
I’ve asked my hosting provider to give me a new server, because the one I’m working with was bought many years ago and maybe the problems I’m having also with videos depend of that.
So before giving you an access I will check the new server.
Since I was asking the change today it will take a couple of days for the DNS to work.
If the problems will persist after the migration to the new server I will give you full access.
I’ll contact you next week after checking the new server to let you know.
Thank you so much
You are a great team
Best Regards
ManuFebruary 28, 2018 at 12:53 pm in reply to: video-player shows only the control bar with self hosted videos #919008As I wrote in the previous thread I’ve found this css code in another thread and it seems to solve the issue:
.mejs-container { max-height: 100% !important;}
But I don’t get a preview image, only a black background.
I would also like a fullscreen button, which is not provided.February 27, 2018 at 1:10 pm in reply to: self hosted Video display problems (even after updating to Enfold 4.2.4) #918421Thank you Doron
But I don’t get a preview image, only a black background. Have you solved that too?
Is there a way to have a fullscreen button for selfhosted videos in Enfold?- This reply was modified 6 years, 10 months ago by manurimini.
I found this css code in another thread and it seems to solve the issue:
.mejs-container { max-height: 100% !important;}
But I don’t get a preview image, only a black background.
I would also like a fullscreen button, which is not provided.- This reply was modified 6 years, 10 months ago by manurimini.
I have the same problem. Video player of my self hosted videos now all of a sudden show only the control bars (a horizontal bar with the control elements and part of the play button in the midle). Enfold Version: 4.2.4
Please HelpJanuary 29, 2018 at 3:30 pm in reply to: Masonry gallery with limited images but all pics visible in lightbox #904279Please Ismael give us a function to do this. It would be really nice to show all the images in the lightbox without clicking on load more. You are the genius of code, we trust in you :)
Hi Basils
Sorry to disagree with you but I think it is an issue coming out with the 42 release and not a Safari issue. The background video in Safari is showing perfectly in your old color section exemple. See “This is a color section with background video and some content elements”:There are a lot of problems now with videos in background on color sections and I hope Kriesi will fix them as soon as possible
https://kriesi.at/support/topic/video-background-broken-in-enfold-4-2/
Let me know if the issue will be fixed soon or if I have to buy an other theme that works with videos in background.
Thank youDecember 21, 2017 at 3:26 pm in reply to: Enable Video Controls Pause/Play w/background video #891162I was really hoping to have an answer
1 – Autoplay in Safari doesn’t work with or without CSS
2 – If without CSS the background video of the color section is not working in Safari (it appears a black Youtube button but it doesn’t work). See http://enfold.fabiobaldanello.com/bfor4/
3 – On mobile without CSS the video is not starting, but this is not a problem because I can do in case a color section only for mobiles.Thank you
December 19, 2017 at 1:42 pm in reply to: Adding tracking code to the header on a single page #890475Hi
How can I use the function for a portfolio post?
I have tried
function enfold_add_facebook_pixel(){
if is_single($post = ‘5412’); {
but is breaking the website
Thank youSolved Thank You Anyway
function ava_fb_px_conversion(){
if ( is_single( 5412 )) {
?>
<!– Facebook Pixel Code –>- This reply was modified 7 years ago by manurimini.
December 18, 2017 at 12:46 pm in reply to: Enable Video Controls Pause/Play w/background video #889993Hi
As I wrote above {pointer-events: none;} given to the .container disables all the pointer events of the color section with a video in background if you add the css of Josue.
I couldn’t find a class or an id to replace .container and still make the Youtube buttons appear into the color section without affecting other buttons.
So I gave to my full width button the command to restore the pointer events and now it works (http://enfold.fabiobaldanello.com/bfor3/)
#top .avia-button-fullwidth {
pointer-events: visible;
}I still have some issues
1 – Autoplay in Safari doesn’t work with or without CSS
2 – If without CSS the background video of the color section is not working in Safari (it appears a black Youtube button but it doesn’t work). See http://enfold.fabiobaldanello.com/bfor4/
3 – On mobile without CSS the video is not starting, but this is not a problem because I can do in case a color section only for mobiles.Thank you
- This reply was modified 7 years ago by manurimini.
December 16, 2017 at 6:09 pm in reply to: Enable Video Controls Pause/Play w/background video #889613Ok I had to remove #top and insert instead the page id
Now you can see the differences between the two pagesIn bfor2 if you go over the full width button you will see the hover effect and if you click it you will find a mailto, but you will not be able to stop the video (at least in Firefox and Chrome. In Safari is a mess like it shows the youtube buttons which are not supposed to be there).
Otherwise in bfor3 you will be able to stop the video and use the Youtube buttons but the avia full width button doesn’t work anymore.Beside (but very important) without changing the section.php file (‘video_controls’ => ‘disabled’) the background video of the color section is not working in Safari (it appears a black Youtube button but it doesn’t work). See bfor4 (http://enfold.fabiobaldanello.com/bfor4/). If you change the file ‘video_controls’ => ”, and add the css the video can be played but autoplay doesn’t start in Safari and the buttons doesn’t work. See bfor3 (http://enfold.fabiobaldanello.com/bfor3)
On mobile devices (Android) appears the red play button of Youtube but it doesn’t work unless you don’t change the file section.php (‘video_controls’ => ‘disabled’) and add the css.
Thanks again for your help
- This reply was modified 7 years ago by manurimini.
December 16, 2017 at 5:51 pm in reply to: Enable Video Controls Pause/Play w/background video #889601Sorry Mike
I tried to write the CSS of the two pages with the page id only for the second one but something went wrong.
Let me check the CSS again so that you can see the differences between the two pagesDecember 16, 2017 at 5:44 pm in reply to: Enable Video Controls Pause/Play w/background video #889590this is the page without pointer-events: none
this is the page with pointer-events: none
Thank you for your help Mike- This reply was modified 7 years ago by manurimini.
December 16, 2017 at 2:35 pm in reply to: Enable Video Controls Pause/Play w/background video #889541The pointer-events: none; disables all the pointer events of the color section since you give it to +.container. So if you have a button in it it will not work anymore. Is there a way to to have the video controls without loosing all the others?
I have also changed video_loop to false but the videos still loop. Actually this is not so important, I need first to figure out how to use the pause button on videos without loosing the controls of the other buttons.
Thank you guys for the wonderful theme- This reply was modified 7 years ago by manurimini.
-
AuthorPosts