Forum Replies Created

Viewing 30 posts - 7,531 through 7,560 (of 11,223 total)
  • Author
    Posts
  • 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, 7 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, 7 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, 7 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.

    in reply to: Logo overlay on full screen slider #984970

    if you are interested in this solution – it might be possible in a similar way: https://webers-testseite.de/cynthia/logo2-on-slider/

    in reply to: translating header content via polylang #984867

    if you are activating the shortcodes for polylang via your functions.php of your child-theme:

    
    function polylang_shortcode($atts, $content = null){
    	if (empty($content))
    	return '';
    	extract( shortcode_atts( array('lang' => ''), $atts ) );
    	if (empty($lang))
    	return "<h3>You must specify 'lang' using shortcode: polylang</h3>";
    	return ($lang == pll_current_language()) ? $content : '';
    }
    add_shortcode('polylang', 'polylang_shortcode');

    you then can use this in all text fields – and a lot of enfold options input fields too (like footer copyright field) on this :

    [polylang lang="en"]PhoneNumber for english sites [/polylang][polylang lang="de"]PhoneNumber for german sites[/polylang]

    etc. pp

    in reply to: Logo overlay on full screen slider #984850

    :lol by the way – first i thought this might be a nice gimmick – but it is to complicated to make it real look beautiful:

    https://webers-testseite.de/cynthia/logo-move/

    in reply to: Logo overlay on full screen slider #984836

    well you can use your full-screen slider aswell and add your logo via jQuery function.

    Here on my testpage i have given the slider the custom-class: place-logo

    then i put into functions.php of my child-theme:

    Test-page: https://webers-testseite.de/cynthia/logo-goes-to-slider/

    function add_logo_to_slider() { 
    ?>
    <script>
    (function($){
    	$('.place-logo .slideshow_caption').before('<img class="sliderlogo" src="https://webers-testseite.de/cynthia/wp-content/uploads/2018/07/full-logo.png" alt="Logo on Slider" />');
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'add_logo_to_slider');

    and make a setup for your added image for each slide number like:

    
    /* rule for all slides in the slider */
    .sliderlogo {
    position: relative !important;
    width: 40% !important;
    top: 35%;
    transform: translateY(-50%);
    -webkit-filter: drop-shadow(2px 2px 3px #ffffff);
    filter: drop-shadow(2px 2px 3px #ffffff);
    }
    
    /* if you like to have semitransparent background with padding for slide 1 */
    .slide-1 .sliderlogo {
        background-color: rgba(255,255,255,0.2);
        padding: 40px;
    }
    
    /* if you like to shift in x direction for slide 2 */
    .slide-2 .sliderlogo {
    	margin-left: 10% !important;
    }
    in reply to: How to change text in all posts #984775

    by the way – this is a very fast way to correct bad translations too

    in reply to: How to change text in all posts #984774

    click on my nick or avatar

    in reply to: How to change text in all posts #984671

    but yes of course – but

    I prefer it of course if it runs here over the forum, because I do not always have time to deal directly with the questions. Furthermore, the advantage of swarm intelligence should not be underestimated.

    in reply to: How to change text in all posts #984631

    maybe this could help you – put it in your functions.php of your child-theme:

    // Word replacement
    function replace_text($word){
        $changings = array(
    	// Word to replace => New text - comma separated
            'Grundlagen' => 'Basis',
    	'dolor' => 'something else'
        );
        $word = str_replace(array_keys($changings), $changings, $word);
        return $word;
    }
    
    // WP filter for the content and the Exerpt (content excerpt)
    
    add_filter('the_content', 'replace_text');
    add_filter('the_excerpt', 'replace_text');

    you see how it works ?
    this is what you like to replace: 'Grundlagen' => 'Basis',
    if you like to replace more these lines are separated by commata – the last instruction does not need a comma at the end

    by the way you can even replace with html expressions:

    'Lorem' => '<abbr title="#">Lorem</abbr>',
    

    PS: this will work case-sensitve

    by the way another question : why do you nearly always use png files – even if there was no transparency in use (except analytics – but it has here a white background – so a jpg could do the job too) ?
    f.e. your water-cabana.png has a size of 1.6MB – the same jpg file with no quality loss : 143kb ( for transfer volumen – both have the same 2.56MB when they are opend)

    same with the other images. The five images on your landing page got on total with png : 4,5MB. with jpg : 500kb
    don’t know if this is the reason for that behavior – I don’t believe it – but for performance reasons you should always prefer jpg – if you don’t need the transparent option.

    in reply to: Advanced Layerslider Advanced Settings : an info #984064

    i’m shure that it will work with code in functions.php too – but for the “standard-enfold” user this might be a fine method to do it.
    Same with responsive videobackground via adv. layoutbuilder even on mobile devices with autostart : https://webers-webdesign.de
    Selfhosted Video and video as background-slide

    in reply to: Advanced Layerslider Advanced Settings : an info #983880

    my last test over the socket was successful.

    you have to position the slider on the wanted page – then shift it with that DOM function on Slider Settings

    see here between footer and socket with prependTo #socket : https://webers-testseite.de

    • This reply was modified 6 years, 7 months ago by Guenni007.
    in reply to: Button in Slider to trigger video pop-up #983710

    in this case you can have alll those options to set : so i would input to that button – with iframe=true option

    
    https://www.youtube-nocookie.com/embed/0f1fZgnhmJw?enablejsapi=1&ecver=2&cc_load_policy=1&rel=0&showinfo=0&autoplay=1&color=white&iv_load_policy=3&iframe=true

    see here: https://webers-testseite.de/slider-with-video-button/

    by the way you can see here : https://developers.google.com/youtube/youtube_player_demo – if you click “show player parameters” what the options are.
    accept the ecver2 ( this is for not having video suggestions on pausing the video)

    by the way looping will not work with one video in the playlist! (only if you have the same video in the playlist)

Viewing 30 posts - 7,531 through 7,560 (of 11,223 total)