Forum Replies Created
-
AuthorPosts
-
Hi,
I would like to apologize for the late response. This css code should add an active menu indicator to the sub menu like in the main menu.
#top .av-subnav-menu > li.current-menu-item a { border-bottom: 1px solid #911a20; }
Use this one if you want to place the indicator at the very bottom.
#top .av-subnav-menu > li.current-menu-item { border-bottom: 1px solid #911a20; }
Best regards,
IsmaelHi,
I’m not really sure what you meant by that. Can you give us a screenshot or a mock up?
Best regards,
IsmaelDecember 10, 2018 at 3:45 am in reply to: Portfolio Grid Abstand / Padding / mousover effect #1042872Hi,
Try to adjust the padding of the parent column.
.flex_column.av_one_full.no_margin.flex_column_div.av-zero-column-padding.first.avia-builder-el-10.el_after_av_hr.el_before_av_section.avia-builder-el-last { padding: 0 10px; }
Best regards,
IsmaelHi,
Thank you for using Enfold.
Are you using a multilingual plugin? This other plugin might help: https://wordpress.org/plugins/hreflang-tags-by-dcgws/
Best regards,
IsmaelHi,
This css code should help.
#top .av-submenu-container.av-sticky-submenu { z-index: 10 !important; }
It places the sub menu below the main menu and above the sections.
Best regards,
IsmaelHey Switzer,
Thank you for using Enfold.
That filter returns an array with the api url and the api version without the arguments, both are strings, so you can’t add arguments by returning or merging it in the array. You have to append the arguments as a query string in the api_url or “source” value.
add_filter( 'avf_google_maps_source', 'pi_google_maps_url', 10, 1 ); function pi_google_maps_url(array $api_src){ // update the current google maps api version $api_src['version'] = '3.35'; // add delicious new arguments $pi_args = array( 'libraries' => 'places', 'language' => 'de', 'region' => 'DE' ); $api_src['source'] = $api_src['source'] . '?' . http_build_query($pi_args); return $api_src; }
In the latest version, we’ll set the api version to release channels instead of the actual version number, so you don’t have to filter it.
// https://developers.google.com/maps/documentation/javascript/versions
Best regards,
IsmaelHi,
You can add this code somewhere in that file.
$the_id = 23; $post = get_post( $the_id ); $content = Avia_Builder()->compile_post_content( $post ); echo $content;
If you want to add it on a single post page, you have to modify the single.php or the includes > loop-index.php file.
Best regards,
IsmaelHi,
The lightbox script will automatically open videos inside a lightbox even without the iframe parameter. Try to remove it and then check the page again.
Best regards,
IsmaelHi,
I did add some code I found on Relevansi’s site
That is the same code from the docs, so you have to remove it if Relevanssi is disabled. And you’re probably checking a cached page at first.
SEARCH PAGE WORKS!!! Ajax dropdown works? ??? !!! ??? :-)))
I can’t see any posts on the search results page. Is it working on your side? I think my magic kebab didn’t work.
Best regards,
IsmaelDecember 7, 2018 at 11:51 am in reply to: Customizing messages & fixing behaviour of MailChimp content element #1041993December 7, 2018 at 11:45 am in reply to: How to configurate Google Captcha in Contact Form because of spamming problem #1041992Hi,
My bad. That plugin integration is fairly new, so I haven’t tested it that much. Fortunately, I found the error.
Just replace “$public_key” with “$secret_key” and “$secret” with “$secret_key”. It should return the validation response properly after that.
Best regards,
IsmaelDecember 7, 2018 at 11:37 am in reply to: Autoplay Vimeo video added to homepage with Avia Video block #1041988Hi,
Looks like you can’t play the video with sounds unless the user interact with the video first. This script sets the volume to 100% but then the browser automatically pause the video because there’s no interaction.
add_action('wp_footer', 'ava_custom_vimeo_api'); function ava_custom_vimeo_api(){ ?> <script src="https://player.vimeo.com/api/player.js"></script> <script type="text/javascript"> document.addEventListener( "DOMContentLoaded", () => { var player = null; let slide = document.querySelector('.av-video-slide'); let iframes = slide.getElementsByTagName('iframe'); for (var i = 0; i < 1; i++) { player = new Vimeo.Player(iframes[i]); } player.on('play', function() { console.log('playing'); player.setVolume(1); }); // player.on('pause', function() { // console.log('paused'); // player.play(); // }); }); </script> <?php }
This is what you’ll get after setting the volume:
player.js:2 Unmuting failed and the element was paused instead because the user didn't interact with the document before. https://goo.gl/xX8pDD
If you listen for the “pause” event and call the play method there, the browser will pause the video infinitely.
One workaround is to disable the autoplay and then add a caption > button to the slider. Users will then be able to play the video manually. Use this code to trigger the play method when the user click on the slider button.
add_action('wp_footer', 'ava_custom_vimeo_api'); function ava_custom_vimeo_api(){ ?> <script src="https://player.vimeo.com/api/player.js"></script> <script type="text/javascript"> document.addEventListener( "DOMContentLoaded", () => { var player = null; let slide = document.querySelector('.av-video-slide'); let iframes = slide.getElementsByTagName('iframe'); for (var i = 0; i < 1; i++) { player = new Vimeo.Player(iframes[i]); } player.on('play', function() { console.log('playing'); player.setVolume(1); }); slide.querySelector('.avia-slideshow-button').addEventListener( 'click', () => { player.play(); }); }); </script> <?php }
Best regards,
IsmaelHi,
Great! Thanks. A link to that page in the library would be nice.
// https://github.com/KriesiMedia/enfold-library
Best regards,
IsmaelDecember 7, 2018 at 10:49 am in reply to: Hide all portfolio items from internal search results #1041975Hi,
Thanks for the update. Try this filter instead:
add_filter('avf_portfolio_cpt_args', 'avf_portfolio_cpt_args_mod'); function avf_portfolio_cpt_args_mod($args) { $args['exclude_from_search'] = true; return $args; }
Best regards,
IsmaelDecember 7, 2018 at 10:45 am in reply to: Duplicate H1 and meta being displayed on blog posts #1041973Hi,
Ok. Can we access the site then? Please post the login credentials in the private field.
Best regards,
IsmaelHi,
Please use the font face rule as suggest above. You can’t upload non-gooogle-font files to the theme’s font manager.
Best regards,
IsmaelHi,
Can you give us a link to the page in question? Please open a new ticket and post the site url in the private field. We’ll close this one for now.
Best regards,
IsmaelHi,
Have you tried running the shortcode parser? Enable the debug mode, set the parser to the second option and then update the page. This will repair the shortcode structure automatically.
// https://kriesi.at/documentation/enfold/intro-to-layout-builder/#shortcode-parser
Best regards,
IsmaelHi,
Great! Please open a new thread if you encounter the issue again.
Best regards,
IsmaelHi,
You can’t make the whole image visible on smaller screens without distorting the image.
Use this css code to increase the height of the section on mobile view:@media only screen and (max-width: 767px) { #duennesheaderbild { height: 200px; } }
You can also use that code to change the background source:
@media only screen and (max-width: 767px) { #duennesheaderbild { height: 200px; background-image: url( IMAGE URL FOR MOBILE HERE ) !important; } }
Best regards,
IsmaelDecember 6, 2018 at 1:01 pm in reply to: Extend Google Map API Callback aviaOnGoogleMapsLoaded #1041624Hi,
Have you tried using “DOMContentLoaded” instead of “load”? You can put the map inside a color section and then add a Section ID or apply a custom css class attribute to the map element itself.
Best regards,
IsmaelHi,
It works when I use a different image. Did you translate the media files?
// https://wpml.org/documentation/getting-started-guide/media-translation/
Best regards,
IsmaelHi,
I’m not really sure why it redirects. Did you add any custom script before?
Best regards,
IsmaelDecember 6, 2018 at 12:15 pm in reply to: Inserting Google Captcha in the Enfold contact form #1041602Hi,
Thank you for using Enfold.
We created a plugin version of that script. You can find it here: https://github.com/KriesiMedia/enfold-library/tree/master/customizations/enfold-recaptcha
Best regards,
IsmaelDecember 6, 2018 at 12:13 pm in reply to: How Can I pages from multiple demo files to Enfold 2017 demo that I uploaded? #1041600Hi,
You may need to edit the functions.php from your cpanel or via FTP. You can use FileZilla.
Best regards,
IsmaelHi,
page.php file so that it renders after the content?
Edit the includes > loop-page.php file and look for this code:
echo ' <div class="entry-content" '.avia_markup_helper(array('context' => 'entry_content','echo'=>false)).'>'; the_content(__('Read more','avia_framework').'<span class="more-link-arrow"></span>'); echo '</div> ';
Insert the render function below.
Best regards,
IsmaelDecember 6, 2018 at 12:09 pm in reply to: Hide all portfolio items from internal search results #1041597Hi,
Which ones of those items are portfolio? I can only see pages when I use the “marrakech” keyword.
Best regards,
IsmaelHi,
Thanks for the update. The site is displaying properly on my end. Did you remove the browser cache? Please try to hard refresh the page.
// https://www.getfilecloud.com/blog/2015/03/tech-tip-how-to-do-hard-refresh-in-browsers/
And the styling changes when I adjust it.
Best regards,
IsmaelHi,
Thanks for the update. The ajax search is still not working on my end. Did you add this snippet after installing relevanssi?
Please disable it temporarily.
Best regards,
IsmaelDecember 6, 2018 at 11:58 am in reply to: How to configurate Google Captcha in Contact Form because of spamming problem #1041585Hi,
My bad. A single comma is missing. Please download the plugin again or edit the public/class-enfold-recaptcha-public.php file line 127:
"type" => "textarea"
Add a comma:
"type" => "textarea",
And adjust line 187:
$desc = avia_get_options( 'recaptcha_enfold_desc' );
to..
$desc = avia_get_option( 'recaptcha_enfold_desc' );
Best regards,
Ismael -
AuthorPosts