Forum Replies Created

Viewing 30 posts - 7,771 through 7,800 (of 11,475 total)
  • Author
    Posts
  • in reply to: Make video background responsive on mobile #986676

    see here responsiveness with color-section – but if content is determing the container height of the color section this will not work.
    With all its settings like transparency and overlay color.
    very important: the color-section has no padding no min height !!!
    and the color-section gets the custom class: resp-container

    https://webers-testseite.de/responsive-videobackground/

    the code is set for that page only – you have to adapt this to your needs – maybe you omit the if-clause
    this comes to functions.php of your child-theme:

    function responsive_background_video(){
    if ( is_page(32661)){
    ?>
    <script>
    (function($){
    	$('body').on('DOMNodeInserted', function(){
    		$('.resp-container iframe').addClass('resp-iframe');
    		$('.resp-container').css({
    		"position": "relative", 
    		"overflow": "hidden" , 
    		"padding-top": "56.25vw"
    		});
    		$('iframe.resp-iframe').css({
    		"position": "relative", 
    		"top": "0" , 
    		"left": "0", 
    		"width": "100vw" ,
    		"height": "56.25vw" ,
    		"border": "0",
    		"-webkit-transform": "scale(1.4)",
    		"-ms-transform": "scale(1.4)",
    		"transform": "scale(1.4)"
    		});
    		$('.resp-container .av-section-color-overlay').css({
    		"top": "-56.25vw" 
    		});
    	});	
    })(jQuery);
    </script>
    <?php
    }
    }
    add_action('wp_footer', 'responsive_background_video');

    this is for 16:9 Videos only

    by the way – very nice trick with DOMNodeInserted

    in reply to: Make video background responsive on mobile #986651

    last try from my side here: you see that example page with your video: https://webers-testseite.de/video-tut/
    Isn’t that the thing you like to optain?
    You can not have full height and responsiveness. These are conditions that are mutually exclusive

    If you have some content in front of the video – i can understand your request. But without the best way is to use the full-width video slider

    in reply to: Different logo depending on screen ratio #986510

    by the way – there are some jQuery scripts which did that job for you.
    if there was an image with same name but with a given suffix ( guenni2.jpg versus (Email address hidden if logged out) ) and the pixel ratio is more than 2 it will show the alternative image.

    you can see it here: http://webers-testseite.de/weber/retina/

    the image on the left is the same resolution as the guenni2.jpg but i renamed it to guenni1.jpg
    on the right there is the guenni2.jpg – if you look to that right image on retina displays the better resolution image is shown. ( (Email address hidden if logged out) )

    in reply to: Different logo depending on screen ratio #986487

    you mean something like this:
    for making a difference between highresolution screens – like apple retina displays ?

    add_filter('avf_logo','av_change_logo_url');
    function av_change_logo_url($url){
        if (window.devicePixelRatio >= 2)
        {
            $url = "http://www.domain.com/wp-content/uploads/retina-logo.jpg";
        }
        else {
    		$url = "http://www.domain.com/wp-content/uploads/normal-logo.jpg";
    	}
        return $url; 
    }
    in reply to: What Plugin i can install for hyphenation with Enfold? #986475

    yes it is best influence if you do the custom-class to the p tag or span where your text is in.
    But it will work too if you do the class to a parent container.
    see example here https://webers-testseite.de/hyphenator/
    you see on the first two columns that there are dashes at the end of a line – and break the word with grammatical rules.

    _________________

    But looking to your Examples i think you are talking about something different.
    You can influence Words behavior on shrinking screen width. A lot of Enfold Headings do not break on very small screens. This might result in an overlapping heading over the container border.

    you can set this via css – see here the usage with trials :
    https://www.w3schools.com/cssref/css3_pr_word-break.asp :try

    https://www.w3schools.com/cssref/css3_pr_word-wrap.asp :try

    https://www.w3schools.com/cssref/pr_text_white-space.asp :try

    https://www.w3schools.com/cssref/css3_pr_hyphens.asp :try

    on a lot of input fields you can enter manual “predetermined breaking point” for example for long headings – where you like to decide where a word break:
    soft hyphen = discretionary hyphen &shy; or &#173

    the last code you have to set a semicolon after the 3 – boardsoft did change it imediately – even if i insert it in code tags here

    in reply to: How to insert an image into the socket #986404

    did you try that code above by copy / paste ?

    the advantage is that the image floats to the text.

    in reply to: How to insert an image into the socket #986388

    by the way – you can style a text-block as you like it and insert that shortcode to that copyright input field like:

    [av_textblock]<img class="alignright size-full" src="https://www.weddingplannersintuscany.com/wp-content/uploads/2018/07/rmw-thelist-official-supplier.png" width="120" height="120" />Wedding Planners in Tuscany by Luccaorganizza Viale Agostino Marti,
    415 - 55100, Lucca. Email:  (Email address hidden if logged out) 
    Phone +39 0583 952440 • Mobile +39 328 2930862 • P.IVA 01616520464.[/av_textblock]
    in reply to: Previous/Next buttons only same category #986372

    yes i know – and you can see on may test-page ( https://webers-testseite.de/portfolio-item/pirol-hifi/ ) that the code above works well for my Enfold 4.4.1
    there are a lot of portfolios but- only two with “category” frontside – and only these two are shown.
    i do not know why it works on my installtion (4.4.1) and on your setup not.

    in reply to: Change the order of the social bookmarks icon #986314

    if you got a shop cart symbol there – it might be better to move the social bookmarks before the nav
    i changed the code in the topic on top too – because this is more logical to do it the other way round

    function change_menu_position() { 
    ?>
    <script>
    (function($){
    	$('.main_menu ul.social_bookmarks').insertBefore($('.main_menu div.avia-menu'));
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'change_menu_position');

    PS: no adjustment needed as i can see on your site – looks good

    in reply to: Change the order of the social bookmarks icon #986302

    well my first input to that was to move the two things in the DOM.
    because I am intensifying my knowledge about jQuery, I have a solution here, but I think it must be easier done. I looked at the helper-main-menu.php, but couldn’t find anything at first sight.
    Maybe there is a solution via the filter: avf_main_menu_nav
    It now depends on which headers you use. You may need to make adjust it for the transparent headers. The icons follow the shrink behavior. You still have to determine the transparency font color.

    this to functions.php of your child-theme

    function change_menu_position() { 
    ?>
    <script>
    (function($){
    	$('.main_menu ul.social_bookmarks').insertBefore($('.main_menu div.avia-menu'));
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'change_menu_position');

    this to quick css:

    #top nav .social_bookmarks {
        margin-top: -20px !important;
        overflow: visible !important;
        height: 40px !important
    }
    .avia-menu.av_menu_icon_beside {
        padding-right: 0;
        margin-right: 0;
        border-right-width: 0;
        border-right-style: none;
    }
    .social_bookmarks li a {
        height: 40px !important;
        line-height: 40px !important;
        width: 40px !important;
    }
    #top .social_bookmarks li {
        width: 40px;
        height: auto !important;
    }
    #top .av-logo-container .social_bookmarks li a {
        border-radius: 50%;
    }
    .av_header_transparency .social_bookmarks li a {
        color: #969696 !important;
    }

    the exact positioning of the social-bookmarks is then only possible if i have your life link afterwards.

    in reply to: Change the order of the social bookmarks icon #986167

    ah sorry for missunderstanding – i see your issue now.

    in reply to: Change the order of the social bookmarks icon #986166

    why don’t you add them to Enfold Options in the ordersequence you like to have?

    the top is on the left – the bottom on the right.

    in reply to: Embed code block ist deleting startpage #985923

    about 140 topics started – and you realy don’t know how to use the code tag here on board.?
    If you want to have such a long code checked, it would be good if we didn’t have to edit it a lot. Because Boardsoft converts many tags and special characters to other characters.
    this is very time-consuming

    in reply to: a better image resize algorithm ? #985912

    looks good – i will test it soon.

    in reply to: Translation – Child Theme #985906

    and by the way – what should a linebreak in a code-block do?
    this is the code for the path to your child-theme/lang folder to activate for child lang files

    
    function language_file_child_theme() {
        $lang = get_stylesheet_directory().'/lang';
        return $lang;
    }
    add_filter('ava_theme_textdomain_path', 'language_file_child_theme');

    do not forget to empty all cache you use (browser cache, enfold merged files, other plugins)

    in reply to: Translate some words in Portfolio & search #985779

    if you use the child-theme option you have to set that path to the new files.
    My advice is to preserve the folder and make a subfolder to your child-theme called lang
    then do this to your functions.php of your child-theme:

    function overwrite_language_file_child_theme() {
        $lang = get_stylesheet_directory().'/lang';
        return $lang;
    }
    add_filter('ava_theme_textdomain_path', 'overwrite_language_file_child_theme');
    in reply to: Previous/Next buttons only same category #985769

    ok – this seems to be not working anymore on the newest enfold:

    add_filter( 'avia_post_nav_entries', 'enfold_customization_postnav', 10, 2); 
    function enfold_customization_postnav($entries, $settings) {
        $entries['prev'] = get_next_post($settings['same_category']);
        $entries['next'] = get_previous_post($settings['same_category']);
        return $entries;
    }

    there is something new on Enfold 4.4.1 – so please try:

    add_filter( 'avia_post_nav_entries', 'enfold_customization_postnav', 10, 2); 
    function enfold_customization_postnav($entries, $settings) {
        $entries['prev'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
        $entries['next'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
        return $entries;
    }

    but this works on my 4.4.1 install:

    add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod');
    function avia_post_nav_settings_mod($settings)
    {
      if(is_singular('portfolio')) {
        $settings['taxonomy'] = 'portfolio_entries';
        $settings['same_category'] = true;}
      return $settings;
    }
    in reply to: German version of cookie info #985766

    Or you can use the very good translator from deepl.com to translate those english phrases

    in reply to: What Plugin i can install for hyphenation with Enfold? #985662

    as i said above – there is a custom class to which the hyphenation goes.
    Class name of content to hyphenate is on default : hyphenate

    if you got now a text-block element give him that custom class.

    in reply to: . #985614

    ?

    in reply to: Translate some words in Portfolio & search #985612

    I think the best thing will be to edit the translation files itself.

    • This reply was modified 6 years, 11 months ago by Guenni007.
    in reply to: What Plugin i can install for hyphenation with Enfold? #985610

    As you mentioned the word to look for is hyphenation – and the WordPress Plugin is Hyphenator : https://de.wordpress.org/plugins/hyphenator/
    i’m very happy with that – i often use it on pages where my customers like to have justified text.

    Hyphenator automatically inserts separators in the content, so that at the end of line the text is wrapped with a dash if applicable. Hyphenator.js, a JavaScript available under the terms of LGPL v3, is used. It fields the algorithm known from OpenOffice and LaTeX. As this is executed client-sidedly, it adapts itself to the respective browser environment and thus avoids a faulty display. The script is particularly suitable for justification and supports a variety of languages.

    to avoid unnecessary use of the whole thing, you simply assign a user-defined class (default is hyphenate) for the textblocks you like to hyphenate in that manner.

    in reply to: Previous/Next buttons only same category #985542

    hm stange – you see here on Enfold 4.4.1 that portfolio – it has only one other portfolio in the same “category” = frontside
    and you see that there is only that other portfolion in the left right navigation: https://webers-testseite.de/portfolio-item/pirol-hifi/

    in reply to: Previous/Next buttons only same category #985461

    to have vice-versa post navs you can use this:

    add_filter( 'avia_post_nav_entries', 'enfold_customization_postnav', 10, 2); 
    function enfold_customization_postnav($entries, $settings) {
        $entries['prev'] = get_next_post($settings['same_category']);
        $entries['next'] = get_previous_post($settings['same_category']);
        return $entries;
    }

    and sorry i did not read that it is a portfolio:
    the portfolio “categories” aren’t real categories – they are ( as for events too) taxonomies:

    add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod');
    function avia_post_nav_settings_mod($settings)
    {
      if(is_singular('portfolio')) {
        $settings['taxonomy'] = 'portfolio_entries';
        $settings['same_category'] = true;}
      return $settings;
    }

    PS: please use for code the code block element on top of the input field:
    click once code – enter your code – click it a second time
    or enter your code – activate the whole code you entered with your mouse – press once code button.
    the code is therefore difficult to read and to check – in addition, certain characters are converted by Boardsoft. The code in the code block can be copied and inserted directly to your functions.php of your child-theme

    • This reply was modified 6 years, 11 months ago by Guenni007.

    and you realy mean mobile devices and not smaller screens?

    you can try this:

    .avia_mobile .home #av_section_1 .av-parallax {
        display: none !important;
    }
    
    .avia_mobile .home #av_section_1  {
      background: #7db9e8;
    	background: -moz-linear-gradient(45deg,  #7db9e8 0%, #ffffff 80%);
    	background: -webkit-linear-gradient(45deg,  #7db9e8 0%,#ffffff 80%);
    	background: linear-gradient(45deg,  #7db9e8 0%,#ffffff 80%);
    	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7db9e8', endColorstr='#ffffff',GradientType=1 );
    }
    
    .avia_mobile .home #av_section_2 .av-parallax {
        display: none;
    }
    
    .avia_mobile .home #av_section_2  {
      background-image: -ms-linear-gradient(top, #FFFFFF 0%, #DDDDDD 100%);
    	background-image: -o-linear-gradient(top, #FFFFFF 0%, #DDDDDD 100%);
    	background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #FFFFFF), color-stop(100, #DDDDDD));
    	background-image: -webkit-linear-gradient(top, #FFFFFF 0%, #DDDDDD 100%);
    	background-image: linear-gradient(to bottom, #FFFFFF 0%, #DDDDDD 100%);
    }
    in reply to: Previous/Next buttons only same category #985348

    can you please try this instead in your functions.php of your child-theme:

    add_filter( 'avia_post_nav_settings', 'enfold_customization_same_cat' );
    function enfold_customization_same_cat( $s ) {
        $s['same_category'] = true;
      return $s;
    }
    in reply to: Using pngs instead of fontello icons #985193

    the link to your image is correct – but your css entry has a different link !

    this is what is in your css:

    .myicon .av-icon-char {
        background-image: url('http://wpg.com.gridhosted.co.uk/wp-content/uploads/dynamic_avia/wpg.com.gridhosted.co.uk/wp-content/uploads/2018/07/myicon.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
    }

    maybe you have to erase the old merged css files of your enfold !

    • This reply was modified 6 years, 11 months ago by Guenni007.
    in reply to: Using pngs instead of fontello icons #985114

    your link in the css to the image is not correct:

    .myicon .av-icon-char {
        background-image: url('http://wpg.com.gridhosted.co.uk/wp-content/uploads/2018/07/myicon.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
    }
    in reply to: a better image resize algorithm ? #985113

    on uploading my images – i do not want to have a recalculation – because my images are best optimized as possible.
    so i sometimes have that function :

    add_filter( 'jpeg_quality', create_function( '', 'return 100;' ) );

    but on that customer site i do not have this in use.

    on Enfold 4.4.1 this is set by default ? – but even if so – the algorithm seems to be a bit strange.
    My images are on compression level (Photoshop) from 35 to 60%) depends on the content.
    decompress – crop – compress will cause in more memory size but less sharpness.
    In times where f.e. mozjpeg is able to nearly create good compression good resolution images it might be good to have this for creating the cropped image sizes.

    PS Optimus free only handels images less than 100kb

    in reply to: Using pngs instead of fontello icons #985048

    nearby – the selector is not the iconbox_icon:

    .myicon .av-icon-char::before {
        visibility: hidden;
    }
    
    .myicon .av-icon-char {
        background-image: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
    }

    by the way the kriesi logo above has a lot of transparency arround the logo. If you do not have this space the image will be bigger.

Viewing 30 posts - 7,771 through 7,800 (of 11,475 total)