Forum Replies Created

Viewing 30 posts - 1,321 through 1,350 (of 11,475 total)
  • Author
    Posts
  • in reply to: Change google maps styling #1440350

    it works in this manner with google json:

    by the way Patrick : the original snazzy json code (https://snazzymaps.com/) is similar to google code – so where did you get your snazzy code?

    add_filter( 'avf_gmap_vars', function($maps) {
    $googleStyles = 
    
    // here is the place to insert the edited google styling json
    //  all curly brackets had to be changed to square brackets
    //  and the ":"     had to be replaced by: "=>"
    
            // edited google json code comes here from : https://mapstyle.withgoogle.com/
    
    // end of insertion
    
    ;
        $maps['av_google_map']['av_gmap_0']['styles'] = json_encode($googleStyles);
        return $maps;
    });
    in reply to: Change google maps styling #1440347

    the json method is used by google maps api long time ( in the meantime there is a cloud console for that) . https://mapstyle.withgoogle.com/ – they use a very similar json code like your “snazzy” one for styling.

    is it possible to adapt that for the native google json?

    Edit: it works with the google json aswell. In this case i do not name it snazzy.

    But you had to edit a bit that output code of google json !

    Changes in avia_google_maps_api.js are the same – and because it is set by a ternary operator there is nothing to stop it being included for the next release – right?

    f.e.:

    add_filter( 'avf_gmap_vars', function($maps) {
    $googleStyles = 
    
    // here is the place to insert the edited google styling json
    // all curly brackets had to be changed to square brackets - and the ":"     had to be replaced by: "=>"
    
    [
      [
        "elementType"=> "geometry",
        "stylers"=> [
          [
            "color"=> "#ebe3cd"
          ]
        ]
      ],
      [
        "elementType"=> "labels.text.fill",
        "stylers"=> [
          [
            "color"=> "#523735"
          ]
        ]
      ],
      [
        "elementType"=> "labels.text.stroke",
        "stylers"=> [
          [
            "color"=> "#f5f1e6"
          ]
        ]
      ],
      [
        "featureType"=> "administrative",
        "elementType"=> "geometry.stroke",
        "stylers"=> [
          [
            "color"=> "#c9b2a6"
          ]
        ]
      ],
      [
        "featureType"=> "administrative.land_parcel",
        "elementType"=> "geometry.stroke",
        "stylers"=> [
          [
            "color"=> "#dcd2be"
          ]
        ]
      ],
      [
        "featureType"=> "administrative.land_parcel",
        "elementType"=> "labels.text.fill",
        "stylers"=> [
          [
            "color"=> "#ae9e90"
          ]
        ]
      ],
      [
        "featureType"=> "landscape.natural",
        "elementType"=> "geometry",
        "stylers"=> [
          [
            "color"=> "#dfd2ae"
          ]
        ]
      ],
      [
        "featureType"=> "poi",
        "elementType"=> "geometry",
        "stylers"=> [
          [
            "color"=> "#dfd2ae"
          ]
        ]
      ],
      [
        "featureType"=> "poi",
        "elementType"=> "labels.text.fill",
        "stylers"=> [
          [
            "color"=> "#93817c"
          ]
        ]
      ],
      [
        "featureType"=> "poi.park",
        "elementType"=> "geometry.fill",
        "stylers"=> [
          [
            "color"=> "#a5b076"
          ]
        ]
      ],
      [
        "featureType"=> "poi.park",
        "elementType"=> "labels.text.fill",
        "stylers"=> [
          [
            "color"=> "#447530"
          ]
        ]
      ],
      [
        "featureType"=> "road",
        "elementType"=> "geometry",
        "stylers"=> [
          [
            "color"=> "#f5f1e6"
          ]
        ]
      ],
      [
        "featureType"=> "road.arterial",
        "elementType"=> "geometry",
        "stylers"=> [
          [
            "color"=> "#fdfcf8"
          ]
        ]
      ],
      [
        "featureType"=> "road.highway",
        "elementType"=> "geometry",
        "stylers"=> [
          [
            "color"=> "#f8c967"
          ]
        ]
      ],
      [
        "featureType"=> "road.highway",
        "elementType"=> "geometry.stroke",
        "stylers"=> [
          [
            "color"=> "#e9bc62"
          ]
        ]
      ],
      [
        "featureType"=> "road.highway.controlled_access",
        "elementType"=> "geometry",
        "stylers"=> [
          [
            "color"=> "#e98d58"
          ]
        ]
      ],
      [
        "featureType"=> "road.highway.controlled_access",
        "elementType"=> "geometry.stroke",
        "stylers"=> [
          [
            "color"=> "#db8555"
          ]
        ]
      ],
      [
        "featureType"=> "road.local",
        "elementType"=> "labels.text.fill",
        "stylers"=> [
          [
            "color"=> "#806b63"
          ]
        ]
      ],
      [
        "featureType"=> "transit.line",
        "elementType"=> "geometry",
        "stylers"=> [
          [
            "color"=> "#dfd2ae"
          ]
        ]
      ],
      [
        "featureType"=> "transit.line",
        "elementType"=> "labels.text.fill",
        "stylers"=> [
          [
            "color"=> "#8f7d77"
          ]
        ]
      ],
      [
        "featureType"=> "transit.line",
        "elementType"=> "labels.text.stroke",
        "stylers"=> [
          [
            "color"=> "#ebe3cd"
          ]
        ]
      ],
      [
        "featureType"=> "transit.station",
        "elementType"=> "geometry",
        "stylers"=> [
          [
            "color"=> "#dfd2ae"
          ]
        ]
      ],
      [
        "featureType"=> "water",
        "elementType"=> "geometry.fill",
        "stylers"=> [
          [
            "color"=> "#3300ff"
          ],
          [
            "lightness"=> 40
          ]
        ]
      ],
      [
        "featureType"=> "water",
        "elementType"=> "labels.text.fill",
        "stylers"=> [
          [
            "color"=> "#ffffff"
          ]
        ]
      ]
    ]
    // end of insertion
    
    ;
        $maps['av_google_map']['av_gmap_0']['styles'] = json_encode($googleStyles);
        return $maps;
    });
    • This reply was modified 1 year, 2 months ago by Guenni007.
    • This reply was modified 1 year, 2 months ago by Guenni007.

    Nun dann teste das doch mal per ftp! Und gib Bescheid.

    Wenn du das Filter (avg_logo) in deiner functions.php schon einmal für einen anderen Einsatz genutzt hast, käme es bei mir zu einer Fehlermeldung:

    Cannot redeclare av_change_logo() …

    Es könnte sein, das dein WordPress mit deiner Fehlermeldung das quittiert.
    Du müsstest in dem Fall diese Sachen zusammen abhandeln durch mehrere if statements.

    ___________
    Well then test it via ftp! And let us know.

    If you have already used the filter (avg_logo) in your functions.php for another application, I would get an error message: (see above)
    It could be that your WordPress confirms this with your error message.
    In this case, you would have to handle these things together using several if statements.

    Kannst du bitte den korrekten link angeben – nur die ID reicht nicht aus um das Teil schnell zu finden.

    in reply to: Place more than one Icon with Text Item in Top Bar #1440319

    getting the whole phone-info in the center position it is only one additional quick css ( best is then to have no top navigation in addition)

    
    .phone-info {
      float: left !important;
      position: relative;
      left: 50%;
      transform: translateX(-50%);
    }

    it might be necessary to have on transform a bit different value ( like on my page it is -47%)

    I just wanted to mention that this has happened to me before. You press trash/bin and think the page has been deleted. But the permalink remains blocked until the trash is emptied.

    in reply to: Change google maps styling #1440219

    it is in framework folder – php – class-gmaps.php line: 378 inside public function handler_wp_footer()

    the “marin-real-estate-blog” exists?
    If you have that page deleted – but not emptied the trash (bin) – the permalink is blocked – and a newly added page with the same name will get the permalink with an index.

    in reply to: change style of read more #1440191

    it is still the png as logo. you can just upload that file to media library and insert it to the logo input field.
    Enfold will recognise that you have it centered on top – and will adjust the setting inside the svg ( preserveAspectRatio )

    because you merge the css and js files – refresh that on Performance – Delete Old CSS And JS Files? at the bottom

    in reply to: Place more than one Icon with Text Item in Top Bar #1440137

    on your setting now try this in quick css:

    .phone-info div > span {
      display: inline-block;
      float: none;
    }

    but such a code is hard to edit so i wouldn’t work with enfold-shortcodes here – but pur html will work too.
    f.e in phone-number input field

    <a href="link1"><span class="map">Location</span></a><a href="link2"><span class="contact">Contact</span></a><a href="tel:+490221123456"><span class="tel">Phone</span></a>

    see here on header meta: https://webers-testseite.de/text/

    after that the classes will do their job in quick css:

    .responsive #header_meta .phone-info span {
        color: #aaa;
        margin-right: 15px;
        font-size:16px
    }
    
    .phone-info span::before {
        font-family: entypo-fontello;
        font-size: 24px;
        padding-right: 5px;
        position: relative;
        top: 2px;
    }
    
    .phone-info .map::before { content: "\e842"; color: #900}
    .phone-info .contact::before { content: "\e805"; color: #090}
    .phone-info .tel::before { content: "\e854"; color: #009}
    .phone-info .mail::before { content: "\e805"; color: #090}
    in reply to: Favicon on ios #1440135

    On my devices (iphone and ipad) the favicon is not visible. The problem only occurs with enfold, other sites have no problems.

    That is the reason why i ask for a link to a page where it is working for you. ( not your site – but the one – without enfold where you can see on your iPhone what you like to have.) then we can inspect the differences in head section.

    in reply to: Favicon on ios #1440075

    can you link to a page where the icons are shown, so we can have a look to the head section how the icons are linked.
    Next iPhone – what kind of device you are using and what iOS is running? – And you are talking about Safari on iOS?

    in reply to: Favicon on ios #1440052

    I’m not even sure if they were ever in the url line. Apple Touch icons work well anyway. And even on my older iPhone with iOS 16.5, I can only see them when I look at the open tabs.

    If you do a Google search yourself, you’ll see that it seems not to be an Enfold problem, but a general problem.

    have a look at your enfold settings concering “performance”
    do you use f.e. the option: Responsive Images ?
    A slider set up for desktop can have images wider than 1500px – if you do not use the responsive image option these sliders will have on small screens the same image source.

    in reply to: change style of read more #1440037

    by the way – why don’t you use a svg as logo?
    sharpness will be much better:
    – you can download it here:
    https://webers-testseite.de/savenergy-logo.svg

    Comparison (with screenshot)

    in reply to: change style of read more #1440034

    you had to adjust to the color you like:

    
    #top .read-more-link .more-link {
      text-transform: uppercase;
      text-decoration: underline;
      color: #a6c626;
    }
    in reply to: Split 1 column into 2 rows #1440001

    The flex-cell itself has an editor option. Click the edit button of that cell on the right. There is a tab with “styling” options. On Cell padding you see the comment:

    Cell Padding
    Set the distance from the cell content to the border here. Theme default is 30px.

    if you set that padding to Zero – you won’t have that white space

    in reply to: Dünne Linie unter Farbsektion generell ausblenden #1439994

    Wenn du trotzdem alle ( auch die manuell gesetzten Einstellungen) überschreiben willst, könntest du in das Quick CSS folgendes setzen:
    ___
    If you still want to overwrite all settings (including the manually set ones), you could set the following in the Quick CSS:

    #top #wrap_all #main .container_wrap  {
      border-top-width: 0px;
    }
    in reply to: Dünne Linie unter Farbsektion generell ausblenden #1439993

    Welche Version von Enfold nutzt Du? Weil – ja es war mal so, dass die sections standardmäßig eine 1px top border erhielten; Seit man aber in den Einstellungen der Color-Section die Auswahl bei Layout – Border die Einstellung setzen kann, ist das wohl nicht mehr so.
    Die Standardeinstellung ist nämlich die, dass dann die Klasse: avia-no-border-styling gesetzt wird. Diese Klasse sorgt dafür , dass die Regel:

    .container_wrap {
      border-top-style: solid;
      border-top-width: 1px;
    }

    nicht mehr greift wegen:

    #top #wrap_all #main .avia-no-border-styling {
      border: none;
    }

    Wie gesagt, daher vermute ich Du nutzt eine ältere Version.

    ____________

    Which version of Enfold are you using? Because – yes, it used to be the case that the sections had a 1px top border by default; but since you can set the selection in the settings of the color section under Layout – Border, this is probably no longer the case.
    The default setting is that the class: avia-no-border-styling is then set. This class ensures that the rule:

    .container_wrap {
      border-top-style: solid;
      border-top-width: 1px;
    }

    no longer applies because of:

    #top #wrap_all #main .avia-no-border-styling {
      border: none;
    }

    So I assume you are using an older version.

    in reply to: Fonts not responsive #1439878

    if you set up a rule on “Advanced Styling” for example for a h1 – the rule is noted as:

    #top #wrap_all .all_colors h1 {
      font-family: 'brush script mt',Helvetica,Arial,sans-serif;
    }

    the selector got 2 IDs – so it has a high specifity (https://www.w3schools.com/css/css_specificity.asp)
    and see how the specifity counts: https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity

    But if there is another rule f.e. in quick css that got a higher specifity – or is set to !important – “Advanced styling rule” is ignored.
    f.e. as: #top #wrap_all #main .all_colors h1
    For this reason, I add rules to my Quick CSS with at least one ID (#top) that should “win”.
    I try to avoid using !important.

    in reply to: how to add hyperlink to table cell #1439877

    I hope I understand you correctly. You have inserted a table element (one of these Layout Builder elements). There you are trying to set a link to an external website in edit mode. What exactly did you insert into the table cell?
    (Please enter this in a code tag so that we can take a closer look.)

    like this :
    <a href="https://bridges2hs.org" target="_blank" rel="noopener">bridges2hs.org</a>

    in reply to: Fonts not responsive #1439799

    by the way you can upload ttf files to : https://transfonter.org/

    test this zip file f.e. – erase all your uploaded Montserrat zip files.
    https://webers-testseite.de/Montserrat.zip

    in reply to: Fonts not responsive #1439797

    if it is you page ( and your nick is very informative ) i think you have uploaded only that montserrat font (and gotham-pro) via the fontmanager – but you have uploaded the whole downloaded font zip file.
    Inside that zip there are variable font files and in a subfolder the static font files.
    your static font folder leads to the result that the Montserrat Font is listed as font-family: static

    By the way :
    new Enfold can also handle these variable font files – but I would recommend uploading them separately.

    For example, put the Montserrat variable files in a folder and name it Montserrat-variable.
    Pull out the static folder from the zip file and rename it to Montserrat.

    For performance reasons, it is now time to consider whether you really need all the fonts. The list is very long, especially for Montserrat. In principle, the variable fonts should be sufficient for all modern browsers.

    However, if you only need, for example, light, regualar and bold, it may even be better to upload only the static fonts (woff2, ttf). In addition, Montserrat is a font where the italic variant hardly differs from a normal slanted font.
    You could therefore live with the fact that only the normal font styles are uploaded and the italic fonts are converted by browser rendering.

    Then zip these two folders (please not in Mac Zip format – so without all the invisible files OSX packs in), but without the metadata. Betterzip also has a “zip for PC” option.
    Then upload these folders to the font manager.

    PS: the uploaded Fonts can be found at the bottom of the font dropdown list ;)

    in reply to: Sub logo not updated with avf_logo hook #1439690

    sorry one error there is an extra attr for Logo ID: header_replacement_logo_id

    so snippet has to be :

    function av_change_alt_logo_img($header){
        if(is_page(1313)) {
    	$header['header_class'] .= ' av_alternate_logo_active';  
            $header['header_replacement_logo_id'] = 3951;
        }
        return $header; 
    }
    add_filter('avf_header_setting_filter','av_change_alt_logo_img');
    in reply to: Masonry Gallery – Styling #1439646

    1) give a custom class to the masonry gallery – f.e. : custom-gap and put this to your quick css:

    #top #wrap_all .av-masonry.custom-gap .av-masonry-entry .av-inner-masonry {
      margin-right: 50px;
      margin-bottom: 50px;
    } 

    2) what do you mean by: gap is selected ?

    in reply to: Change Toggle Title in Accordion Feature to H3 #1439612

    From my point of view the topic can be closed now – thanks again.

    in reply to: Adjusting Blog Posts Grid Layout #1439587

    OK

    in reply to: Adjusting Blog Posts Grid Layout #1439574

    or maybe this is nicer to handle:
    just change now the wanted value on root setting ;)

    :root {
      --blog-margin-left-value : 2%;
    }
    
    #top .slide-entry.av_one_third.first {
      margin-left: 0px ;
    }
    
    #top .slide-entry.av_one_third {
      margin-left: var(--blog-margin-left-value);
      width: calc((100% - 2 * var(--blog-margin-left-value)) / 3);
    }

    PS: if you like to have no space use 0px ( not only Zero)
    if you like to be more specific – use a custom class on blog posts element

    :root {
      --blog-margin-left-value : 5%;
    }
    
    #top .avia-content-slider.custom-class .slide-entry.first {
      margin-left: 0px ;
    }
    
    #top .avia-content-slider.custom-class .slide-entry.av_one_third {
      margin-left: var(--blog-margin-left-value);
      width: calc((100% - 2 * var(--blog-margin-left-value)) / 3);
    }
    in reply to: Adjusting Blog Posts Grid Layout #1439572

    it depends on how many columns you have choosen in the blog-post alb element
    this is for a 3 column the default setting. Because the first column should have no margin-left – you see how it works ( 100% width – 2 times margin left = 88) so for the columns: 88/3 = 29,3333

    .slide-entry.av_one_third {
      margin-left: 6%;
      width: 29.333333333333332%;
    }

    so if you only like to have 3% then it is:

    #top .slide-entry.av_one_third.first {
      margin-left: 0px ;
    }
    
    #top .slide-entry.av_one_third {
      margin-left: 3%;
      width: 31.33333%;
    }

    this is very unusual for a wordpress media library. Because upload got a default big image limitation to 2540px.
    Have you turned of the limitation by:
    add_filter( 'big_image_size_threshold', '__return_false' );

    but you are right even with the scaled image of 2540px – it will be too big.

Viewing 30 posts - 1,321 through 1,350 (of 11,475 total)