Forum Replies Created

Viewing 30 posts - 9,901 through 9,930 (of 11,855 total)
  • Author
    Posts
  • in reply to: Use SVG as the logo… #809523

    i see you have inserted the svg in logo field of Enfold Options so only give the img a size in quick css:

    .logo img {
        width: 340px;
    }

    this will be enough on your problem because on shrinking header this solution will work too!

    the 100% will not do the job

    but i can completely recommend that little plugin: SVG-Support
    from the activation of that plugin you can handle svgs like normal images – and with one great advantage – if you like (induces by giving the image a class) the <img src=… is replaced by the svg code instead. This has some great advantages – you can f.e. influence different path in that svg by css – you can make some hover effects etc.

    in reply to: IMPORTANT QUESTIONS WITH CHILD THEME #809522
    in reply to: Hide (av_section_2) section ID in the URL #809504

    i think we must do it via url split .
    so that a jump to the url before the # can be done – and then after it the scroll to the ID can start – than like in my example above without changing that part before the #.

    in reply to: Vimeo not working #808886

    think of your search results page – the headings are white on white

    in reply to: Hide (av_section_2) section ID in the URL #808694

    well for onepage solutions it works with this snippet – but to find a solution which does not change the url ( append #IDs) coming from a different site was difficult.

    function scroll_without_hash() {
    ?>
    <script type="text/javascript">
    jQuery(document).ready(function(){
        jQuery('a[href*="#"]').on('click', function(event) {
            event.preventDefault();
            var hash = this.hash;
            jQuery('html, body').animate({scrollTop: jQuery(hash).offset().top}, 900);
        });
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'scroll_without_hash');

    you can jump from that site to the IDs and the url does not change.
    you can jump to other sites – but:
    you can not jump from start page to that anchors ( submenu 8-columns: Marke1 und contact)
    i can not solve it (for now – i have to grill now for my family) :lol:

    • This reply was modified 8 years, 5 months ago by Guenni007.
    in reply to: Vimeo not working #808660

    but this is not your site futurenavigator.dk ?

    btw your rule concerning to h2 and white font color is too common (general) because using the search will end in h2 titles white on white
    – you can use this:

    .search-result-counter + h2 {
        color: #000 !important;
    }

    by the way on /fodevarestyrelsens-personaledag/ i can see your videos!
    on OSX Sierra and Firefox, Safari, Opera, Chrome

    • This reply was modified 8 years, 6 months ago by Guenni007.
    in reply to: Disable single date datepicker #808647

    Thanks – but the other way will work too.
    But i like those snippets in functions.php because i don’t like to think of it when parent theme was updating, and having that bad feeling there might be changings on those edited files in child-theme folder.

    in reply to: Vimeo not working #808497

    can you pleas try the other video link (without that iframe code) – that part underlined ( btw. you can take the rest to if you like to play with options)

    click to enlarge:

    in reply to: Vimeo not working #808490

    how did you use the vimeo videos in your Enfold – via ALB Media Video or did you embed it as a background video?
    What code did you use – the short one or that one from the “iframe-link” ?

    in reply to: new shortcodes or edited shortcodes in child-theme #808300

    thanks can be closed

    in reply to: Disable single date datepicker #808188

    new solution above . Only for functions.php child-theme nothing to copy or replace.

    • This reply was modified 8 years, 6 months ago by Guenni007.
    in reply to: Disable single date datepicker #808177
    in reply to: Disable single date datepicker #808175

    by the way – here we can also set start and end time as well:

    i had to make two functions of it because the one must load before helper datepicker starts:

    and think of the month without leading zero !

    function exclude_datepicker_dates() {
    ?>
    <script type="text/javascript">
    var unavailableDates = ["17/12/2017", "12/12/2017", "18/6/2017"];
    
    function unavailable(date) {
    dmy = date.getDate() + "/" + (date.getMonth() + 1) + "/" + date.getFullYear();
    if (jQuery.inArray(dmy, unavailableDates) == -1) {
    return [true, ""];
    } else {
    return [false, "", "Unavailable"];
    }
    }
     </script>
    <?php
    }
    add_action('wp_footer', 'exclude_datepicker_dates', 10);
    
    function my_datepicker_defaults() {
    ?>
     <script type="text/javascript">
        jQuery(document).ready(function(){ 
            jQuery.datepicker.setDefaults({
    	beforeShowDay: unavailable,
            minDate: 0,
            maxDate: "+12m"
                });
        });   
     </script>
    <?php
    }
    add_action('wp_footer', 'my_datepicker_defaults', 20);
    .ui-datepicker td[title="Unavailable"] {
        background: rgba(120, 255, 180, 0.3);
    }
    in reply to: Disable single date datepicker #808142

    on my Enfold the date is set to DD/MM/YY why can we use here the date in that form: 2017-06-18

    you see the excluded days in the form day/month/year – month without a leading Zero

    see solution down under :lol:

    • This reply was modified 8 years, 6 months ago by Guenni007.
    in reply to: Icons Missing, Only boxes visible #808068

    why is in your wp-config.php such an entry? These settings were normaly made via Dashboard – Settings – General !
    And didn’t i ask if you are using a cdn? – Nevermind – nice that you got it.

    in reply to: Hide (av_section_2) section ID in the URL #807475

    hm i thought if you are navigating to features it might be ok if there is in the url features (even from seo aspect)

    in reply to: Page Anchor Not Working #807473

    if you like to – it is only interest – and maybe a silly little thing to correct

    in reply to: Layerslider transitions #807471

    you do not need to check it on each slide.
    if there is already a choice go and press on 2D deselect all – goto 3D press on deselect all than apply to others!
    now goto one slide make your choice and press apply to others – ok and don’t forget to save the layerslider

    in reply to: Icons Missing, Only boxes visible #807462

    please tell us how if it was a fix with common interest. Maybe we got the problem once too.

    in reply to: Icons Missing, Only boxes visible #807271

    on stackoverflow: https://stackoverflow.com/questions/1653308/access-control-allow-origin-multiple-origin-domains

    from the security point of view this might be the better method – because only your domains are allowed to access cross-site content

    if you only have the one url i would try this:

    <FilesMatch "\.(ttf|otf|eot|woff|woff2|sfnt|svg)$">
    <IfModule mod_headers.c>
        SetEnvIf Origin "^http(s)?://(www\.)?(yinyangbangers.com)$" AccessControlAllowOrigin=$0
        Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
        Header set Access-Control-Allow-Credentials true
    </IfModule>
    </FilesMatch>

    if you will see a white page – you can allways get rid of that entry and try different options.

    in reply to: Icons Missing, Only boxes visible #807127

    maybe ( you now best your domains ) try this instead of wildcard asterix in htaccess:

    <IfModule mod_headers.c>
        SetEnvIf Origin "http(s)?://(www\.)?(domain1.org|domain2.com)$" AccessControlAllowOrigin=$0$1
        Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
        Header set Access-Control-Allow-Credentials true
    </IfModule>

    if only for font :

    <FilesMatch "\.(ttf|otf|woff)$">
    <IfModule mod_headers.c>
        SetEnvIf Origin "http(s)?://(www\.)?(domain1.org|domain2.com)$" AccessControlAllowOrigin=$0$1
        Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
        Header set Access-Control-Allow-Credentials true
    </IfModule>
    </FilesMatch>

    some people which are behind only https tells that the code must be edited a bit to:

    <FilesMatch "\.(ttf|otf|woff)$">
    <IfModule mod_headers.c>
        SetEnvIf Origin "^http(s)?://(www\.)?(domain1.org|domain2.com)$" AccessControlAllowOrigin=$0
        Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
        Header set Access-Control-Allow-Credentials true
    </IfModule>
    </FilesMatch>
    in reply to: Avia Layout Builder and Default Editor Not Working #807103

    i think php 5.4 is too old!

    https://wordpress.org/about/requirements/

    in reply to: Google maps does not work #807097

    “I tried inserting various types of refferers maybe they are wrong? Thanks in advance”
    what form do they have.

    i have had never problems with that – if on google site the wildcard is placed right.

    so if there is in the list : *mywebsite.com/* in most of the cases it works perfect – only sometimes i have to verify the url on google webmaster tools

    PS : the thing with entering the last asterix on google is that it has to be followed by a space – otherwise the last asterix is lost

    PPS: or do you have installed any other map-plugins

    • This reply was modified 8 years, 6 months ago by Guenni007.
    in reply to: Hide date from google results #807084

    you mean if you show them on your site – but not to show them on google search?

    in reply to: A bug with Advanced Post Types Order #807080
    in reply to: A bug with Advanced Post Types Order #807077

    i don’t know what this plugin does.
    If i like to have the chance to choose the orderby option on galleries and masonries i put in functions.php of the child theme the following snippet:
    http://kriesi.at/documentation/enfold/how-to-add-an-orderorderby-option-to-the-blogpost-sliderportfoliomasonry-grid-element/

    if(!function_exists('avia_custom_query_extension'))
    {
        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;
        }
    }
    in reply to: Layerslider transitions #807073

    go to layerslider – select your slider. Normaly it opens on slide1 – on the right side of that window there is a button : “select transitions”
    press that button. on the new window you can select all or on hovering – you can see a preview of the transition. Select those you like to have.
    Now there is the opportunity to apply these transition to others (slides).

    in reply to: Page Anchor Not Working #807011

    can you make an image of your advanced layout builder setting of that page ?
    and of menu link

    in reply to: Icons Missing, Only boxes visible #806993

    What do you mean by : I changed my host
    you are still behind an apache server?

    are you now using a cdn?

    in reply to: Hide (av_section_2) section ID in the URL #806986

    well – this is a colorsection – set up his ID to features by opening the colorsection element – scroll down – there is a field for “For Developers: Section ID”

Viewing 30 posts - 9,901 through 9,930 (of 11,855 total)