Forum Replies Created
-
AuthorPosts
-
the code above and alot of snippets you can find here on board or on: https://kriesi.at/documentation/enfold/code-snippets/ are for functions.php of the child-theme
but if you like to use one of the codes above (maybe the first) you will see on backend first none. Because the subs are there but not visible because there is some css missing too , to get them visible besides the logo.for example here on board on top the info fades away on scrolling:
The amount of left and top positioning depends on logo size and header size etc. this is an Individual case decision.logo img{float: left} #top .logo, #top .logo a {overflow: visible } #top .subtext {float: left; position: relative} #top .logo-title { transition: opacity 0.4s ease-out 0s; -moz-transition: opacity 0.4s ease-out; -webkit-transition: opacity 0.4s ease-out; -o-transition: opacity 0.4s ease-out; color: #4678ae; font-size: 44px; font-family: "Comfortaa","HelveticaNeue","Helvetica Neue",Helvetica,Arial,sans-serif !important; font-weight: bold !important; left: 7px; opacity: 1; position: absolute; top: -12px; white-space: nowrap; } #top .logo-subtitle { color: #aaa !important; font-family: "Comfortaa","HelveticaNeue","Helvetica Neue",Helvetica,Arial,sans-serif !important; font-size: 18px !important; left: 10px; top: 18px !important; font-weight: normal; } #top .header-scrolled .logo-title { opacity: 0; filter: alpha(opacity=0); }
what is in your source code and f.e. not in an iframe is adressable
iframe influence would be not possiblecan you try this:
function custom_lightbox_sc(){ ?> <script> (function($){ $('.ihf-main-image img').each(function() { var a = $('<a/>').attr('href', this.data-ihf-main-source); $(this).addClass('image').wrap(a); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_lightbox_sc');
-
This reply was modified 6 years, 9 months ago by
Guenni007.
you see on source code that it has created the surrounding container with all the things an image with lightbox has including the following span with overlay containers. but the link isn’t transfered to the anchor. You see on my page that this was done.
We had to find the reason for that . What is strange is that some of those images got no src attribut i guess this is only made if the gallery comes to that image and the src is made of: data-ihf-main-source
so i try to find now a way to take the link from that data-ihf-main-sourceis it the same page as the link above .
It is important to know what was before
i see on : http://www.thomashenthorne.com/homes/135-BELVEDERE-AVENUE-BELVEDERE-CA-94920/21728470/3/
can you please first do that code to this link and than ask the next adjustment.or please remove the code that i see what is on that place before !
hey Rob – can you try this please on your functions.php of your child-theme:
function custom_lightbox_sc(){ ?> <script> (function($){ $(".ihf-main-image img").each(function() { var a = $('<a/>').attr('href', this.src); $(this).addClass('image').wrap(a); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_lightbox_sc');
on enfold img on text block ( with different class it works). but there i don’t know how to take the biggest image in the srcset.
https://webers-testseite.de/images-in-text-block-elements/
maybe a mod could give a hint –
but try this first – on your example there is no srcsetyou mean for small screens or for mobile ?
Because on ipad retina or ipad 2 or ipad pro you have on landscape view more than 1000px
because every mobile browser looking to enfold is getting on html the class avia_mobile
so if you like to solve layout problems concerning to mobile devices this could always help.
because it is a html class it would be listed at first in the css
so for example mikes rule gets:.avia_mobile #header_meta.av_extra_header_active { display: none !important; }
May 11, 2018 at 3:35 am in reply to: Listing a category from a plugin on an Avia Layout Builder site? #954972A lot of custom post types called it category but it is in real a taxonomy. Like Enfolds Portfolio.
So did you try to find your plugin post as taxonomie. f.e. on blogposts there is on “Do you want to display blog posts” the option to show from a taxonomie.If this is not listed you can try to register your custom post type .
(look on Google for “Enfold register CPT for Masonry”) – https://kriesi.at/support/topic/overriding-functions-in-a-child-theme/#post-167093
and read also the things ismael mentionedand here: https://kriesi.at/support/topic/procedure-for-adding-custom-post-type-and-enabling-it-for-use/
it depends on what text and how many text you like to display:
As you see here in the board on top the Kriesi Logo is only the brand image (K) with additional text.
This could be obtained with Enfold presetted filters.
For Example if you like to have the wordpress name of the site and description to your logo:add_filter('avf_logo_subtext', 'kriesi_logo_addition'); function kriesi_logo_addition($sub) { $sub .= "<span class='logo-title'>"; $sub .= get_bloginfo( 'name', 'display' ); $sub .= "</span>"; $sub .= "<span class='logo-title logo-subtitle'>"; $sub .= get_bloginfo( 'description', 'display' ); $sub .= "</span>"; return $sub; }
on using this filter it is possible to show besides your logo f.e. the actual page title :
add_filter('avf_logo_subtext', 'kriesi_logo_addition'); function kriesi_logo_addition($sub) { $sub .= "<a class='page-title' href= '#'>"; $sub .= "<span class='the-title'>"; $sub .= get_the_title(); $sub .= "</span>"; $sub .= "</a>"; return $sub; }
there has to be css fittings to see the inserted elements
etc. pp
If you like to have a widget area – see here: https://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/May 10, 2018 at 5:19 pm in reply to: Lightbox Modal Window no longer working after update to 4.3.1 #954704ok Rob – thanks for that – I was not aware that a child theme version was still there
Basilis – follow my link to the test-page it works – after i red about that playlist feature
so if the playlist got the same ID as the initial video all works fine
https://www.youtube-nocookie.com/embed/ID?enablejsapi=1&ecver=2&cc_load_policy=1&playsinline=1&rel=0&showinfo=0&autoplay=1&color=white&iv_load_policy=3&playlist=ID&loop=1
-
This reply was modified 6 years, 9 months ago by
Guenni007.
if your cookie consent or notice works well – the will be an additonal cookie after accepting the cookie notice !
I think enfold does not come with a cookie itself. The phpsessionID is something every browser will do.you can determine this by your self. On browser url – i hope there will be a green lock ( not necessary if you have no contact form ) – click on it.
now each browser got it a bit different on firefox there is a little arrow to the pointing to the right. Press it and than “additonal Information”. there you can have details about security options.
Chorme has it directly – There you can find infos about cookie use.can we participate in the secret knowledge? Rob
by the way there is a way to force youtube videos to play inside ( means not fullwidth but in the content surroundings)
add as option : &playsinline=1All over the shortcode – indeed – i recognized it too!
if you have debug mode on you will see it directly – on html source code it is absentwell i guess the easy slider got the class avia-small-width-slider – so try:
.avia-small-width-slider .avia-caption { bottom: inherit !important; left: 50%; top: 50%; transform: translate(-50% , -50%); text-align: center; width: 100%; }
You would increase the chance of response with a solution if you could make the link public. Other participants have good ideas too.
On how i understand you – that there is a page where images are placed ( not as Image ALB Element) that you like to open in a lightbox?
or try this solution ( by the way there is nothing against it to have more than one class each element)
https://kriesi.at/support/topic/column-clickable-code-doesnt-work-any-more/#post-951688on ALB Elements input field just insert them each behind the other
so for.box-link.clickable
insert in the input field: box-link clickableor is that the class you used to have the box link?
than you can edit the code which comes to functions.php of the child theme:
function transfer_link_from_child(){ ?> <script> (function($){ $(".box-link").each(function(){ var theLink = $(this).find("a:first").attr("href"); if (typeof theLink !== "undefined"){ $(this).addClass("clickme"); $(this).on("click", function(){ window.location.href = theLink; }); }; }); })(jQuery); </script> <?php } add_action('wp_footer', 'transfer_link_from_child');
PS : the added class clickme is for styling the hover state f.e.:
.clickme:hover { cursor: pointer; -webkit-filter: drop-shadow(2px 3px 5px #999); filter: drop-shadow(2px 3px 5px #999); }
the contact form has a checkbox already – you can set it as you like
on the label of that checkbox it is possible to insert html code :
so something like this will do the trick:
<span>Ich habe die <a href="https://url-to-your/datenschutzerklaerung/" target="_blank">Datenschutzerklärung</a> zur Kenntnis genommen. Ich stimme zu, dass meine Angaben und Daten zur Beantwortung meiner Anfrage elektronisch erhoben und gespeichert werden. Hinweis: Sie können Ihre Einwilligung jederzeit für die Zukunft per E-Mail an (Email address hidden if logged out) widerrufen.</span>
see here: https://webers-testseite.de/kontakt/
you can see here on that page that it is possible but to give a correct answer it will be nice to have these infos on top
there is one breadcrumb under the slider but also down in the footer section
https://webers-testseite.de/breadcrump-under-first-color-section/no it is not officialy mentioned in the api – but on my youtube shortcode i integrated it and it works very well.
https://webers-testseite.de/youtube-shortcode-for-enfold/
and i found this what i have not read well: https://developers.google.com/youtube/player_parameters#loop
so loop only works if a playlist with the identical youtube id is placed:
⇒ https://webers-testseite.de/youtube-fullwidth-video-with-loop/well the position is bad in that mfp-bottom-bar container.
so if we do not want to have an edited magnific-popup-scriptwe can shift the container with the title:
add_action('wp_footer', 'move_title_script'); function move_title_script(){ ?> <script type="text/javascript"> (function($) { function a() { $('body').on('click', '.lightbox-added', function() { if($('.mfp-bg').length >= 1) { $("div.mfp-title").insertAfter("img.mfp-img"); } }); } a(); })(jQuery); </script> <?php }
after that you had to style the title f.e.:
div .mfp-title { font-size: 3vw !important; line-height: 4vw !important; position: absolute; top: 50%; left: 50%; width: inherit; text-shadow: 3px 3px 5px #000; transform: translate(-50% , -50%); padding: 20px !important; text-align: center; }
see link: https://webers-testseite.de/accordion/
on every browser i got ( safari, chrome, firefox, safari developer version, opera ) it is ok – and you see on the screen film that it works on all browsers except on the microsoft crap ! Sorry – but the whole internet history they have this “special position” under all other browser.
If you like to include a browser specific fix – the html got the class: avia-edgethe height on that will be 27.75vw
but it is not the whole screen distances constant.here ends my support on this topic.
Go and play with good browsers. This has a reason: https://de.statista.com/statistik/daten/studie/157944/umfrage/marktanteile-der-browser-bei-der-internetnutzung-weltweit-seit-2009/
if you take the secure way of uploading new enfold via ftp by renaming the old enfold folder to f.e. enfold-old ( to have a rollback if necessary) it is indeed this way that on dashboard – appearance – themes there are two “enfold” listed.
Enfold-Child only takes the parent info from “enfold” folder. So to delete the enfold-old folder it is better to do this by ftp too – because you don’t see the folder names on themes list.… to show on the image, beneath the image, or just somewhere, when an image is showed as lightbox/modal.
?
did you delete all caching infos (browser too)
see the video on the bottom of my testpage: https://webers-testseite.de/mimic/that is the behavior when the mediaquerie rule is added and i look to the different screensizes
and by the way : could you please add the ecver=2 attribut for yourtube videos.
it is responsible for getting rid of advertising on pause videos.you can see it on a test page here from another participant: https://www.cnmdev1.com/team/
look what happens on pausing the vidoe on the top lefton wider screens it is ok now isn’t it ?
you erased the rule for smaler screens when hamburger menu starts to work:@media only screen and (max-width: 768px){ .page-id-948 #av-layout-grid-1 { height: inherit !important; display: inline-block !important; } }
change the code to
maybe it is necessary to set it to important.page-id-948 #av-layout-grid-1 { height: 28.12vw !important; display: inline-flex !important; vertical-align: top; }
-
This reply was modified 6 years, 9 months ago by
-
AuthorPosts