Forum Replies Created

Viewing 30 posts - 4,921 through 4,950 (of 11,509 total)
  • Author
    Posts
  • in reply to: Lightbox dont appear on chilkd theme #1231784

    the copy of the header.php is only needed if you got changings on that file. The reason why this is mentioned in older posts is that there are some changings in Enfold History on that header.php concerning this lightbox issue – and those who had older copies of the versions of the header.php need to think of updating that header.php. ( Guess it was from 4.6.3 on ).
    If you do not have changings in the header.php you can erase the child-theme file.

    Is the modal checkbox is set on: Dashboard – Enfold Child – Theme Options: “Lightbox Modal Window”

    in reply to: single image lightbox problem #1231678

    by the way – nice sideeffect is that you can group images in different color-sections with that method.

    if you have images inside a text-block element – you can edit those images. Insert then into the link css class field – your group-x you like

    by this case you had to add on the code above one line – because the class: group-x goes directly to the lightbox-added class – so there is no space between the classes – both are on the same anchor.
    ( on the image alb the group class is on the parent element )

            $('.lightbox-added').each(function(index, element){
              	$('.group-'+index+' .lightbox-added').attr('data-group', index);
    		$('.group-'+index+'.lightbox-added').attr('data-group', index);
    	});

    see again on the bottom of the test-page: https://webers-testseite.de/lightbox-grouping/

    in reply to: Full Width 50/50 Column (DE) #1231639

    Wenn du ein Grid-Row nutzt, dann wird per Default Wert dir zunächst immer die 1/2 1/2 Variante angeboten.
    Standard Werte sind aber auch für die Zellen ein Padding von 30px – das kannst du auch innerhalb des ALB selbst ändern.
    Hintergrundbilder sind davon natürlich nicht betroffen, die füllen die Zelle aus.

    in reply to: Video controls don't show up on full width slider #1231632

    but your video is not a self hosted one?

    in reply to: Edit the logo link #1231567

    what you are inserting here is what the link should be opend:

    add_filter('avf_logo_link','av_change_logo_link');
    function av_change_logo_link($link){
        $link = "https://kriesi.at";
        return $link;
    }

    except you have different entries on your installation or in htaccess file. Then it will redirect to that url style.
    even in wp-config can be different settings.
    What about your : Dashboard – Settings – General : WordPress Address (Url) and Site Address (Url)

    your search results on google link to the non-www version ( you can enter that on Googel Search Console )

    in reply to: Sticky full width menu with columns #1231565

    all those alb element do have names – it is easy to mention that? Fullwidth Sub Menu

    And no – you didn’t explain it not well – you did explain it wrong : because

    My menu is a mega menu and to make it multiple columns, I checked “This column should start a new row” checkbox on one of my menu items

    As described above not that mark in “start a new row” checkbox indicates a new column. A column is a column – and a row a row.

    But sorry to say that – then you have to wait for the mods to look in here – because as a participant I can’t see the private content.

    in reply to: Sticky full width menu with columns #1231541

    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.

    in reply to: single image lightbox problem #1231486

    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/

    in reply to: Edit the logo link #1231456

    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
     */

    PS : 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 }
    }
    in reply to: video load in lightbox #1231454

    Obviously, I guess that’s what it was.

    in reply to: Insert DIV Before Page Content (Single Page) #1231296

    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.

    in reply to: Maintenance mode – SO not allowed #1231289

    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:

    thanks 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.

    in reply to: Insert DIV Before Page Content (Single Page) #1231279

    indeed it will be best to see the page it concerns

    in reply to: Maintenance mode – SO not allowed #1231116

    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.

    in reply to: Maintenance mode – SO not allowed #1230877

    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.

    in reply to: Order posts within a category by alphabet #1230866

    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 sorting 

    Under the filters – you will have then :

    nice – 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.

    in reply to: Icons in bullets #1230771
    in reply to: video load in lightbox #1230706

    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=1

    But 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 4 years, 12 months ago by Guenni007.
    in reply to: image alt in masonry gallery #1230587

    Hey Mike – when will the next update be issued?

    in reply to: video load in lightbox #1230569

    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=1

    in reply to: sidebar and fullwidth #1230564

    Fü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 4 years, 12 months ago by Guenni007.
    in reply to: sidebar and fullwidth #1230554

    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 4 years, 12 months ago by Guenni007.
    in reply to: sidebar and fullwidth #1230540

    Can you link to that demo page please?

    in reply to: Translucent Buttons with background image example #1230517

    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 4 years, 12 months ago by Guenni007.

    yes – 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. pp

    in reply to: image alt in masonry gallery #1230328

    Well – 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 4 years, 12 months ago by Guenni007.
    in reply to: Remove slider arrow only one page #1230324

    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.

Viewing 30 posts - 4,921 through 4,950 (of 11,509 total)