Forum Replies Created

Viewing 30 posts - 5,401 through 5,430 (of 11,983 total)
  • Author
    Posts
  • 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 5 years, 7 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 5 years, 7 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 5 years, 7 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 5 years, 7 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 5 years, 7 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.

    to 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);
    in reply to: easy slider caption on the right #1230256

    ich werde dich per E-Mail nochmal kontakten.

    in reply to: Copy/Clone slide Caption Content to div outside slider. #1230252

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

    in reply to: Cropped images on mobile version #1230213

    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 ?

    in reply to: Background Image on iPad Stretched #1230202

    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 )

    in reply to: How to blur the background image in a color section? #1229760

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

Viewing 30 posts - 5,401 through 5,430 (of 11,983 total)