Forum Replies Created
-
AuthorPosts
-
zunächst sind das ja nur beispiele – ich denke du wirst keine Seite 6, 42, oder 54 haben.
Aber was ich oben schrieb – der fehler ist: ohne if kein elseif.
wenn du es dahingehend änderst wird WordPress nicht mehr meckern:add_filter('avf_logo','av_change_logo'); function av_change_logo($logo){ if ( is_page( array( 6, 42, 54 ) ) ) { $logo = "http://www.domain.com/wp-content/uploads/logoforpage22.jpg"; } return $logo; }
on my end here it starts auto and in lightbox: http://alsafahalal.com/al-safa-revamp/
hast du denn einen if in deinem Code drin?
Ein elseif macht nur sinn, wenn ein if vorhanden ist.When I saw your posting number, I wanted to make sure that it is not such a mistake that has happened to everyone at the beginning.
Du kannst es pro Seite entscheiden- wobei es für dich gut wäre die Page-id zu kennen:
Dieses hier in die functions.php deines Child-themas:
Es soll dir verdeutlichen wie es gehen kann mit den if clauses. – wobei du Seiten auch als array nutzen kannst
also da zB Seite 6, 42 und 54 erhalten dann ein logo –
du kannst alles was WordPress an conditional tags bereit hält nutzen: Linkadd_filter('avf_logo','av_change_logo'); function av_change_logo($logo){ if( is_page(21) ) { $logo = "http://www.domain.com/wp-content/uploads/logoforpage21.jpg"; } elseif ( is_page( array( 6, 42, 54 ) ) ) { $logo = "http://www.domain.com/wp-content/uploads/logoforpage22.jpg"; } elseif ( is_page() && !is_page(1307) ) { $logo = "http://www.domain.com/wp-content/uploads/logoforpage23.jpg"; } return $logo; }
wenn man wiedersprüchliche Aussagen hat wie jetzt die da unten – muss man sehen ( da würden alle Seiten außer Seite 1307 das logo 23 bekommen)
try this:
function change_target_to_self(){ ?> <script> (function($){ $(window).load(function() { $('.avia-testimonial-link').attr('target', '_self'); }); })(jQuery); </script> <?php } add_action('wp_footer', 'change_target_to_self');
and by the way the DOM is ready is not enough on that
try this in quick css:
.aviaccordion-slide-link { pointer-events: none !important; }
i miss it too – on Mac OS X i got now the firefox developer edition. these tools are included and they’re a good substitute.
ok – that is better to understand.
first you had to know your general setting : default width is 1310px ( so half of it is 655px)
if you got a container that is 50% of the total width – how many padding left you will need?
the normal container class has a padding : 0 50px – so from inner Cell we had to diminish it.give those grid-rows a custom class f.e.: special-grid-row
.special-grid-row .flex_cell.avia-builder-el-first { padding-left: calc(50% - 655px) !important; } .special-grid-row .flex_cell.avia-builder-el-first .flex_cell_inner { padding-left: 50px !important; }
see here my construct – i got 1510px on total so my code is with 755px less
https://webers-testseite.de/shreinmedia/-
This reply was modified 6 years, 10 months ago by
Guenni007.
if you are interested i will tell you how to include that “logo in the main-menu” shrinks on scrolling.
We had to edit avia-snippet-sticky-header.js fileja – deshalb schrieb ich ja :
maybe for your setup test different calculation values (the minus px amount)
.page-id-76763 .av-section-color-overlay-wrap .container { width: 100%; max-width: 100% !important; }
deshalb sind die 100% ohne Abzug ok
PS : be more selective on your code – this
#av_section_1 .container { max-width: 100% !important; padding: 0 40px; }
is for all first color-sections on your whole site
you can see it on “Dozenten” Site etc.-
This reply was modified 6 years, 10 months ago by
Guenni007.
August 20, 2018 at 6:11 pm in reply to: Open video links in lightbox with image hotspot element #999523on this case you had to change to click event and not on hover tooltip.
This is set in avia-modal.js in line 903ff/*highlight the modal sub el when hotspot is hovered*/ _self.hotspot_container.on('mouseenter', '.av-image-hotspot', function() { var el = $(this).data('modal_sub_el'); if(el) el.addClass('av-highlight-subel'); });
maybe than it would be possible to have a link in the tooltip window opening on lightbox.
The problem then would be that the tooltip is itself a “popup-window” – but you like to open it in a new lightbox window.it is a bit more complicate than you think.
I did it in a test environment – not as you did – with shifting the logo image to the navigation.
My logo here is a custom link in menu. – and the logo itself is only visible in mobile case:https://webers-testseite.de/weber/
additionally there was an edit needed of shrink script
try this in quick css:
.page-id-76763 .av-section-color-overlay-wrap .container { width: 100%; max-width: calc(100% - 100px) !important; }
maybe for your setup test different calculation values (the minus px amount)
-
This reply was modified 6 years, 10 months ago by
Guenni007.
August 20, 2018 at 1:53 pm in reply to: Open video links in lightbox with image hotspot element #999351hm – you can see my test-page above. there is the hot-spot and it works – this way.
and even more – the side navigation works on lightbox too ! switching between the videos in the lightboxhttps://webers-testseite.de/image-with-hotspost-linking-to-youtube-in-iframes/
aha – is the source code above new in your thread on top?
why do you need a column in a column? on this page?
if you can not live with this setting (on top 1/1) underneath (2/5 – 1/5 – 2/5) : https://webers-testseite.de/liste/if you like to nest columns there is a better way to do it in enfold.
the only thing we had to manage is that a grid-row is not full-width ! and here we go. the setup f.e.:
(click to enlarge)
so the added custom class will do the rest with this in functions.php of your child-theme
adjust the settings (max-width) in the code to your settings of enfold : Enfold – General Layout – Dimensions// Grid-Row Alb not fullwidth function grid_layout_notfull(){ ?> <script> (function($){ $('.av-layout-grid-container.grid-notfull' ).wrap( '<div class="main_color notfullsize"></div>'); $('.notfullsize').css({"clear": "both", "width": "100%" , "float": "left" , "position": "static" , "min-height": "100px" }); $('.grid-notfull').css({"max-width": "1310px", "margin": "0 auto" , "padding": "0 50px"}); })(jQuery); </script> <?php } add_action('wp_footer', 'grid_layout_notfull');
Such a structured page could then look like this ( only if you have no sidebar on that page – otherwise the sidebar will be under the lowest grid-row or color-section) : https://webers-testseite.de/nesting-columns/
on default there will be on grid.css :
.avia-icon-list li { margin: 0; padding: 0 0 30px 0; list-style-type: none; list-style-position: outside; clear: both; position: relative; min-height: 60px; }
you have in the source code some line-breaks
<br>
remove them – these are start points as if there was a new listpoint !and by the way i mentioned that custom class input field because of your sentence:
Then I edited a text block on a page, and created a custom field named “textblock-black-background”.
yes that is why i said the surrounding container.
if you want to use it like a textmarker you can use your code – but you have to be carefull. If classes belong to one element they are not separated by a space! Just one after the other ( and order is also important to preserve) so your code:.avia_textblock.text-black-background { background-color: #000; }
first try without important – the reason why i take the hex code is to save bytes ;) #000 ist shorter than black :lol
these custom classes are not set in the custom fields. These custom classes are only setable if you are working with the advanced layout builder ( shortend as ALB).
When you have your text-block element from Enfold ALB – open that element
Under the inputfiled for the text there is now an input field for Custom Css Class
thanks for feedback
August 19, 2018 at 9:12 pm in reply to: Open video links in lightbox with image hotspot element #999090set the link of the hotspot as manually link.
see here. https://webers-testseite.de/image-with-hotspost-linking-to-youtube-in-iframes/
link for example with youtube options and at the end with iframe=true:
https://www.youtube.com/watch?v=38cMOweKcxM?autoplay=1&cc_load_policy=1&enablejsapi=1&ecver=2&playsinline=1&rel=0&showinfo=0&color=white&iv_load_policy=3&iframe=true
can you sketch what you want to do?
something like this: https://webers-testseite.de/grid-row-2/It would have been nice to get an answer not only from mods here!
I’m really thinking about not actively standing up for other issues any more. If I should have another problem of my own, then I always find competent contacts in the mods here – and the rest doesn’t interest me anymore. Frankly – dear co-users of Enfold – is it so difficult to give feedback on an answer?both elements ( color-section and grid-row) are full-width elements.
I miss this too – an element that can be a container for other elements and can have the sidebar besides.
That would be a great thing.
Espacially the grid-row will be nice to have this behavior – because as you can see at his consturct – ( Link ) – that it would be a very fleible way to layout things.if you don’t like to make it manually – you can change the backlink by this code-snippet in your function.php of your child theme
you have to adjust your data
function new_nolink(){ $kriesi_at_backlink = "<a href='https://webers-webdesign.de'>Webers WordPress Webdesign</a>"; return $kriesi_at_backlink; } add_filter("kriesi_backlink","new_nolink");
August 18, 2018 at 5:41 pm in reply to: Changing the caption title on fullwidth easy slider to H1 #998732there are more than one method.
As Ismael said – just edit the alb element ( line 545 – of av-helper-slideshow.php – don’t forget to replace opening and closing tag) upload that edited element to child-theme/shortcodes folder and do this to
functions.php of your child-theme:add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); function avia_include_shortcode_template($paths){ $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; }
______________
you can as an alternative do this to your child-theme functions.php :
function replace_tags_with_tags(){ ?> <script> (function($) { function replaceElementTag(targetSelector, newTagString) { $(targetSelector).each(function(){ var newElem = $(newTagString, {html: $(this).html()}); $.each(this.attributes, function() { newElem.attr(this.name, this.value); }); $(this).replaceWith(newElem); }); } replaceElementTag('.slideshow_caption h2.avia-caption-title', '<h1></h1>'); }(jQuery)); </script> <?php } add_action('wp_footer', 'replace_tags_with_tags');
this code preserves all attributes of the original h2 tag and replaced it with h1
(if you like to be more specific you must select more specific f.e. including here the page-id or having a custom class on heading)__________
alternative Method – and for me it is the best – take my edited ALB Element for that – then you have on each slider the option to choose the heading tag :
read here: https://webers-testseite.de/edited-enfold-alb-elements/read carefully – you have to upload all 4 files in this case because the av-helper-slideshow.php is ruling 3 sliders:
https://webers-testseite.de/edited-enfold-alb-elements/#slidersOne disadvantage : If there are major updates you will have to download those edited files again if – there are something changed completely. then there will be a little time shift. (few days)
The link of the page above will get allways the newest versions of those files.-
This reply was modified 6 years, 10 months ago by
Guenni007.
hey Dude – I can’t understand why it should work there (see link above) either.
to be shure that you have no curly exclamation mark issues on that can you please try this by copy&paste in your text :
<script src="https://www.cqc.org.uk/sites/all/modules/custom/cqc_widget/widget.js?data-id=1-2810512121&data-host=www.cqc.org.uk&type=location" type="text/javascript"></script>
check if you have different plugins on those pages – and first try to test if there is a conflict by deactivating those.
-
This reply was modified 6 years, 10 months ago by
Guenni007.
-
This reply was modified 6 years, 10 months ago by
-
AuthorPosts