Forum Replies Created

Viewing 30 posts - 7,141 through 7,170 (of 11,491 total)
  • Author
    Posts
  • in reply to: Open Video lightbox from image link #1054102

    And by the way – if there are no transparency needs – do use jpg.
    And if you use jpg – try to optimize them for web ( f.e. in photoshop via save for web and take a higher compression level.
    Your mission-6.jpg has 3MB – that is the reason why the image needs too long to load. You can have that image nearby 460kb without visible loss of quality

    in reply to: Open Video lightbox from image link #1054090

    did you read my comment above?

    if it is the only option try the question mark:

    http://www.rustis.it/wp-content/uploads/2019/01/RUSTIS_STILL-LIFE_1.mp4?iframe=true

    in reply to: Is there a way to achieve this? #1053712

    And you see on small screens that you have to do some extra css
    or just to set up that css for screens over your break point for mobile:

    @media only screen and (min-width: 768px){
    .avia-image-container.overlap-image {
        position: relative;
        top: -200px;
    }
    }

    And you can have sliders above too etc.

    in reply to: Is there a way to achieve this? #1053707

    you have to have than image as png file with cut-out form.

    That was my test setup:
    click to enlarge it –

    the image alb gets a custom class ( on my case it is: overlap-image )
    this comes to quick css:

    .avia-image-container.overlap-image {
        position: relative;
        top: -200px;
    }

    or take some relative dimensions like top: -15vw or 10% etc. play a bit on that.

    see result – better wouid be to have the image totaly as cut-off.
    https://webers-testseite.de/overlap/

    in reply to: Enfold corrupting multisite WP installation? #1053679

    Unfortunately Duplicator is not multi-site compatible. Therefore I got Updraft for this case. This works perfectly. But it’s not cheap. But it does backups automatically and sends them to me in zip form – depending on the setting also encrypted on my ftp server.

    in reply to: Tag Archive #1053656

    if you only want to extra style the category archive page but not the posts ( post then get standard layout set by Enfold options page):

    add_filter('avia_layout_filter', 'avia_change_category_layout', 10, 2);
    function avia_change_category_layout($layout, $post_id) {
        if( is_category('grafik') && !has_category('grafik') ){
            $layout['current'] = $layout['sidebar_right'];
            $layout['current']['main'] = 'sidebar_right';
        }
        return $layout;
    }

    just play a bit with both filters

    in reply to: Tag Archive #1053634

    and by the way if you like to exclude the layout for archiv-page and all the post in it you can use has_category()

    if( is_category('grafik') || has_category('grafik') ){

    hm seems not to work in that supposed manner.
    I will brainstorm again. …

    Edit: it seems to be this way that the layout of the category will go to the post in that category !
    But you can bypass it by f.e.
    (maybe a mod knows a different setting – quiet shorter):

    
    
    add_filter('avia_layout_filter', 'avia_change_category_layout', 10, 2);
    function avia_change_category_layout($layout, $post_id) {
        if( is_category('grafik') && is_archive() ){
            $layout['current'] = $layout['sidebar_right'];
            $layout['current']['main'] = 'sidebar_right';
        }
    
        return $layout;
    }
    
    add_filter('avia_layout_filter', 'avia_change_post_layout', 10, 2);
    function avia_change_post_layout($layout, $post_id) {
        if( has_category('grafik') && !is_archive() ){
            $layout['current'] = $layout['fullsize'];
            $layout['current']['main'] = 'fullsize';
        }
    
        return $layout;
    }

    so here the archive page of category: grafik will be with sidebar right – but the posts in it has no sidebar.

    • This reply was modified 6 years, 5 months ago by Guenni007.
    in reply to: Tag Archive #1053630

    there was a filter – you can adjust via if clauses to your needs:

    add_filter('avia_layout_filter', 'avia_change_category_layout', 10, 2);
    function avia_change_category_layout($layout, $post_id) {
        if( is_category('grafik') ){
            $layout['current'] = $layout['fullsize'];
            $layout['current']['main'] = 'fullsize';
        }
        return $layout;
    }
    in reply to: Tag Archive #1053619

    Get rid of sidebar – where – on all archive pages or only for some category pages ?

    in reply to: Tag Archive #1053586

    both here either tag or archive:

    add_filter('avf_blog_style','avia_change_tag_blog_layout', 10, 2); 
    function avia_change_tag_blog_layout($layout, $context){
    if($context == 'tag') $layout = 'blog-grid';
    return $layout;
    }
    
    add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2); 
    function avia_change_category_blog_layout($layout, $context){
    if($context == 'archive') $layout = 'blog-grid';
    return $layout;
    }
    in reply to: Anzeigeprobleme bei color section mit diagonal border #1053445

    to have not the overlapping from the masonry over the slant : just put under the masonry a whitespace f.e. 100px

    click to enlarge:

    The slanting comes from the color-section on top and has the background-color of the following color-section.
    So the following color section can do without borderstyling, unless it should have an own slanting.
    But the borderstyling above : the top section border styling – there was the borderline perhaps you mentioned.

    But better would be a lifelink to say where it comes from

    in reply to: Weird formatting issue but only on mobile devices #1053442

    Ok – thanks for response. It must have been something like this.

    in reply to: Weird formatting issue but only on mobile devices #1053366

    Well the other thing is – i can not reproduce that behavior – either on an older nor on the newest Enfold.
    So it must be some custom settings that goes to that styling.

    in reply to: Weird formatting issue but only on mobile devices #1053346

    but f.e. your about page does not have parallax handling for the first color-section background-image. But even here the color-section 2 got that parallax things ???

    maybe that function in shortcodes.js : $.fn.avia_mobile_fixed = function(options)
    is responsible for that – because on your about page the image in color-section 1 is fixed.

    in reply to: Weird formatting issue but only on mobile devices #1053344

    by the way: if you do not want to publish the link of your website, I advise you to make the links in the screenshot unrecognizable ;)
    Nevertheless the link was a better source to help you: you have the colorsection above with parallax effect – but the following not!
    On mobile there are strange behavior – because the following color-section got the same attribut. That might be a bug indeed

    click to enlarge

    in reply to: Anzeigeprobleme bei color section mit diagonal border #1053341

    First : you can have under your masonry a whitespace separator with f.e. 100px height.
    Second: please look into your color-section settings after that one with the masonry. There are no borderstylings at all?

    in reply to: Open Video lightbox from image link #1053157

    Have you any link for us? Is it a selfhosted Video – or a Youtube ( Vimeo etc. pp.) one?

    and by the way if you have only the url of the video ( like on selfhosted one ) try it with ?iframe=true

    i guess it is always the case if there are more than one parameter added ( like on most youtube videos ) the first added Parameter got the questionmark “?” and all the others come with ampersand “&

    in reply to: Parallax effect like enfold-app theme #1053028

    First of all – this is no parallax effect. The image on top is in fixed positioning.
    There was a first color-section with the background-image.
    The next color-section has on top a 1/1 column with an img ALB (centered) – that img is a png file with transparent background.
    The 1/1 column can be set with negative Margin – so edit that column see on first tab : Custom top and bottom margin
    Mark that Checkbox and give it a negative Margin:
    (click to enlarge the image)

    in reply to: Show the search icon only to the logged-in user. #1052863

    Not for that – your welcome

    in reply to: Show the search icon only to the logged-in user. #1052641

    Aha here is the solution – and it comes to functions.php of your child-theme
    thanks to Dude

    add_action('init', 'avia_remove_search_for_logged_out_users', 10); 
    function avia_remove_search_for_logged_out_users(){
    	if(! is_user_logged_in()){
    		remove_filter( 'wp_nav_menu_items', 'avia_append_search_nav', 9997, 2 );
    		remove_filter( 'avf_fallback_menu_items', 'avia_append_search_nav', 9997, 2 );
    	}
    }
    in reply to: Show the search icon only to the logged-in user. #1052629

    well there is an if clause that could fit for your needs:
    if(is_user_logged_in())
    but the most elegant method would be to influence the header_searchicon from Enfold Options dialog.
    This here only hides or shows the search – but better would be that there is no search in the menu
    (comes to functions.php of your child theme)

    function login_state(){
    if(is_user_logged_in()){
    ?>
     <script>
    	jQuery("#menu-item-search").css("display", "block");
     </script>
    <?php
    }
    else{
    ?>
     <script>
    	jQuery("#menu-item-search").css("display", "none");
     </script>
    <?php
    }
    }
    add_action('wp_footer', 'login_state');

    maybe a filter like avf_header_setting_filter could do the needed trick – but i do not see how to ( on that early time )

    in reply to: Open Video lightbox from image link #1052499

    is it a selfhosted Video?
    try at the end of your video link to add: &iframe=true

    in reply to: how to use a different editor for comments #1052490

    by the way you can decide which buttons of tinyMCE are active for that case:
    you only have to edit the tinyMCE details in the code above like:

    wp_editor( '', 'comment', array(
        'textarea_rows' => 15,
        'teeny' => true,
        'quicktags' => false,
        'media_buttons' => false,
        'tinymce' => array(
        'toolbar1' => 'formatselect | bold italic strikethrough | alignleft aligncenter alignright alignjustify  | numlist bullist outdent indent ',
        'toolbar2'=>false
      ),
      ) );

    with this options it will look like this:

    see here f.e. how to style: https://www.tiny.cloud/docs/demo/full-featured/

    in reply to: datenschutzerklärung auf deutsch #1052476

    Aber Du hast doch das Feld bei Enfold wo du das genau ersetzen kannst – zudem dann auch die Buttonbeschriftung etc.

    click to enlarge:

    in reply to: Hide, remove, disable Author Archive Page #1052402

    this here seems to work better: https://wordpress.org/plugins/edit-author-slug/

    you will have then additional fields to customise the permalink structure and the shown name – which is not the loggin User name

    Edit: if you want to create it afterwards – i guess you have to refresh permalinks and edit for each user the account info !

    in reply to: Hide, remove, disable Author Archive Page #1052382

    Depends on your passwords!

    In principle you are of course right that the username should not appear – but f.e. the name ( Display name publicly as ) that was specified in the profile.
    Maybe a mod knows a good replacement for those permalinks – not to use the username but the name instead.

    there was a little plugin for that : Display Name Author Permalink
    so the permalink is with the nice-name and not the username.
    And on meta description this name is set too: so your Name might be yellow-feather but your username is blue_bear ;)

    But i do not test it – i only read about that

    in reply to: Contact form, spam, captcha #1052376

    if you like to use contact form 7 install that little honeypot plugin for CF7 too.
    I got one customer who has the same troubles with spam – after installing cf7 and placing that honeypot field on his page he told me he got a lot less spam and without any captcha.

    in reply to: Hide, remove, disable Author Archive Page #1052375

    i did not remove it but redirect it via htaccess entry to a custom portfolio entry.

    like:
    Redirect 301 /author/name/ https://homeurl/portfolio-item/name/

    so you got your own custom things for the authors

    in reply to: how to use a different editor for comments #1052367

    Looks this way:

    in reply to: how to use a different editor for comments #1052365

    Just in that moment i found a suitable solution for me – this comes to functions.php of child-theme:

    add_filter('avia_form_tag_output','avia_form_tag_output',10,1);
    function avia_form_tag_output($output){
        $args=array(
          'orderby'    => 'count',
          'order'    => 'DESC',
          'hide_empty' => false,
         );
        $tag_terms=get_terms('avia-question_tag', $args ) ;
        $output='<select name="question-tag" id="question-tag" class="postform">';
        $output.='<option value="">Select question Tags</option>';
        foreach($tag_terms as $tag_term)
          $output.='<option value="'.$tag_term->name.'">'.$tag_term->name.'</option>';
        $output.='</select>';
      return $output;
    }
    
    add_filter( 'comment_form_field_comment', 'comment_editor' );
    
    function comment_editor() {
      global $post;
    
      ob_start();
    
      wp_editor( '', 'comment', array(
        'textarea_rows' => 15,
        'teeny' => true,
        'quicktags' => false,
        'media_buttons' => false
      ) );
    
      $editor = ob_get_contents();
    
      ob_end_clean();
    
      //make sure comment media is attached to parent post
      $editor = str_replace( 'post_id=0', 'post_id='.get_the_ID(), $editor );
    
      return $editor;
    }
    
    // wp_editor doesn't work when clicking reply. Here is the fix.
    add_action( 'wp_enqueue_scripts', '__THEME_PREFIX__scripts' );
    function __THEME_PREFIX__scripts() {
        wp_enqueue_script('jquery');
    }
    add_filter( 'comment_reply_link', '__THEME_PREFIX__comment_reply_link' );
    function __THEME_PREFIX__comment_reply_link($link) {
        return str_replace( 'onclick=', 'data-onclick=', $link );
    }
    add_action( 'wp_head', '__THEME_PREFIX__wp_head' );
    function __THEME_PREFIX__wp_head() {
    ?>
    <script type="text/javascript">
      jQuery(function($){
        $('.comment-reply-link').click(function(e){
          e.preventDefault();
          var args = $(this).data('onclick');
          args = args.replace(/.*\(|\)/gi, '').replace(/\"|\s+/g, '');
          args = args.split(',');
          tinymce.EditorManager.execCommand('mceRemoveEditor', true, 'comment');
          addComment.moveForm.apply( addComment, args );
          tinymce.EditorManager.execCommand('mceAddEditor', true, 'comment');
        });
      });
    </script>
    <?php 
    }
Viewing 30 posts - 7,141 through 7,170 (of 11,491 total)