Forum Replies Created

Viewing 30 posts - 4,261 through 4,290 (of 11,918 total)
  • Author
    Posts
  • in reply to: Custom ID for css code #1316285
    .postid-1307 #av_section_10 .avia_iconbox_title {
        font-size: 20px;
    }
    in reply to: Create a Pop Up at Enfold #1316284

    yes – but think of new jQuery 3.5.1
    jQuery(window).load(function(){ : it is deprecated – you had to use now:
    jQuery(window).on( 'load' , function(){

    in reply to: Smaller version of header for one page #1316283

    PS – if you do not like to have it sticky: change it to disabled
    – but do not forget to set the class too: av_header_sticky_disabled

    see: https://webers-testseite.de/weber/impressum/

    in reply to: Smaller version of header for one page #1316282

    my observation is that it would be very hard to determine for one page a shrinking if you do not have shrinking header on enfold options page.
    Guess it has something to do with embedding the scripts needed and to get rid of html class – set from beginning. Maybe Guenter knows a way to get this way around.
    But as i see – there is a shrinking header – that is possible to get rid of for one page

    i would use the filter a bit different. – Replace that code above ( save a copy of that snippet ) :

    function avf_header_setting_filter_mod($header) {
      if ( is_page(21) ) {
        $header['header_layout']      = 'logo_left main_nav_header menu_right';
        $header['header_sticky']      = 'header_sticky';
        $header['header_shrinking']   = 'disabled';
        $header['header_stretch']     = 'disabled';
        $header['header_size']        = 'custom'; // slim, large or custom
        $header['header_custom_size'] = '45' ; // if custom size : integer value in px
        // on default we do add here classes by .= but in this case
        $header['header_class'] = " av_header_top av_logo_left av_main_nav_header av_menu_right av_custom av_header_sticky av_header_shrinking_disabled av_header_stretch_disabled ";
      }
      return $header;
    }
    add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 10, 1);

    PS : on dropdown custom pixel value option less than 45px are not possible – on that snippet above you can even choose less than 45px

    in reply to: Portfolio grid: Questions #1316268

    PS : i assumed that all images have a link associated with them. If this is not the case, one would have to tinker with it again.

    PPS: I removed title attribute on hover – and bring back title on click or mouseleave. So there are no Tooltips – i do not like them ;)

    in reply to: Portfolio grid: Questions #1316267

    ok – thanks:
    see here: https://webers-testseite.de/hover-images/

    the trouble with it is – as mentioned above – that in image.css there is a rule set to !important.
    We must avoid that – here is the possibility to have a child-theme image.css. But i hope that developer will prove that standard enfold behavior will work without !important setting – and remove it on next update.

    Basic: Put in the custom css field of your image : hoverstyle2

    First:
    Snippet to have child-theme alb element replacement:
    (for child-theme functions.php ):

    function avia_include_shortcode_template($paths){
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
      return $paths;
    }
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);

    Second:
    download from pastebin these two files ( the child-theme image alb files ):
    https://pastebin.com/ndewwkx7 or download
    https://pastebin.com/WJTbAxJJ or download

    Third:
    Upload these two files to a child-theme folder named: “shortcodes”

    Fourth
    To preserve the alb setting for overlay color and opacity we store this overlay opacity in a variable and transfer that to a container of our choice:

    
    function style_a_hover_state(){
    ?>
    <script type="text/javascript">
    (function($) {
      $(document).ready(function(){ 
            $('.avia-image-container.hoverstyle2').each( function() {
            var initialOpacity = $(this).find('.av-caption-image-overlay-bg').css('opacity');
    			$(this).find('.avia_image').hover(function() {
    			  $(this).find('.av-caption-image-overlay-bg').css('opacity', initialOpacity );
    			}); 
            });  
      }); 
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'style_a_hover_state');

    Last:
    put this to your child-theme quick css:

    .hoverstyle2 .image-overlay {
      display: none !important;
    }
    
    .hoverstyle2 .avia-image-overlay-wrap .av-image-caption-overlay {
      pointer-events: none;
    }
    
    .hoverstyle2 .avia-image-overlay-wrap .av-image-caption-overlay {
      opacity: 0;
      transform: translateY(100%);
      transition: 0.5s transform cubic-bezier(.77,0,.18,1);
    }
    
    .avia-image-container:not(.av-hover-grow).hoverstyle2 .avia-image-overlay-wrap .av-image-caption-overlay {
      opacity: 1;
      transition: 0.5s all cubic-bezier(.77,0,.18,1);
    }
    
    .hoverstyle2 .avia-image-overlay-wrap a:hover.avia_image .av-image-caption-overlay {
      opacity: 1;
      transform: translateY(0);
      transition: 0.5s transform cubic-bezier(.77,0,.18,1) 0.3s , 0.5s opacity ease 0.5s;
      overflow: visible;
    }
    
    .hoverstyle2 .av-caption-image-overlay-bg {
      width: calc(100% - 50px);
      height: calc(100% - 50px);
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    
    .av-hover-grow.hoverstyle2 .av-caption-image-overlay-bg {
      width: calc(90% - 50px);
      height: calc(90% - 50px);
    }
    
    .av-hover-grow:not(.av-hide-overflow).hoverstyle2 .av-caption-image-overlay-bg {
        width: calc(110% - 50px);
        height: calc(110% - 50px);
    }
    
    .av-image-caption-overlay-center p {
        padding: 5px;
    }
    
    .av-hover-grow.hoverstyle2 .avia-image-overlay-wrap:hover a.avia_image::before, 
    .av-hover-grow.hoverstyle2 .avia-image-overlay-wrap:hover a.avia_image::after {
      transform: scale(0.9);
    }
    
    .av-hover-grow:not(.av-hide-overflow).hoverstyle2 .avia-image-overlay-wrap:hover a.avia_image::before, 
    .av-hover-grow:not(.av-hide-overflow).hoverstyle2 .avia-image-overlay-wrap:hover a.avia_image::after {
      transform: scale(1.1);
    }

    PPS: these little frames growing on hover are hoverstyle1:

    .hoverstyle1 .image-overlay {
      display: none !important;
    }
    
    .hoverstyle1 a.avia_image:before, 
    .hoverstyle1 a.avia_image:after {
      content: '';
      position: absolute;
      top: 10px;
      right: 10px;
      bottom: 10px;
      left: 10px;
      -webkit-transition: all 0.5s ease;
      -ms-transition: all 0.5s ease;
      transition: all 0.5s ease;
      pointer-events: none;
      background: transparent;
      width: auto;
      height: auto;
      z-index: 10;
    }
    
    .hoverstyle1 a.avia_image:before {
      border-top: 2px solid #fff;
      border-bottom: 2px solid #fff;
      -webkit-transform: scaleX(0);
      -ms-transform: scaleX(0);
      transform: scaleX(0);
    }
    
    .hoverstyle1 a.avia_image:after {
      border-left: 2px solid #fff;
      border-right: 2px solid #fff;
      -webkit-transform: scaleY(0);
      -ms-transform: scaleY(0);
      transform: scaleY(0);
    }
    
    .hoverstyle1 .avia-image-overlay-wrap:hover a.avia_image:before, 
    .hoverstyle1 .avia-image-overlay-wrap:hover a.avia_image:after {
      -webkit-transform: scale(1);
      -ms-transform: scale(1);
      transform: scale(1);
    }

    Result page: https://webers-testseite.de/hover-images/
    so – if you like both hoverstyles on the image – put in the custom css field: hoverstyle1 hoverstyle2

    in reply to: Portfolio grid: Questions #1316226

    no login is needed – send me the page it concerns. Screenshots do not help me.

    Maybe I’ll explain what I’m talking about:
    If I have a live page, I can test and examine all css settings in advance using the developer tools that come with such a browser – without ever having to change anything in your source code. The setting as you have created the ALB is then in the DOM as your settings are. Even jQuery scripts can be run in the console. So a screenshot is not really a substitute for the live page.
    It would also be enough for me if you find a page in the demos that is set analogously to yours. For example: if you tell me that you are interested in the images like here: https://kriesi.at/themes/enfold-2017/elements/image/.

    in reply to: Portfolio grid: Questions #1316153

    PM is not for me- i’m participant as you. So when i should help you – you had to be more precise what settings of image alb you set. And the most easiest way is to show me a page where this should work.

    in reply to: Portfolio grid: Questions #1316135

    but – sorry then i would like to see your site!
    Always rebuilding the situation on my own sites costs a lot of time.
    __________
    one thing to mention before this to the developers. I do not understand why some of the settings in enfold css are set to !important.
    Each individual change stops working on this.

    F.e.:
    The rule in image.css :

    .av-overlay-hover-deactivate .avia-image-overlay-wrap:hover .av-caption-image-overlay-bg{opacity: 0 !important;}
    

    it will work too without that setting to important. But it is hard to overwrite if we like to change it.

    in reply to: Inline SVG Graphics displaced and cut by other elements #1316037

    wobei ich momentan die gleich svg auf deiner Seite sehe.

    Edit:
    but remember – there are reasons for inline clip-path in svgs. But the one – building the whole rectangle is unnecessary in this case

    in reply to: Inline SVG Graphics displaced and cut by other elements #1316028

    ;) next svg info: there is a clip-path in it !
    Well – a clip-path does what it is supposed to do.
    If this clip-path is not present – it will show even the path’s with the translation from the second svg !

    in reply to: Inline SVG Graphics displaced and cut by other elements #1316023

    i did not look completely through your svgs – if there are duplicate IDs ( or even classes – when they were determined differently ) you had to avoid that too!
    Not only that this will end up in an invalid html document in case of IDs ;)

    in reply to: Inline SVG Graphics displaced and cut by other elements #1316018

    you have two svg on your site ( like on css ) if there are the same rules – the last one wins ;)

    in your second svg there you use the same keyframe names – with different translation amounts ! ( MoveUpDown, MoveUpDownS and MoveUpDownS2 )
    the setting of the second one will influence the first one and is defining the rules for those keyframes.

    PS: this happens a lot with classes in svg created by Illustrator.
    All Illustrator Classes ( if not set have st0, st1, st2 etc. pp.)

    PPS: rename in one of the svg your keyframes – f.e. in the second one by MoveUpDownS3 , MoveUpDownS4, MoveUpDownS5
    do not forget to insert the new names in the animation rules.

    • This reply was modified 4 years, 5 months ago by Guenni007.
    in reply to: Inline SVG Graphics displaced and cut by other elements #1315966

    can you show me the svg please.
    A link to a public place would be ok.

    Update to Enfold 4.8.6 and use for the setting auto and a limiting height or none

    EDIT – ok i found your website – these svgs do not concern to the svg defiders. – which I mistakenly assumed without seeing the page.

    in reply to: Automatic update of an ALB element #1315913

    You are welcome

    in reply to: Automatic update of an ALB element #1315859

    I am not quite sure that I understand the question correctly.
    A new “order” is added and it is included to an alb (f.e. a fullwidth-slider, or partner-logo) . On each of the individual customer pages, this ALB then appears again with the changed data, but it is on all customer pages the same banner! ?

    ________

    what if you create a new page – with only that banner. This is the page you had to add the new “order”.
    Then you can add that banner via “Page Content” ALB to your customer pages.
    Eachtime you edit that Content – it will be synchonized to all customer pages.

    in reply to: Portfolio grid: Questions #1315826

    all following adjacents
    the heading and the excerpt got background colors – avoiding to have two rules for that – i decided to give to all children that attribute.

    Next way to automatism.
    the excerpt – if it is a long excerpt like on my example on third or fourth entry it will be as mentioned above better to set the justify-content to : flex-start.

    On css the parent selektor does not exist and a selector for “element does not have sibling with a child with class”
    so if you like to make this perfect : we have to have a class that decides if there is an excerpt or not.
    I put this to child-theme funtions.php:

    function add_class_if_excerpt(){
    ?>
    <script type="text/javascript">
    (function($) {
    	$(document).ready(function(){ 
    		$('.grid-entry').each( function() {
    			if($(this).find('.grid-entry-excerpt').length !== 0){
    				$(this).find('.grid-content').addClass('has-excerpt');
    			};
    		});
    	});	
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'add_class_if_excerpt');

    so if there is an excerpt – the grid-content container got the class: has-excerpt now.

    then we can style it as above ( with justify-content: space-around ) – and have that extra rule:

    .grid-content.has-excerpt {
      justify-content: flex-start;
    }

    => Stand alone Titles will be centered and those with excerpt are placed on top.

    btw: now you can have different settings f.e.:

    .grid-content.has-excerpt {
        transform: translate(-50%, 40%);
        opacity: 1;
    }
    
    .grid-content:not(.has-excerpt) {
        transform: translate(-50%, 50%);
        opacity: 0;
    }

    with excerpt the title is visible and on hover the whole thing is shown

    in reply to: Portfolio grid: Questions #1315814

    PPS : i had to find a solution for much content in small entries … if shifting the content on hover to top
    Edit: done – just set the beginning opacity to zero for grid-content.

    in reply to: Portfolio grid: Questions #1315810

    just for info:
    the general sibling selector is the tilde : ~ ( that means all siblings those before and after the selected element )
    but if we want the adjacent sibling it is the plus sign : +

    you can even influence the transiton for it not synchronized by:

    transition: 0.3s opacity ease, 1s transform ease;
    separated by commas

    in reply to: Portfolio grid: Questions #1315804

    see f.e. here: https://webers-testseite.de/xeovision4/

    .grid-entry  .inner-entry {
      overflow: hidden !important
    }
    
    .grid-content {
      display:flex;
      flex-flow: column nowrap;
      justify-content: space-around;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, 50%);
      width: 100%;
      height: 100%;
      padding: 10px;
      background: rgba(255,255,255,0.9) !important;
      z-index: 0;
      opacity: 0;
      transition: 1s all ease;
      pointer-events: none;
    }
    
    .grid-content * {
      background: transparent !important
    }
    
    .image-overlay {
      display: none !important;
    }
    
    .grid-content .avia-arrow {
      display: none;
    }
    
    a:hover.grid-image +  .grid-content {
      opacity: 1;
      transform: translate(-50%, -50%);
      transition: 1s all ease;
    }

    PS : the excerpt should not be too long. If so – you must accept that there will be a cutoff on that. You then had to choose for grid-content
    justify-content: flex-start;

    btw: the pointer-events: none is important – otherwise you will loose link functionality on anchor.

    • This reply was modified 4 years, 5 months ago by Guenni007.
    in reply to: Portfolio grid: Questions #1315801

    Then grid-content is a sibling ( not a descendent ) to the anchor
    so maybe you had to use the sibling selector for it (a:hover.grid-image + .grid-content)

    in reply to: Portfolio grid: Questions #1315787

    First : what should this do – is an outcommentation for you ?
    xxxopacity: 0;

    Next: the whole overlay story is that the
    overlay-color comes from image-overlay class
    and
    overlay-image comes from image-overlay-inside class

    in reply to: get text box elements to overlap image elements #1314902

    hope this will help you: https://webers-testseite.de/overlapping/

    in reply to: Problem with mobile view Enfold 4.8.6 #1314901

    don’t know why this happens – you can avoid it by quick css:

    .responsive #top.page-id-206 #av_section_2 .flex_column:first-of-type {
    margin-top:-450px ;
    margin-bottom:100px;
    }
    in reply to: Wrong URL in my code! #1314861

    But your site now is online – what was the matter with it Karen?

    in reply to: Portfolio grid: Questions #1314681

    so why don’t you use then instead masonry ! The Masonry offers to show even Portfolios.
    if you do not like the 3d animation – get rid of it by:

    .avia_desktop.avia_transform3d .av-masonry-entry {
        perspective: none !important;
    }
    in reply to: Open Graph support #1314594

    yes and ( that was new to me too ) the link to ogp.me shows me that this might be a mandatory entry:
    <html prefix="og: https://ogp.me/ns#">

    f.e.: https://freecodetools.org/ogp/
    the code you got there comes to:

    function add_meta_to_head(){
    ?>
            <html prefix="og: https://ogp.me/ns#">
            // replace this by the code from ogp generators
    <?php
    }
    add_action('wp_head', 'add_meta_to_head');
    in reply to: Wrong URL in my code! #1314592

    yes – seems to be a good idea.

    in reply to: Custom SVG divider #1314458

    In principle, I warned a long time ago against inflating this very good theme unnecessarily. Unfortunately, such a top theme must also submit to the taste of the times – and offer as many users as possible the opportunity to set such separators themselves without the help of web designers.
    Offering these things is already a competitive advantage. Elementor, Divi, etc. pp are fighting for market share.
    Used sparingly, these svg separators can serve to offer a more relaxed structure – or to set smaller accents.

    in reply to: Open Graph support #1314456

    By the way – if you want to do it the very right way – the image could be defined by that:

    <meta property="og:image" content="https://example.com/ogp.jpg" />
    <meta property="og:image:secure_url" content="https://secure.example.com/ogp.jpg" />
    <meta property="og:image:type" content="image/jpeg" />
    <meta property="og:image:width" content="1200" />
    <meta property="og:image:height" content="630" />
    <meta property="og:image:alt" content="A shiny red apple with a bite taken out" />

    see: https://ogp.me

Viewing 30 posts - 4,261 through 4,290 (of 11,918 total)