Forum Replies Created
-
AuthorPosts
-
First to be clear what is your setup:
You got a grid-row and like to have in one grid-cell an image and in another one a link to a film ( youtube, vimeo etc.) both should open in lightbox.“And on another column I would like…” then you are talking about columns .
So please be more precise in your question.here i got a grid-row –
first grid-row:
on the left there is in it an easy-slider with one image and lightbox setting.
on the second cell i placed an image with video link ( video url with iframe=true option )
with this setting lightbox gallery will worksecond grid-row:
on the left there is in it an easy-slider with one image and lightbox setting.
on second cell i placed a video alb with lightbox open option (Enfold newer than 4.6.3)January 8, 2020 at 11:00 am in reply to: Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated #1171381don’t know if it happens only caused by enfold. https://wordpress.org/support/topic/php-7-4-support-deprecated-unparenthesized/
Some plugins will cause this too.or maybe you can try a different hook for the widget-area! Then maybe shrinking of the container could be reached too.
if you use ava_after_main_menu as dynamic_sidebar it will be part of the logo container.
you created the widget-area by functions.php
as mentioned above you can do it this way instead. But you had to style it completely again from the beginning. As part of the inner container of logo surrounding container it will be influenced by shrinking too.add_action( 'ava_main_header', 'enfold_customization_header_widget_area' ); function enfold_customization_header_widget_area() { dynamic_sidebar( 'header' ); }
try this :
#custom_html-4 { margin: 0; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); } #top .textwidget form { margin-bottom: 0; }
-
This reply was modified 5 years, 6 months ago by
Guenni007.
der link zu der ID geht dann über den #-link muss also auch im Menu auftauchen. Wobei die Seite auch eindeutig sein muss.
Befindet sich die Sprungmarke also auf einer Unterseite, muss die mit benannt sein – kann allerdings auch relativ gehalten sein:
leg dann also einen idividuellen Link im Menu anhttps://netventure.at/dolmetschen/#praesentation
oder/dolmetschen/#praesentation
PS : ich würde auch Umlaute vermeiden, und Groß/Kleinschreibung ebenso. – Beim Einsetzen in die Developer ID Felder wird zB alles auf Kleinschreibung umgesetzt.
Sprungmarken werden über IDs gesetzt. Eine ID muss daher eineindeutig sein – also einmalig und als ID vorhanden sein.
Dein #praesentation ist in dem Quellcode nicht zu finden – stattdessen sehe ich :<a name="”praesentation”"></a>
IDs kann man natürlich so vergeben wie du es gemacht hast innerhalb eines Textblockes – wobei dannid="praesentation"
benutzt werden sollte
Das ID wird dann durch das #-Symbol im element ausgedrückt wird – also zB.<div id="main" …>
wird dann kurz zB im css mit#main
abgekürzt angesprochen.
Enfold bietet aber bei vielen seiner Elemente die Möglichkeit an IDs direkt über die ALB Elemente zu vergeben.
Dazu musst du das allerdings in den Enfold Optionen aktiviert haben.:
Wenn du diese Option gesetzt hast, dann hast du bei den meisten Enfold ALB Elementen ( headings, text-block, columns etc. pp) einen weiteren Reiter “Developer” – dort kann man eine ID vergeben ( bitte hier nur den Text eingeben ohne #)PS: für manuelle Anker siehe mal auch hier oder google nach manuelle Sprungmarken setzen : https://www.geldthemen.de/webmaster-und-blogger-base/webseiten-technik-cms-php-html-css/html-anker-setzen-ohne-plugin/
have you pagespeed ninja installed? ( or a different caching tool )
If so try not the libxml html parser ( it is in experimental mode still )December 24, 2019 at 8:40 am in reply to: Menu Above – Logo Below – Transparent logo background with full screen slider #1168895Sorry, that was my mistake – I only replaced the transform code and not the webkit-transform code.
@media only screen and (min-width:990px) { .av-section-bottom-logo.header_color { position: absolute; z-index: 5; left: 50%; -webkit-transform: translate(-50%, 30px); /*** only translate not translateX because here are x,y values ***/ transform: translate(-50%, 30px); /*** only translate not translateX because here are x,y values ***/ background: rgba(255,255,255,0) !important; } }
December 23, 2019 at 3:56 pm in reply to: Menu Above – Logo Below – Transparent logo background with full screen slider #1168750what do you think could be done if there is an additional height on top of 30px ? …
( it is now translateXY – and that is shortend to translate( x, y) )@media only screen and (min-width:990px) { .av-section-bottom-logo.header_color { position:absolute; z-index:5; left:50%; -webkit-transform:translate(-50%, 30px); transform:translate(-50%, 30px); background:rgba(255,255,255,0) !important; } }
you don’t adjust the logo for between 768px and 990px – thats a wanted variant – or have you forgotton to add this rule:
@media only screen and (min-width:768px) and (max-width:989px) { .html_header_top.html_logo_center .logo { left: 0; -webkit-transform: none; -ms-transform: none; transform: none } }
@Mike : yes that was my first looking too – maybe i was on that page before and have something in my cache.
Erasing my cache was the solution.yes Mike’s advice is best and safest way:
https://kriesi.at/support/topic/some-hints-and-advice-to-update-enfold/#post-1056107you are running Enfold 4.2.6 on this Version the option fields are not present.
But your example page from above: https://www.moneyprodigy.com/allowance-for-kids/ is something different. Isn’t it a blog page or a page which shows Portfolios etc. in a list? – or is it a handmade entry?
Do you use for “blog entries” a plugin? i see some classes that are not generated by enfold ez-…
Open that page on an editor and see what is the layout for it.________
But nevertheless:
On my old fashioned webdesigner mind it is not nice to have more than One h1 on each page visible;
( Maybe in a slider with different h1 captions it is ok )
even if Google sees it differently by now, I once learned that this way. A h1 should be something special and should appear only once on a page. Therefore the choice of Enfold is logical to assign a h2 to these headlines.ok now i see.
but maybe you make the shadow a bit more intense for it:
.popup_content--2JBXA { box-shadow: 0px 10px 75px 0px rgba(0,0,0,0.50), 0px 10px 50px 0px rgba(0,0,0,0.5); }
December 22, 2019 at 9:27 am in reply to: Menu Above – Logo Below – Transparent logo background with full screen slider #1168555just use the css from above only for your non responsive case:
@media only screen and (min-width:990px) { .av-section-bottom-logo.header_color { position:absolute; z-index:5; left:50%; -webkit-transform:translateX(-50%); transform:translateX(-50%); background:rgba(255,255,255,0.0) !important } }
you had to style the header logo for 768px to 990px – because i think you would like to have logo too on left side as it is on 768px and smaller.
It comes from that rule ( don’t know where it is from because you have allready merged the css):.html_header_top.html_logo_center .logo { left:50%; -webkit-transform:translate(-50%,0); -ms-transform:translate(-50%,0); transform:translate(-50%,0) }
so maybe you use another media querry for it:
@media only screen and (min-width:768px) and (max-width:989px) { .html_header_top.html_logo_center .logo { left: 0; -webkit-transform: none; -ms-transform: none; transform: none } }
maybe an !important is necessary – we will see
so a different way – elegant but more work to do is to register your own mobile menu
Well you can have classes on menu list points each – so create a main-menu
the one that should be displayed on desktop devices got then a different class then the mobile devices menu list points.the red arrows on menu page shows how to activate the menu-item classes field – open first on top “Screen Options” Flyout- then mark “CSS classes”.
that littel arrow besides each menu list point – click it – then you can set a custom-class for each Menu Listpoint.The rest is quick css with display:none
By the way – Enfold sets on default :
desktop devices got on html a custom class : avia_desktop
and mobile devices got: avia_mobileso for example: ( see image above)
.avia_mobile .only-desktop {display: none} .avia_desktop .only-mobile {display: none}
or if it is not meant for devices but for screen-width do it with mediaquerries.
on your screenshot we do not see the selector (the element ) to what the box-shadow should go.
I suppose there is no-one.something like
.flex_column.av_one_third { box-shadow: 0px 10px 75px 0px rgba(0,0,0,0.10), 0px 10px 50px 0px rgba(0,0,0,0.15); }
_________________________
By the way – but Off Topic – if you have found a way to show on a page a pdf – ;) i’m interesting too
the only way i know is via javascript to render a pdf on websites.
or to embed them like this:
<embed src="https://example.com/the.pdf" width="100%" height="800" type="application/pdf">
but chrome and android do not support this anymore.
Edit: it seems that this is still supported by chrome
Alternative you can use the google pdf viewer to show pdfs on website:
<embed src="https://drive.google.com/viewerng/viewer?embedded=true&url=https://example.com/the.pdf" width="100%" height="800">
December 21, 2019 at 12:17 am in reply to: Remove the additional description menu; Advanced Layout Builder #1168357or try this in child-theme functions.php
(the filter is part of WordPress template.php on function get_post_states( $post ) )
(you can include not to show draft and password protection too – but i think this is usefull to have)function remove_post_state( $post_states, $post ) { if("! has_blocks( $post->ID )") { unset($post_states['wp_editor']); } if("!= Avia_Builder()->get_alb_builder_status($post->ID)") { unset($post_states['avia_alb']); } return $post_states; } add_filter('display_post_states','remove_post_state',999,2);
December 20, 2019 at 11:54 pm in reply to: Change name of Avia layout builder on page builder #1168354We don’t have an official way to do this, and I’m not sure of any issues it may cause, but if you thoroughly test this before trying this on a production site, you may find this works for you:
Try this in your child-theme functions.php:
function my_text_strings( $translated_text, $text, $domain ){ switch ( $translated_text ){ case 'Advanced Layout Builder': $translated_text = __( 'Guennis Great Builder', $domain ); break; case 'Avia Layout Builder': $translated_text = __( 'Guennis Great Builder', $domain ); break; case 'Advanced Layout Editor': $translated_text = __( 'Guennis Great Editor', $domain ); break; } return $translated_text; } add_filter('gettext', 'my_text_strings', 20, 3);
You want to adorn yourself with someone else’s feathers? :lol ;)
First go to enfold options : layout builder and select your needed settings – my advice do activate all three custom id and classes and selecting the header tags.
but for headings element – you don’t need to do that – here the choose of heading tag is still activated without those settings:
but with the settings above you will have on a lot of other alb elements the possibility to choose headings tag! f.e. iconbox etc. pp:
you can see here – if you put in your own text that a baskerville italic suits best:
https://www.1001fonts.com/libre-baskerville-font.html?text=%26%20abcdefor goto Google Fonts : https://fonts.google.com/specimen/Libre+Baskerville
PS : you can see on those signs better the source from the “ampers-and” latin and : et
on base css line 379 there is :
.special_amp{ font-family: "Baskerville", "Palatino Linotype", "Palatino", "Times New Roman", serif; font-style: italic; font-size: 1.3em; line-height: 0.5em; font-weight:normal;}
and on functions-enfold.php there is the function: avia_ampersand
to rule the substitution. ( it set the ampersand sign between span tags with class: special_amp
By the way if you gave that custom-class: special_amp to a whole text-block it will show you that styling.so a lot of users have the problem to get rid of it than to have the style.
And : Baskerville is not a good Websafe Font – so it might not be seen the substitution on older Win Systems: https://www.cssfontstack.com/Baskervillejust one moment:
… on the css it is declared as Baskerville – but this is no Baskerville et sign.
To me it looks like the FF Clifford Eighteen italic
Try to find a google font like this …
Aha could be a Baskerville italic seem that a lot of Fonts got this variation on italic et signDecember 19, 2019 at 5:42 pm in reply to: Dataprotection with Enfold? How to set header-tags? #1167844Yes – i know that this is not caused by Enfold (alone) but even on wordpress themes ( twenty-twenty etc.) the script-src and style-src had to be set to unsafe-inline.
But i do not see why. Is it the customizer script that is implemented in a “wrong” manner?Yes – but first with such an amount of text it would have to be so small that you could not read it clearly. Because you break the grid on 768px and even if you do it on 990px the font-size will be too small.
Then – your setting is not the normal usage of grid-row element. If you could insert your images as grid-cell background you can choose that the image fills the cell- but then, of course, it gets cut.Maybe you are satisfied if the images are vertical aligned in the middle – there is an option to do so for grid-cell positioning in each cell.
-
This reply was modified 5 years, 6 months ago by
Guenni007.
December 19, 2019 at 11:25 am in reply to: Add caption in lightbox under image in masonry gallery #1167682December 19, 2019 at 10:54 am in reply to: Add caption in lightbox under image in masonry gallery #1167671sorry for the popup-modal-dismiss thing on that code – on my own customizing i have build a link in the mfp-bottom container misunsing the alt attribute for that – which builds an anchor link to parent page – so i declared to this class (popup-modal-dismiss) the close function too.
December 19, 2019 at 10:39 am in reply to: Add caption in lightbox under image in masonry gallery #1167666This is a bit more than you like to have but it shows you how you can have influence on different settings using Enfold specific classes – and even you can change the markup for lightbox on that
my example page is on id: 36548 so if you want to have that globally – get rid of if-clause
look to this example code:function popup_masonry_gallery() { if(is_page(36548)){ ?> <script type="text/javascript"> (function($){ $(window).load(function(){ $('a.av-masonry-entry.lightbox-added').magnificPopup({ type: 'image', image: { titleSrc: false, markup: '<div class="mfp-figure">'+ '<div class="mfp-close"></div>'+ '<div class="mfp-top-bar"></div>'+ '<div class="mfp-img"></div>'+ '<div class="mfp-bottom-bar">'+ '<div class="mfp-title"></div>'+ '<div class="mfp-counter"></div>'+ '</div>'+ '</div>', }, mainClass: 'avia-popup mfp-zoom-in mfp-image-loaded', closeOnContentClick: false, midClick: true, gallery: { enabled: true }, callbacks: { markupParse: function (template, values, item) { values.title = item.el.find('img').attr('alt') + '<br>' + item.el.closest('.av-masonry-entry').find('.av-masonry-entry-content').text(); }, // this - is Magnific Popup object. change: function() { $(this.content) .find('.mfp-top-bar') .html( '<h2>' + $(this.currItem.el).attr('title') + '</h2>' ); }, buildControls: function() { // re-appends controls inside the main container this.arrowLeft.appendTo(this.contentContainer); this.arrowRight.appendTo(this.contentContainer); }, }, }); // close the iframe window $(document).on('click', '.popup-modal-dismiss', function (e) { $.magnificPopup.close(); }); }); })(jQuery); </script> <?php }} add_action('wp_footer', 'popup_masonry_gallery');
first i get my selector – as on enfold it is the class lightbox-added
then i declare a new markup for that popup with f.e. a top-bar
on the callbacks i set the mfp-title to the image alt attribute and in the second line i look for the enfold description place – and get the text from: av-masonry-entry-content
in the new top-bar i place the img title as mfp-title !see result: https://webers-testseite.de/lightboxes/
click the first image – you will see where the texts comes from in that new markup
Important: The captions had to be shown on that masonry in the enfold options dialog – otherwise they are not in the markup.
so if you do not like to have the visible set the figcaption to display none..mfp-top-bar h2 { color: #fff; font-weight: normal; } .page-id-36548 .av-inner-masonry-content { display: none; }
by the way ‘self’ is ok but unsafe-inline and unsafe-eval are not ok – but on most of wordpress installation they are needed to have a working Site
-
This reply was modified 5 years, 6 months ago by
-
AuthorPosts