Forum Replies Created

Viewing 30 posts - 5,941 through 5,970 (of 11,707 total)
  • Author
    Posts
  • in reply to: NEW Page for every image killing my SEO #1164937

    Well this is a wordpress feature –
    if you go to your media library and open one image to edit – there is an attachment page.
    If you are using Yoast SEO there is an Option to do this : redirect image attachment page to something.

    if you not using it – and you don’t like to use a plugin – you can redirect all image attachment pages f.e. to your homepage via child-theme functions.php:

    function image_redirect_attachment_page() {
    	if ( is_attachment() ) {
    		global $post;
    		if ( $post && $post->post_parent ) {
    			wp_redirect( esc_url( get_permalink( $post->post_parent ) ), 301 );
    			exit;
    		} else {
    			wp_redirect( esc_url( home_url( '/' ) ), 301 );
    			exit;
    		}
    	}
    }
    add_action( 'template_redirect', 'image_redirect_attachment_page' );
    in reply to: Text around logo functionality #1164363

    Many thanks – I like people with good behaviour. ;)

    Anyway – under my nick there is my contact information, if you know where the layout goes, then I’m happy to help.
    But with your code above, which you used, I don’t think a special help is necessary. Sometimes you just can’t get to the simplest things, like the Order option of a Flex layout.
    Otherwise my example pages are mostly without merging, so that you get quite far with the developer tools to pick out the css instructions.

    yes – for book collections there is a lot to do, and this is also a good idea to have a special custom post format on this, because there could be special keywords (like ISBN numbers etc.) .
    Most of the time these plugins create only custom post type ( often shorted to CPT – if you see that) , as we have seen from the portfolios.

    That could be advantageous in your case.
    What I see on the old example page, however, would work without problems only with Enfold elements.
    You just have to look through the function of a blog page a bit more.
    Don’t worry – every question is a good one; stupid are people who have no questions.

    Enfold presents some Options on showing a blog page ( i prefer to style it with ALB Element ) but you can set any page to show the blog ( if you have only one ) by setting it on Enfold Options – Theme Options = “And where do you want to display the Blog?” here you have the choice to set a page as Blog Page.
    Under Enfold Options – Blog Layout – you have different settings on that page. ( you need the grid layout ) etc. pp.

    look to your other topic.
    You have your single Books in Posts – so use first Blog Element to show these Posts in a Grid view.

    More and more I come to the conclusion that you may not have discovered the Enfold typical editor yet.
    With your 18 topics, that might be the case.
    First of all I recommend you to disable the Block Editor (Gutenberg). I find this only confusing in connection with Enfold.
    This can be done under Dashboard – Enfold (or Enfold Child) – Theme Options = Select Your Editor

    Then you have a button below the Title input field of each Editor Page ( Pages / Posts/ Portfolio) : Advanced Layout Editor. If you press this button, then these Advanced Layout Builder Elements ( ALB Elements) will appear above the layout window (sometimes this is not quite clear in the theme because Avia Layout Builder is also used as a name).

    This is indeed the great strength of this theme. An intuitive layout design via drag and drop; sometimes with a little too many settings, but most of them are quite useful and have grown over time.

    Now for those pages that are a collection of existing posts/portfolios there are exactly the blog representations.
    Because I see that you have probably created the individual book pages all as posts. So you have the possibility to drag the element “Blog Posts” from the tab “Content Elements” to e.g. a color section. If you want to have a sidebar there, just drag it into a 1/1 container.

    Then you can choose the grid display in the element “Blog Posts”.

    Whenever you then add a new post in the category, the new entry will automatically appear on the overview page.

    in reply to: Text around logo functionality #1164337

    or maybe this is something for you: https://kriesi.at/documentation/enfold/example-of-widget-left-logo-center-widget-right-menu-below/#toggle-id-2
    It is working with widgets in that area.

    in reply to: Darstellung des Sticky Mobile Burgers verändern #1164251

    But you already know that you probably chose the option : “Header is invisible and appears once the users scrolls down”?

    And what do you mean by “When I comment out the script in the quick css-field, than the desktop-display is OK again.”
    Quick CSS Input is not at all a place for a script.

    in reply to: Text around logo functionality #1164248

    you see the code i used to insert the additional containers.
    It is easy to have there additional attributes on the spans ( title, alt etc.) – the code could be language specific because you can build if clauses on that case.
    If you need different links on these left and right sentences – maybe it is better then to have siblings of the span.logo container instead.
    i do not know how your prefered header looks like. So describe a bit more. On your example image above it seems to be that your logo is on top and navigation below.

    in reply to: Text around logo functionality #1164088

    on a customer page i did it just with one svg file – and on smaller screens i shift the groups the way i want.
    It is a bit more work before – but you have a lot of advantages on that. Fill options etc. pp

    OR:
    with your setting of logo on top nav below: https://webers-testseite.de/cynthia/logo-top-two-subs/

    you can set for wide screens on flex layout the logo container to 100% width and set justify-content to space-around.

    in reply to: Text around logo functionality #1164075

    See here: https://webers-testseite.de/cynthia/logo-two-subs/

    i have on that logo ( img , span1, span2 )
    on wider screens i handle logo a as display flex and set the order this way that span1 is before img.
    on mobile i go back to display block and can now position the spans absolute and float options.

    by the way i did not think on that function – i just added both spans with:
    ( so i have these as siblings to logo img )

    function add_logo_elements() { 
    ?>
    <script>
    	(function($){		
    		$('.logo a').append('<span class="on-left">My Company</span><span class="on-right">My Slogan</span>');
    	})(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'add_logo_elements');
    in reply to: Text around logo functionality #1164042

    What would be your idea how the mobile version should look like?

    in reply to: Change Previous / Next buttons in Portfolio items #1164041

    have you looked to the date of that question ( and solution) ?

    Ok – try this in child-theme functions.php:

    function my_avf_post_nav_entries( array $entries, array $settings, array $queried_entries ){
      $next = $entries['next'];
      $entries['next'] = $entries['prev'];
      $entries['prev'] = $next;
      return $entries;
    }
    add_filter( 'avf_post_nav_entries', 'my_avf_post_nav_entries', 10, 3 );

    __________
    Off-Topic

    to have the same category this would be nice to have:

    function my_avf_post_nav_settings( array $settings ){
      if( true === $settings['is_hierarchical'] ){
        $settings['skip_output'] = true;
        return $settings;
      } 
      if( ! in_array( $settings['type'], array( 'post', 'portfolio' ) ) ){
        $settings['skip_output'] = false;
        return $settings;
      }
      $settings['same_category'] = true;
      $settings['is_fullwidth'] = false;
      $settings['skip_output'] = false; 
      return $settings;
    }
    add_filter( 'avf_post_nav_settings', 'my_avf_post_nav_settings', 10, 1 );
    in reply to: Flex column animation at the end of a page not triggering #1164031

    you can use the implemented waypoint script but have your own settings with child-theme functions.php.

    for some enfold animations it is only necessary to have fired it once the point of triggering is passed. But sometimes it is nice to include if scroll-direction is important:
    f.e. if you like to move a container from off-screen to the center – and on scrolling up it will go off-screen again

    for that i use to toggle a class to which i can give the animation rules. The element to observe gets a custom class ( f.e. inview )

    function scroll_up_down_change() {
    ?>
    <script>
        (function($) {
    	var element_to_animate = $('.inview');
    	element_to_animate1.waypoint(function(direction) {
    		if (direction === 'down') {
    			$(this.element).addClass('animate-now');
    		}
    	 },{offset: '90%'}
    	);
    	element_to_animate1.waypoint(function(direction) {
    		if (direction === 'up') {
    			$(this.element).toggleClass('animate-now');
    		}
    	 },{offset: '90%'}
    	);			  
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'scroll_up_down_change', 9999);

    then you can play with offset too.
    By the way i believe the 100% offset is if it comes on the bottom into view – so maybe the 90% will do the trick on the change above

    See here the last button on that page uses 90% : https://webers-testseite.de/buttons/

    and an enfold animation – but you can have your own keyframes aswell – just define it for the toggled class.
    Or: See here how it can be used to change header_bg background-color on color-section dependencies.: https://kriesi.at/support/topic/menu-bar-with-dynamically-changing-colors-referencing-the-background/#post-1161520

    hm ? i did not do that Ismael and see image above: Link and my Categories Label is that way. The only thing left as portfolio is the permalink settings. ( same Image – over that red button “Änderungen speichern” )

    in reply to: Custom Bulletpoints #1163891

    on former times that was a hard stuff to realize. – Because the list-style-image had a bad browser support but it seem that time has changed a bit:
    https://caniuse.com/#search=list-style-image

    in reply to: Effect in sections with circles icons. #1163773

    if you like to have that sonar effect too: just replace the first part : overflow:hidden to overflow:visible see testpage:

    .av_font_icon.av-icon-style-border.move .av-icon-char {
        position: relative;
        display: inline-block;
        overflow: visible;
        background-color: #fff;
    	-webkit-transition: background .5s,color .5s,-webkit-box-shadow .5s;
    	transition: background .5s,color .5s,-webkit-box-shadow .5s;
    	transition: background .5s,color .5s,box-shadow .5s;
    	transition: background .5s,color .5s,box-shadow .5s,-webkit-box-shadow .5s;
    	border-radius: 50%;
    	-webkit-box-shadow: 0 0 0 2px #bbb;
    	box-shadow: 0 0 0 2px #bbb;
            height: 80px;
    }

    and see here – the height must set to the icon dimension for that

    in reply to: Effect in sections with circles icons. #1163771

    because Enfold uses as icons an icon-set and did some dimensions on that by line-height of the entypo fontello font. we must reconstruct a bit on that. On your example page there are svg as icons!

    If you choose the big icon alb and animation only have icons with links.

    you must look to that setup : i have choosen 80px icon-height ! this had to be synchronized with one css setting of that effect.
    I gave to the icon alb elment a custom-class of: move

    here is the result: https://webers-testseite.de/icon-in-motion/

    what i now try to achieve is that the radar effect of enfold is included to that effect.

    here is the interims code:

    .av_font_icon.av-icon-style-border.move .av-icon-char {
        position: relative;
        display: inline-block;
        overflow: hidden;
        background-color: #fff;
    	-webkit-transition: background .5s,color .5s,-webkit-box-shadow .5s;
    	transition: background .5s,color .5s,-webkit-box-shadow .5s;
    	transition: background .5s,color .5s,box-shadow .5s;
    	transition: background .5s,color .5s,box-shadow .5s,-webkit-box-shadow .5s;
    	border-radius: 50%;
    	-webkit-box-shadow: 0 0 0 2px #bbb;
    	box-shadow: 0 0 0 2px #bbb;
        height: 80px;
    }
    
    .av_font_icon.av-icon-style-border.move .av-icon-char:hover {
        background-color:  #6b6b6b;
          -webkit-box-shadow: 0 0 0 6px rgba(0,0,0,.1);
        box-shadow: 0 0 0 6px  rgba(0,0,0,.1);
    }
    
    .av_font_icon.av-icon-style-border.move .av-icon-char:before {
        position: absolute;
        left: 50%;
        top: 50%;
        -webkit-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);
    }
    
    .av_font_icon.av-icon-style-border.move .av-icon-char:hover:before {
        animation: toRightFromLeft .5s forwards;
        color: #fff
    }
    
    /***  animation for that ****/
    @-webkit-keyframes toRightFromLeft {
     49% {
      -webkit-transform:translateX(100%) translateY(-50%);
      transform:translateX(100%) translateY(-50%)
     }
     50% {
      opacity:0;
      -webkit-transform:translateX(-100%) translateY(-50%);
      transform:translateX(-100%) translateY(-50%)
     }
     51% {
      opacity:1
     }
    }
    @keyframes toRightFromLeft {
     49% {
      -webkit-transform:translateX(100%) translateY(-50%);
      transform:translateX(100%) translateY(-50%)
     }
     50% {
      opacity:0;
      -webkit-transform:translateX(-100%) translateY(-50%);
      transform:translateX(-100%) translateY(-50%)
     }
     51% {
      opacity:1
     }
    }
    in reply to: Centering the logo on mobile #1163751

    first a few words: in a development phase in which you want to get help it would be nice to release the context menu button of the mouse on a website. Then it would be good if also optimization tools and merging were switched off; only then it is possible to localize the rules exactly which disturb.
    Then you can also say exactly where rules and the also still important useless too much were set. That was also the case here. So now to the first attempt:

    Get rid of some rules in your code :
    f.e.: ( as i said i can not give advice because of merging tools )

    @media only screen and (min-device-width :375px) and (max-device-width :736px) and (orientation :portrait){
    	.responsive .logo img {
    	height:130px!important;
    	max-height:130px;
    	width:300px;
    	max-width:300px
    	}
    }

    There must be similar rules that are for screenwidth less than 990px – they were set sometimes to important – thats why they disturb the real interaction.

    my rules here are set to important – the only way to get them work because other logo rules ( container and image) are present too here:
    maybe you can do it without important when the set of competing rules has been removed.

    @media only screen and (min-width: 768px) and (max-width: 989px) {
    	.responsive .logo {
    	  position: absolute !important;
    	  width: 100% !important;
    	}
    
    	.responsive .logo img {
    	  max-width: inherit !important;
    	  max-height: 250px !important;
    
    	}
    }
    
    @media only screen and (max-width: 767px) {
    	.responsive .logo {
    	  position: relative !important;
    	  width: 100% !important;
    	}
    
    	.responsive .logo img {
    	  max-width: inherit !important;
    	  max-height: 250px !important;
    	  margin-top: 50px !important;
    	}
    }

    btw: Is the placement of the shopping cart there wanted?
    In the responsive case, when the screen width becomes small, I have placed it next to the other symbols at the top.

    See Film: https://webers-testseite.de/celtic.mp4
    PS : make the film fullscreen then you can see on top the screenwidth in px

    in reply to: Centering the logo on mobile #1163679

    quite confused up there in your css.
    What would I do now in a hurry.

    I would make myself a top 1/1 container ( no color-section) with your logo ( image ALB Element) in it, and link that image to the homepage.
    I would only display this container in the responsive case, while I would set the entire logo (span.logo) container to Display: none.
    Then only a small correction regarding #main padding would be necessary. Done.
    So that you don’t have to set this container on all pages, I would set it with jQuery as first-child of #main on all pages.

    See here a quick test page : https://webers-testseite.de/cynthia/special-header/

    you can insert this image on each site by filter

    add_action('ava_after_main_container', function() {
      echo do_shortcode("[av_one_full …]…[/av_one_full]");
    });
    in reply to: Promo box inside & outside color section #1163597

    Anyway the fact is that there are empty p-tags:

    and that is because of the rule above the reason for different behavior.

    See here your first link markup:

    in reply to: desktop 3 columns > tablet 2 columns > mobile 1 column #1163572

    Bitte – gern geschehen.

    Das kann man natürlich auch auf andere Elemente von Enfold übertragen. Iconboxes etc. pp

    Immer wenn gleiche Elemente auftauchen, die in einem gemeinsamen Elternelement stecken.
    Gilt zB auch für Listenpunkte – oder Hauptmenu Navigations Punkte.
    Bis dann

    in reply to: Promo box inside & outside color section #1163550

    Edit: That was a little too much urge to communicate here in this answer – therefore : away with it.
    The above is enough for your solution.

    in reply to: Promo box inside & outside color section #1163549

    i guess your site with promo box on the second case is built inside a text-block ? or similar to it.
    The wpautop filter adds some empty p-tags ( <p></p> ) here :
    and because of rule that influences headings as sibling of p-tag :

    p + h1, p + h2, p + h3, p + h4, p + h5, p + h6 {
        margin-top: 1.5em;
    }

    there will be that outlook.
    you can redefine the rule for promo-box – or deactivate wpautop filter in WordPress. (

    Or remove with one child-theme functions.php snippet all empty p-tags at all:

    function remove_empty_p_tags(){
    ?>
    <script type="text/javascript">
    (function($) {
        $('p:empty').remove();
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'remove_empty_p_tags');

    the margin on bottom of the whole promo-box is the same in both cases – but top margin is set here to another value – look into developer tools to see difference

    in reply to: desktop 3 columns > tablet 2 columns > mobile 1 column #1163547

    and here you see next advantage – the columns “width” 1/3 has no influence – what do you think would happen if i declare this for large screens?

    @media only screen and (min-width:1800px) {
      .three-two-one .entry-content-wrapper .flex_column {
        flex: 0 1 15%;
      }
    }
    in reply to: desktop 3 columns > tablet 2 columns > mobile 1 column #1163497

    on my test page i took a different screen-width range.

    /****  your tablet definitions - play with the values as you like  ***/
    @media only screen and (min-width: 600px) and (max-width: 989px) {
      .three-two-one .entry-content-wrapper .flex_column {
        flex: 0 1 47%;
      }
    }
    
    /*** this is not necessary because on that screen-width the Enfold default is 100%  ***/
    @media only screen and (max-width: 599px) {
      .three-two-one .entry-content-wrapper .flex_column {
        flex: 0 1 100%;
      }
    }

    you decide what looks best for your page
    All new browser can do that – but if you like to have a better browser coverage – see here: https://kriesi.at/support/topic/browser-specific-css/

    in reply to: desktop 3 columns > tablet 2 columns > mobile 1 column #1163495

    Well best would be to ignore Enfold Settings and play a bit with flexbox layout.

    on my testpage you see on top the flexbox – and in the grey color-section this is columns declaration on default.
    i gave to the top color-section a custom-class of: three-two-one :lol
    the top columns ( i take 1/3 – but this is not important ) – but take individual height please

    To play a bit with justify-content it would be nice to only have columns in that container and no :before and :after pseudo elements
    (thats the first rule)
    Put this to quick css then:

    .three-two-one .entry-content-wrapper:before,
    .three-two-one .entry-content-wrapper::after{
      display: none;
    }
    
    .three-two-one .entry-content-wrapper {
      display: flex;
      flex-flow: row wrap;
      justify-content:  space-between;
      align-items: stretch
    }
    
    .three-two-one .entry-content-wrapper .flex_column {
      flex: 0 1 28%;
      margin:0;
      padding: 0;
      margin-bottom: 3% 
    }
    
    /****  your tablet definitions - play with the values as you like  ***/
    @media only screen and (min-width: 768px) and (max-width: 989px) {
      .three-two-one .entry-content-wrapper .flex_column {
        flex: 0 1 47%;
      }
    }
    
    /*** this is not necessary because on that screen-width the Enfold default is 100%  ***/
    @media only screen and (max-width: 767px) {
      .three-two-one .entry-content-wrapper .flex_column {
        flex: 0 1 100%;
      }
    }

    you can see here the test page: https://webers-testseite.de/3columns/

    _____
    here a nice overview to flexbox layout: https://css-tricks.com/snippets/css/a-guide-to-flexbox/
    here a playground to get a feeling on what could be done ( sorry this is german page – but you can play with checkboxes on bottom ) : https://www.mediaevent.de/css/display-flex.html

    on the last link for example see the part with : justify-content.
    now you see why i do no want to have before and after containers in it – these would be handled like flex items .
    The align-items : stretch results in “equal height containers” etc.

    A really might “tool” – isn’t it ?

    in reply to: Make whole portfolio grid entry link #1163407

    you see the code above the selector is: grid-entry but to exclude the ajax thing i find it via grid-sort-container
    and to exclude the ajax option there is the not rule
    this is only for grid layout

    in reply to: Custom Bulletpoints #1163406

    is there a link to see – it is easier to give advice then

    in reply to: Unmute on Layerslider #1163354

    How did you embed the video in the Layerslider?
    As a layer or background? A few settings that you can set depend on that.

    Just try to set the play muted to disabled

    in reply to: Darstellung des Sticky Mobile Burgers verändern #1163344

    with that background-image it is hard to recognize that there is a hamburger to click.
    And i would not show the advanced layerslider on responsive case ( mobile, small screens )

    maybe you style the colors a bit and make the line-height of the burger not shrink with the script:

    .header_color .av-hamburger:not(.is-active) .av-hamburger-inner, 
    .header_color .av-hamburger:not(.is-active) .av-hamburger-inner::before, 
    .header_color .av-hamburger:not(.is-active) .av-hamburger-inner::after {
    	background-color: #f4f1cb;
        -webkit-filter: drop-shadow(1px 1px 3px #000);
    	filter: drop-shadow(1px 1px 3px #000);
    }
    
    .responsive #top #header_main > .container .main_menu .av-main-nav > li > a {
      line-height:82px !important;
    } 
Viewing 30 posts - 5,941 through 5,970 (of 11,707 total)