Forum Replies Created
-
AuthorPosts
-
it will not be a good solution if you have a fixed and sticky header even on mobile view when in responsive case the next line is created.
if this will be the case we had to find a different solution. This works til iphone5 (320px screenwidth)see again : https://webers-testseite.de/pureinstall/impressum/
just create a top navigation on dashboard – menus ( do not forget to check on the bottom that field: “Enfold Child Secondary Menu ”
then click on the link “Will be displayed if you selected a header layout that supports a submenu” you will be redirected to the header – header extra elements – Header Secondary Menu.then this comes to your quick css:
/******** Tabs in top-menu *************/ #header_meta.container_wrap { background-color: #000f36 !important; } .responsive #header_meta .container { width: 100% !important; max-width: 100% !important; padding: 0; margin: 0; } #header_meta .sub_menu { padding: 0 10px 0 50px !important; } ul#avia2-menu { margin: 0; margin-top: 2px !important; padding: 0; height: 40px; float:left; } ul#avia2-menu li { list-style: none; float:left; padding: 0 1px !important; height: 40px; border: none !important; text-align: center; background: -webkit-gradient(radial, 50% 100%, 10, 50% 50%, 90, from(rgba(31,169,244,1)), to(rgba(0,28,78, 1)) ); background: -moz-radial-gradient(center 80px 45deg, circle cover, rgba(31,169,244,1) 0%, rgba(0,28,78, 1) 100%); } ul#avia2-menu li a, #top #wrap_all .av_header_transparency .sub_menu ul#avia2-menu li a { border-radius: 20px 20px 0 0 !important; color: #fff; display: block; padding: 0 20px; text-align: center; text-decoration: none; line-height: 40px; background : -webkit-gradient(linear, left top, left bottom, from(rgb(168,168,168)), to(rgb(69,69,69))); background : -moz-linear-gradient(top, rgb(168,168,168), rgb(69,69,69)); -webkit-transition-property: background; -webkit-transition-duration: 700ms; -moz-transition-property: background; -moz-transition-duration: 700ms; } ul#avia2-menu li a:hover, #top #wrap_all .av_header_transparency .sub_menu ul#avia2-menu li a:hover, ul#avia2-menu li.current-menu-item a, #top #wrap_all .av_header_transparency .sub_menu ul#avia2-menu li.current-menu-item a { opacity: 1; background: -webkit-gradient(radial, 50% 100%, 10, 50% 50%, 90, from(rgba(31,169,244,1)), to(rgba(0,28,78, 1)) ); background: -moz-radial-gradient(center 80px 45deg, circle cover, rgba(31,169,244,1) 0%, rgba(0,28,78, 1) 100%); } ul#avia2-menu li.current-menu-item a, #top #wrap_all .av_header_transparency .sub_menu ul#avia2-menu li.current-menu-item a, ul#avia2-menu li.current-menu-item a:hover, #top #wrap_all .av_header_transparency .sub_menu ul#avia2-menu li.current-menu-item a:hover { background: #fff; color: #000 !important; } ul#avia2-menu li a:hover { color: #fff !important; } @media only screen and (max-width: 767px) { #header_meta .sub_menu { padding: 0 !important; } ul#avia2-menu li a { padding: 0 10px; } ul#avia2-menu { margin-top: 0 !important; } }
i like this glooming hover effect – but you can change it to a background-color.
that it has that tab feeling the active state ( current item ) should have the same color as header bg-color.
On transparency header it is hard to find a similar effect.Ja – muss schauen, ob das einsetzen der anderen inputs ( auch des versteckten ) nur an ein input feld gebunden ist.
( die avia_google_recaptcha_api.js ist da leider eindeutig. )
Da dort dann eben button steht , setzt der wohl die Elemente nicht.Den Button brauchte ich auch nur um das teil zu stylen – auf inputs kann man schlecht before und after elemente etc. pp. setzen.
-
This reply was modified 4 years, 11 months ago by
Guenni007.
also – habe ich jetzt Stück für Stück die child-theme functions.php aufgefüllt.
Es ging mal darum diesen Input Button mit einem Slide Effekt beim Hovern zu füllen.Das Script:
function change_input_to_button_tag(){ ?> <script> (function($) { function replaceElementTag(targetSelector, newTagString) { $(targetSelector).each(function(){ var inputvalue = $(this).attr('value'); var newElem = $(newTagString, {html: $(this).html()}); $.each(this.attributes, function() { newElem.attr(this.name, this.value); }); $(this).replaceWith(newElem); newElem.addClass('specialbutton'); newElem.append('<span class="zustimmen">'+inputvalue+'</span>'); }); } replaceElementTag('input.button', '<button></button>'); }(jQuery)); </script> <?php } add_action('wp_footer', 'change_input_to_button_tag');
macht mir aus meinem Input einen Button – mit allen attributen die Ursprünglich dran sind. Daher sollte auch die Klasse: av-verify-recaptcha-0
mit übergeben werden. Das muss ich noch testen ob es nur an der Reihenfolge des ladens liegt.Kann erstmal geschlossen werden – wenn sich was wesentliches hier ergibt, dann poste ich in den gleichen post hinein.
Danke für deine Mühe.ich hatte natürlich auch alle Plugins deaktiviert und auch eine leere Functions getestet.
Entweder sind die Cachings der Browser jetzt hartnäckiger geworden ( deshalb teste ich dann immer mit Chrome – da ist das Löschen schneller erledigt) – bei mir kam reproduzierbar dieser Fehler immer.
Mein kleines Script:function prohibit_google_recaptcha( $prohibited ){ global $post; if( ! $post instanceof WP_Post ){ return $prohibited; } /*** Get content to check (ALB or normal content) ***/ $content = Avia_Builder()->get_post_content( $post->ID ); $prohibited = ( false !== strpos( $content, '[contact-form-7 ' ) || false !== strpos( $content, '[av_contact ' ) ) ? false : true; return $prohibited; } add_filter( 'avf_load_google_recaptcha_api_prohibited', 'prohibit_google_recaptcha', 10, 1 );
hatte ich zunächst in Verdacht, aber wie gesagt ich testete auch mit einer leeren functions.php ( child-theme selbstredend ).
If it does not work at the moment – a mod is in that installation to look for a little bug with google recaptcha.
BUT : my advice is to hamper that behavior on small screens – because you can not scroll inside the footer content.
If the height of the footer content is higher than the given f.e. mobile-device height – then you can not see all content !!!Well there is a solution to put those two containers as siblings to #main – inside warp_all.
You only have to edit footer.php and load it as child-theme footer. And a bit of jQuery in functions.php.See result ( in this case only for home page ): https://webers-testseite.de/pureinstall/
if this is what you like to have – i will show you how.the problem stays the same as footer or as a different containter – fixed Elements does not leave a gap in the page where it would normally have been located. this “Gap” had to be there that the page could scroll this amount to show the overlaped fixed container.
It seems that this is not the right understanding of fixed or parallax background.
On your example page that effect is called “curtain-effect” and is commonly used on the footer.
how to achieve this. the main point is that the footer position is set to fixed and bottom: 0 – and has a z-index less than the content scrolling over it.
But: On Enfold it is difficult to obtain , because #footer is part of #main. But there are ways to get the right solution for it in a different way.
But to give you better support it might be usefull to see your page.August 2, 2020 at 8:41 am in reply to: Notice: Undefined variable: kriesi_at_backlink in /home/….. #1234573did you change something in footer.php to get rid of kriesi backlink info?
you only need to insert to footer copyright info field at the end: [nolink]or redefine this little function via child-theme functions.php to have your own backlink.
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");
Thats what i said – set .av-outer-tab-title to display none
i can reproduce it if i do not enter tab titles to show only images
and i see that you have allready set the .av-outer-tab-title to display none – so put in some titles to look if that behavior is gone afterwards.Hi Mike and dear participants – i see there is a fix on github : https://github.com/KriesiMedia/enfold-library/tree/master/temp_fixes/Enfold_4_7_6_1/template_builder
concerning to : avia-tab-section.js : i don’t know if this is related to your problems – but maybe you test that new js file.Edit: must be something different. I can not reproduce the “flickering” on tab change.
could this be a way you like – these are only styled top menus: https://webers-testseite.de/impressum/
but i have no time now to style the responsive case on that.-
This reply was modified 4 years, 11 months ago by
Guenni007.
PS : i changed the code above on this: https://kriesi.at/support/topic/closed-tabs-on-mobil/#post-1234335
if you are satisfied with : https://webers-testseite.de/impressum/
( i just did it for that page ) then i will post the css you need.Well you can use the top-header on that :
Enfold Child – Header – Extra Elements Tab and : Header Secondary Menu
you have to define one menu as: Enfold (Child) Secondary Menu ( don’t know if you are using a child-theme)
to style them as “tabs” like in your example page should be possibleI am only kidding – I am of course a proponent of democracy, and as such for universal, direct, free, equal and secret elections!
______
As said before – i do not see private Content Area – if you could not manage it yourself – you had to wait til mods are here.
Or you describe your problem with the description above.______
Under my nick there is a contact info about me. If you give me the datas via E-Mail i would install it for you – but it has to be admin account.
but if you can make it happen in the next few hours I will be super grateful!
How much does your gratitude look like?
If you want to do me a big favor, don’t vote for Trump ;)
Best whishes to you all from Germany.Edit : this must be done by a mod – because as a participant like you – I don’t see the private content messages. But I guess everything is so easily explained that you can do it yourself.
The background color does not shine through with full intensity, because the png’s in the spaces between were not fully transparent.
You could change this by increasing the contrast of the pngs before uploadin the ai doc there are some vector datas – but the most patterns are embedded images.
So here we go with png files: https://webers-testseite.de/tagood.zip- Give a custom class to your icon-list : tagood-icons
- upload all the png files to your media library
- put this to your quick css: ( if you like to colorize the icons as i do )
- adjust the file path to yours
.tagood-icons .avia-icon-list li .iconlist-char:before { content: ""; background-size: contain; background-repeat: no-repeat; background-position: center ; left:0; top: 0; width: 100%; height: 100%; position: absolute; border-radius: 50% } .tagood-icons .avia-icon-list li:nth-of-type(1) .iconlist-char:before { background-image: url(/wp-content/uploads/art01.png); background-color: red; } .tagood-icons .avia-icon-list li:nth-of-type(2) .iconlist-char:before { background-image: url(/wp-content/uploads/art02.png); background-color: blue; } .tagood-icons .avia-icon-list li:nth-of-type(3) .iconlist-char:before { background-image: url(/wp-content/uploads/art03.png); background-color: green; } .tagood-icons .avia-icon-list li:nth-of-type(4) .iconlist-char:before { background-image: url(/wp-content/uploads/art04.png); background-color: yellow; } .tagood-icons .avia-icon-list li:nth-of-type(5) .iconlist-char:before { background-image: url(/wp-content/uploads/art05.png); background-color: darkmagenta; }
you see how this works : the first settings are the same for all icons – and then you count to your list items 1, 2, 3 etc
if you colorize you had to set a border-radius for them too
in the zip there are 6 files – but you can have morei will see – and no panic it will work with png’s too:
https://webers-testseite.de/tagood/i see that the source of the png was an ai ( Adobe Illustrator) File – that would be best – if it is a vector based file ( sometimes images are embedded in ai docs)
In this case we could make an icon-font like entypo-fontello on : http://fontello.com/First : is there a better – bigger – sharper Image of that?
And what does this mean:Hi I would like to create a custom icon or custom pattern to be more specific on one of the icons in your list
Aren’t there round source patterns on that? best would be svg
July 31, 2020 at 6:57 pm in reply to: Changing the outline of the active tab in the accordion #1234412try this in quick css:
.tab.active_tab, :focus { outline: none !important; }
Thanks – but i’m Participant as you – so the other request has some infos in private content – which i do not see.
or do ask how those extra settings can be done to the head section ( not the header ) ;)
Ok – Danke
If you want to change the switch point to a diffent one you had to adjust the value in the script above – and to have some additional quick css entries:
/****** Settings to change the tab switch point if it is different to 768px *********/ @media only screen and (max-width: 989px) { .responsive .tabcontainer.mobile-tabs-closed .tab_content { border-bottom: none; padding: 15px 30px; clear: both; } .responsive .tabcontainer.mobile-tabs-closed .tab_content, .responsive .tabcontainer .tab { width: 100%; max-width: 100%; border-left: none; border-right: 0; left: 0; top: 0; min-height: 0!important; } .responsive .tabcontainer.mobile-tabs-closed { border-width: 1px; border-style: solid; border-top: none; overflow: hidden; } .responsive .tabcontainer.mobile-tabs-closed .tab_titles { display: none; } .responsive .tabcontainer.top_tab.mobile-tabs-closed .tab.fullsize-tab { margin-bottom: 0px; } .responsive .tabcontainer.mobile-tabs-closed .tab.fullsize-tab { display: block; margin-bottom: -1px; } }
you can see now on the testpage that i have switched to 989px – to illustrate the effect and settings better.
As long as you do not open a tab on “mobile” – you can resize the screen ( or tilt the device )However, these settings alone would have the effect that the tabs can no longer be opened in the “mobile” case. Since the switch case has removed this exactly. Therefore a click solution is needed to correct this.
you see above in the css code there is an additional class i set for that decision ( mobile-tab)
this to child-theme functions.phpfunction mobile_tabs_open_onclick(){ ?> <script type="text/javascript"> (function($) { $('.responsive #top .tabcontainer.mobile-tabs-closed .av_tab_section .tab').click(function() { $(this).next('.tab_content').toggleClass('mobile-tab'); $(this).closest('.av_tab_section').siblings().find('.tab_content').removeClass('mobile-tab'); }); })(jQuery); </script> <?php } add_action('wp_footer', 'mobile_tabs_open_onclick');
If the mods see a much simpler solution, don’t be afraid to announce it.
Demo Page: https://webers-testseite.de/pureinstall/tabs-on-mobile/
(this is for the class on body – you decide when the switch is set)to child-theme functions.php
function add_class_for_tab_switch(){ ?> <script type="text/javascript"> (function($) { function my_tab_switch() { setTimeout( function() { if ($(window).width() <= 767) { $("#top").addClass("tab_switch"); } else { $("#top").removeClass("tab_switch"); } }, 150) } $(window).on('load resize', function() { my_tab_switch(); }); })(jQuery); </script> <?php } add_action('wp_footer', 'add_class_for_tab_switch');
after that you can use these classes on quick css
/***** Settings for closed Tabcontainers on tab switch setting ************/ .js_active .tab_switch .tabcontainer.mobile-tabs-closed .active_tab_content { display: none; visibility: hidden; } .responsive #top .main_color .tabcontainer.mobile-tabs-closed .tab_content.mobile-tab { display: block; visibility: visible; } .responsive #top.tab_switch .main_color .tabcontainer.mobile-tabs-closed .active_tab { background-color: unset; color: inherit; } .js_active #top.tab_switch .tabcontainer.mobile-tabs-closed .active_tab { font-weight: normal; } #top.tab_switch .main_color .tabcontainer.mobile-tabs-closed .tab.active_tab:hover { color: #666666; }
-
This reply was modified 4 years, 11 months ago by
-
AuthorPosts