Forum Replies Created
-
AuthorPosts
-
New Columns are sublevel of a mega menu! ( simple drag and drop menu points to a shifted position on menu dialog )
( always click to enlarge the images here )

New rows ( yes rows is the correct term ) start a second line in mega menu.
f.e. : on the test page of enfold : https://kriesi.at/themes/enfold-2017/ the pages menu got 4 columns ( first level sub menu points with a lot of second level submenu entries ) if you go to slider menu list point and set to ( this column should start a new row ) you will have this result:

________
So Example Pages, Example Pages, Slider and Blank Pages are the first level subdomains of the mega menu – and build columns
if a column is set to “start a new row” it will be the first column in a new row.Well it will be best to see the page it concerns.
If the other images have no link to the lightbox – they are not in the gallery – see here – only the one on the left bottom corner has lightbox link.
https://webers-testseite.de/images-with-no-link/but if you have more links to lightbox – you only can state lightbox groups for the lightbox gallery.
( or put them in different color-sections will do the jop too)
you can put this to your child-theme functions.php:
( pay attention the code is site specific set to page ID: 123456 – you had to input your page-id on that )// group images for lightbox galleries with custom-class: (group-1, group-2 etc) function handle_lightbox_groups_in_gallery(){ if(is_page(123456)){ ?> <script> (function($){ $(window).load(function() { $('.lightbox-added').each(function(index, element){ $('.group-'+index+' .lightbox-added').attr('data-group', index); }); var groups = {}; $('.lightbox-added').each(function() { var id = parseInt($(this).attr('data-group'), 10); if(!groups[id]) { groups[id] = []; } groups[id].push( this ); }); $.each(groups, function() { $(this).magnificPopup({ type: 'image', mainClass: 'avia-popup mfp-zoom-in mfp-image-loaded', closeOnContentClick: false, closeBtnInside: false, gallery: { enabled:true } }) }); }); })(jQuery); </script> <?php } } add_action('wp_footer', 'handle_lightbox_groups_in_gallery');to prepare your groups then – you have to give to each image alb element the custom-Class: group-1, group-2 etc.
see here – allthough these images are in the same color-section – they open in two seperated galleries.:
https://webers-testseite.de/lightbox-grouping/No You don’t have to have a child theme because of this, but I actually recommend to use one in principle.
You keep a good overview of the changed settings and in case of an update they will be kept.
It was sometimes necessary to rethink some code if there were major changes in the parent theme.These snippets would be placed in the parent theme at the bottom of functions.php just before:
require_once( 'functions-enfold.php');
on that place where the comment is :/* * register custom functions that are not related to the framework but necessary for the theme to run */July 18, 2020 at 7:44 am in reply to: Targeting Phone section in header only on desktop – not working #1231455PS : i would take for min-width on enfold always the even numbers
and: for max-width the odd numbers.
All definitions on Enfold css follow that setting – especially those on 768 and 990
so maybe better to use that switch point for your setting too.@media only screen and (min-width: 768px) { div.phone-info a {color: #fff !important; } #header.header-scrolled div.phone-info a { color: #000 !important } }Obviously, I guess that’s what it was.
You can do it with jQuery in child-theme functions.php – if you like to do that on some pages only
if you like to insert on all single post something it might be better to edit the alb it concerns ( f.e. the index-loop.php) file and have then a child-theme alb element.Yes – I use borlabs cookie – and the point of the imprint and the data protection page you mentioned which are released via the CookiePlugin is implemented there.
As mentioned above, I believe so indeed:If you don’t use cookies or other relevant objects on this site – there is no need for the privacy page
If you have contact information on that maintenance page – there had to be an imprint info.
If such scripts are used – then yes – they must not be active on the corresponding pages.
By the way, many people also make mistakes with the Borlabs cookie when you enable these pages ( imprint / privacy ) , and then e.g. Analytics is active. You can put a foot in it yourself.Most of my pages – and especially those that have to be clean – look like this:
July 17, 2020 at 1:55 pm in reply to: how to load a child-theme avia-default script conditionally #1231282thanks Ismael and – of course you can close the topic now
Too early:
i tested it on shrinking script and:add_action( 'wp_enqueue_scripts', 'wp_change_sticky_header_script', 100 ); function wp_change_sticky_header_script() { wp_deregister_script( 'avia-sticky-header' ); $condition = (isset($options['header_position']) && $options['header_position'] == "header_top"); $condition2 = (isset($options['header_sticky']) && $options['header_sticky'] == "header_sticky") && $condition; avia_enqueue_script_conditionally( $condition2 , 'avia-sticky-header-child', get_stylesheet_directory_uri().'/js/avia-snippet-sticky-header.js', array('avia-default'), $vn, true); }i tought that this is the right code but on my shrinking script i see that this is not working that way.
indeed it will be best to see the page it concerns
Yes – you are right – i didn’t realize that – because i do allways selfhost my fonts.
For google ( youtube and maps ) scripts – they are probably only loaded conditionally, right?
But nevertheless that would be a nice idea to only load essential scripts etc.But you decide which page is shown in Maintenance mode !
So create one – set for example the template to : Blank no header no footer. https://webers-testseite.de/under-construction/
Thats all. : You are GDPR (DSGVO) complient if you do not have a contact information on that page!
( top part of the page)If you have – then you are right – there had to be an imprint info. ( bottom part of that page )
If you do not use cookies or other relevant objects on that page – no need for privacy page ( look to your link – it says only an imprint is needed )
An Imprint is half a page as you can see.there is the code-snippet on the documentation: Link that may help you – to decide on the alb itself.
put the snippet to your child-theme functions.php:
( on my point of view it is enough by the function itself to overwrite a plugable function on parent-theme )// this will insert on the given allowed elements some new Options for sorting function avia_custom_query_extension($query, $params) { global $avia_config; if(!empty($avia_config['avia_custom_query_options']['order'])) { $query['order'] = $avia_config['avia_custom_query_options']['order']; } if(!empty($avia_config['avia_custom_query_options']['orderby'])) { $query['orderby'] = $avia_config['avia_custom_query_options']['orderby']; } unset($avia_config['avia_custom_query_options']); return $query; } add_filter('avia_masonry_entries_query', 'avia_custom_query_extension', 10, 2); add_filter('avia_post_grid_query', 'avia_custom_query_extension', 10, 2); add_filter('avia_post_slide_query', 'avia_custom_query_extension', 10, 2); add_filter('avia_blog_post_query', 'avia_custom_query_extension', 10, 2); add_filter('avf_magazine_entries_query', 'avia_custom_query_extension', 10, 2); add_filter('avf_template_builder_shortcode_elements','avia_custom_query_options', 10, 1); function avia_custom_query_options($elements) { $allowed_elements = array('av_blog','av_masonry_entries','av_postslider','av_portfolio','av_magazine'); if(isset($_POST['params']['allowed']) && in_array($_POST['params']['allowed'], $allowed_elements)) { $elements[] = array( "name" => __("Custom Query Orderby",'avia_framework' ), "desc" => __("Set a custom query orderby value",'avia_framework' ), "id" => "orderby", "type" => "select", "std" => "", "subtype" => array( __('Default Order', 'avia_framework' ) =>'', __('Title', 'avia_framework' ) =>'title', __('Random', 'avia_framework' ) =>'rand', __('Date', 'avia_framework' ) =>'date', __('Author', 'avia_framework' ) =>'author', __('Name (Post Slug)', 'avia_framework' ) =>'name', __('Modified', 'avia_framework' ) =>'modified', __('Comment Count', 'avia_framework' ) =>'comment_count', __('Page Order', 'avia_framework' ) =>'menu_order') ); $elements[] = array( "name" => __("Custom Query Order",'avia_framework' ), "desc" => __("Set a custom query order",'avia_framework' ), "id" => "order", "type" => "select", "std" => "", "subtype" => array( __('Default Order', 'avia_framework' ) =>'', __('Ascending Order', 'avia_framework' ) =>'ASC', __('Descending Order', 'avia_framework' ) =>'DESC')); } return $elements; } add_filter('avf_template_builder_shortcode_meta', 'avia_custom_query_add_query_params_to_config', 10, 4); function avia_custom_query_add_query_params_to_config($meta, $atts, $content, $shortcodename) { global $avia_config; if(empty($avia_config['avia_custom_query_options'])) $avia_config['avia_custom_query_options'] = array(); if(!empty($atts['order'])) { $avia_config['avia_custom_query_options']['order'] = $atts['order']; } if(!empty($atts['orderby'])) { $avia_config['avia_custom_query_options']['orderby'] = $atts['orderby']; } return $meta; } // end of new options on sortingJuly 16, 2020 at 8:11 am in reply to: Lightbox open 2 times with "Portfolio Filter Gallery Premium" Plugin #1230852nice – but if you use the pagename – you had to put it in quotationmarks i guess:
if(is_page('pagename')){
the page id you can find on the body#top container – it has the class page-id-ID on my case above page-id-38198 etc.– yes – and the direct link to it is: https://kriesi.at/documentation/enfold/icon/#icons-are-showing-as-rectangular-boxes-
hm no idea – even if i set the link to open in new window the addendum as described works as expected.:
https://webers-testseite.de/pureinstall/vimeo-test/and even loop will work there:
https://vimeo.com/407573211?iframe=true&autoplay=1&loop=1But even your images do not open in lightbox : https://cce.createdigitalmedia.co.uk/parts/
have you activated the lightbox on enfold ? : Enfold Options – Theme Options : Lightbox Modal Window
-
This reply was modified 5 years, 7 months ago by
Guenni007.
Hey Mike – when will the next update be issued?
what url do you have inserted?
try to add behind the url: ?iframe=true&autoplay=1
f.e.: https://vimeo.com/64927358?iframe=true&autoplay=1Füge mal spasshalber diesen Code in dein Quick CSS und schau was mit der Seitenleiste dann passiert:
#top.page-id-6292 { overflow-x: visible; } .page-id-6292 #wrap_all { overflow: visible; } @media only screen and (min-width: 767px){ .page-id-6292 #after_full_slider_1 .container { display: flex; flex-flow: row nowrap; justify-content: space-between; align-items: flex-start; } .page-id-6292 #after_full_slider_1 .container .sidebar { position: -webkit-sticky !important; position: sticky !important; top: 20px; align-self: flex-start; } }-
This reply was modified 5 years, 7 months ago by
Guenni007.
Wo kommt dieser “pf-content” her ?
Das gehört irgendwie nicht zu Enfold. Kommt das von dem print-friendly plugin?
Wenn du nach dem Slider alles nur in Container packst ( 1/1 etc. ) sollte die Seitenleiste auch rechts erscheinen.-
This reply was modified 5 years, 7 months ago by
Guenni007.
Can you link to that demo page please?
yes – that is just the price for individual wishes. If the developers would consider every single wish here and integrate it into the theme, it would bloat unnecessarily as I think.
This leaves room for own ideas and the pages do not all look the same. The pre-condition for this is, of course, that you have some basic knowledge.
Take a look at the buttons I created based on the existing setting “light transparent”.
I only have to set two classes to get this look. ( One class takes care of the styling and the other class takes care of the color )
Or beneath those glassy buttons the pulsing gradient button – very easy with a bit of @keyframes instruction.https://webers-testseite.de/buttons/
_____________
PS: https://kriesi.at/documentation/enfold/button/#toggle-id-22
and https://kriesi.at/documentation/enfold/button/#toggle-id-23-
This reply was modified 5 years, 7 months ago by
Guenni007.
July 15, 2020 at 6:42 am in reply to: Issues in adding custom code to postslider.php in child theme #1230515yes – that is as you said above the same tree structure of folder. So put in your edited alb file to the shortcodes folder. The code above reflects exactly that structure.
For a lot of other child-theme files this will be enough ( like you tried before ) most of the php files f.e. to have your own child-theme loop-index.php. Just put it in the child-theme includes folder. There is no need to have a code snippet like the one above.
For js files there had to be new loading snippets ( de-register the parent-script – enqueue the new child-theme script) – f.e. avia-snippet-sticky-header.js file to have your own header shrinking etc. ppWell – Rikard is on that right – backgrounds do not tend to have alt attributes – but your lightbox-images do have them if you choose flexible masonry
so it depends on what kind of masonry you have choosen: if you have perfect grid – than this will be as you said.Flexible Masonry: ( if your images have the same size do this)
the image ( that is set to display none ( the source for the background-image) has alt Attribute too ! )

So from an SEO point of view all is done, because even elements set to display: none are crawled.
But yes maybe an alt attribute should be present on lightbox image!
On those little divs with background-image the anchor has title attribute – that is all allowed as global setting:
Global attributes for anchor-links
href
target
download
rel
hreflang
type-
This reply was modified 5 years, 7 months ago by
Guenni007.
yes because it is not that ID:
.page-id-103 .avia-slideshow-arrows { display: none; }try first without !important. if it does not work set it to important.
July 14, 2020 at 3:37 pm in reply to: Issues in adding custom code to postslider.php in child theme #1230323to have your own child-theme alb elements – yes : create a subfolder in your child-theme : shortcodes and put this to your child-theme functions.php:
function avia_include_shortcode_template($paths){ $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; } add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);ich werde dich per E-Mail nochmal kontakten.
July 14, 2020 at 10:42 am in reply to: Copy/Clone slide Caption Content to div outside slider. #1230252Thanks Ismael – I figured there had to be something like that. – Only, of course, this does not include the first slide of the show. Therefore I have to consider the first slide before.
A background-image is a backgroundimage is a background image.
All kidding aside. You could of course set the color section to follow the aspect ratio of the background image, but you run the risk of making the content too large for the container, which would then be cropped / overlapped.
Example: if you have an Iphone 6, the maximum width is about 375px – with a 16:9 picture you will have about 210px height.
With a font size of 16px and 1.5 times the line height per line, this would be 40px – making about 5 lines at 210px.
Everything above that would be too large.Now you could of course set the property of the background image to “contain”, but then, like Ismael, you would have white areas without image.
See responsive color-section on .: https://webers-testseite.de/terve/
on wide screens this maybe ok – but on smaller screens ?Is there also a public link to it, or do you have to keep the site private?
( By the way – if it is a blue pattern – and no photorealistic images – then you can set the pattern to repeat.
A lot of patterns are in this way that they are seamless on repeating them )July 12, 2020 at 11:04 am in reply to: How to blur the background image in a color section? #1229760Does your background-image scroll or is it set to fixed?
(Edit : i ask – because there will be a solution if it is set to scroll.)_____
But however it will be easier to blur it in a graphic programm and upload that blurred image.
-
This reply was modified 5 years, 7 months ago by
-
AuthorPosts



