Forum Replies Created
-
AuthorPosts
-
Hi Rikard,
sorry for the late reply…
I am using the layout builder. I created several content tabs. I place the image elements in the content tab.
Today I realised that the video element might also have some troiubles if placed inside the content tab. It works fine with the layout builder on other pages but returns an error message if placed in the content tab: Media error: Format(s) not supported or source(s) not found. The URL is fine, video has about 40MB. Can you check both issues?
Many thanks
CDecember 20, 2017 at 9:06 am in reply to: template modification – query if shortcode is used #890709Hi Jordan,
thanks – topic can be closed.Have a good day!
ChrisDecember 19, 2017 at 5:26 pm in reply to: template modification – query if shortcode is used #890567solution for anyone with same challenge (better solution might be available). It seems the avia shortcode is not treated as wordpress shortcode….
//check if we got a layerslider global $wpdb; // Table name $table_name = $wpdb->prefix . "layerslider"; // Get slider $slider = $wpdb->get_row("SELECT * FROM $table_name WHERE id = ".(int)$atts['id']." AND flag_hidden = '0' AND flag_deleted = '0' ORDER BY date_c DESC LIMIT 1" , ARRAY_A); and then you can make your query: if ( in_category('yourcategory') && !empty($slider)) {do something}
Best Christoph
December 19, 2017 at 1:25 pm in reply to: template modification – query if shortcode is used #890465Hi Victoria,
I really enjoyed the quality of support in the past for some technical questions (especially Isamel is very capable to lead into the right direction or provide a straight solution right away).
My question is a bit linked to this post: https://kriesi.at/support/topic/using-shortcode-in-template/
the only difference is that instead of echoing a shortcode in the template I would like to check if the shortcode is used.
There is already a WordPress function:
`<?php
$content = ‘This is some text, (perhaps pulled via $post->post_content). It has a [gallery] shortcode.’;if( has_shortcode( $content, ‘gallery’ ) ) {
// The content has a [gallery] short code, so this check returned true.
}
?>
What I need to know is how to query the use of the layerslider (is it just [avia_layerslider] or with ID etc.). Anything else I mentioned in my previous post can be managed by myself.
So I don´t think it´s that complicated to answer and I am not asking for a customization of the theme.
Thanks for your help!
Best regards
ChristophDecember 19, 2017 at 9:12 am in reply to: template modification – query if shortcode is used #890373Hi Victoria,
in particular this is to promote events which are organised in a category. Depending on the type of event 2 scenarios can occur: 1. default layerslider (which is implemented in the template-builder.php via do_shortcode) 2. for some events an own slider set shall be used. 90% of the events posts are using the default slider so it makes sense to hardcode it for usabuility reasons for my customer – however, there should be the option to override this by using a slider page builder for some special events posts.
Thanks ChristophHi,
sorry for my late reply due to vacations..I followed all the steps suggested but the language switcher sticks to the upper left corner. I tried to place it within the “inner-container” through adding this code in the child helper-main-menu.php:
$output .= "<div class='inner-container'>"; $output .= "<div id='switch'>"; do_action('wpml_add_language_selector'); $output .= "</div>";
This does not work. Can you help pls. The desired location of the language switcher is above the main menu but not in a second top bar menu.
Many thanks.Hi,
do you mean that I need to change back to the original Enfold code => save => copy paste the modifications => save…
ThanksHi Ismael,
followed the instructions on the post. Enfold has been updated to the latest version. I can place the language switcher flexibel in posts / pages, but it does not work in the header.Sent you details by PN
ThanksHi Andy,
thanks for your reply. Sent you a private note.
Tks. -
AuthorPosts