Forum Replies Created
-
AuthorPosts
-
ok – schau jetzt mal ob es das ist was Du suchst!
http://webers-testseite.de/huth/Lass uns mal gerade deutsch hier miteinander reden.
In dem Beispiel oben (nicht Enfold) ist es aber wohl schon so wie jetzt bei mir im Beispiel.
Wie gesagt die Sache wird einfacher, wenn man die footer.php dahingehend bearbeitet, dass die interessierenden Container ( in deinem Fall nun beide) nicht mehr in Main liegen. Die bearbeitete footer.php landet dann halt in child-theme folder.
Das ist der momentane Code (wobei ich wirklich kein Profi bin, was die php und jquery Sachen betrifft – ich denke da ließe sich einiges abändern):
add_action('wp_footer', 'ava_custom_script'); function ava_custom_script(){ ?> <script type="text/javascript"> (function($) { $(document).ready(function(){ $(document).scroll(function(){ var socketh = $('#socket').outerHeight(), footerh = $('#footer').outerHeight(), spacerh = $('#socket').outerHeight() + $('#footer').outerHeight(); if( $(window).scrollTop() >= $(document).height() - $(window).height() - socketh ) { $('#socket').css('position', 'fixed' ); $('#main').css('padding-bottom', socketh ); } else { $('#socket').css('position', 'relative' ); $('#main').css('padding-bottom', 0 ); } }); }); })(jQuery); </script> <?php }
weiß nicht ob ich die document ready funktion wirklich brauche. Die scroll funktion gibt mir zurück, ob ich den Bottom erreicht habe.
Wenn das so ist wechsel ich ein paar css Anweisungen.Ich glaube ich muss mich jetzt endlich mal in jquery einarbeiten – scheint ja viele möglich zu sein.
Ich versuche mal die Seite oben umzustricken.PS : die outerHeight nahm ich damit ich margins und borders gleich mitberücksichtige.
-
This reply was modified 8 years, 5 months ago by
Guenni007.
ohha – this is what i got ( i set the footer to a given height – because otherwise the effect is not so clear)
if you like it – i will share it – but without a child-theme footer.php it does not work. The thing is to get the socket out of main – not so hard to make but that makes things a lot easier.
http://webers-testseite.de/huth/i’m not shure if this is what you try to get:
http://webers-testseite.de/elegant/
i don’t like the way it removes on scrolling back it would be nice to have here a animation of footer gone.
ok i see it works good but this is not the thing which you are looking for.
the footer and socket should be on bottom at the end of the scroll.your idea to make it before li is good because otherwise on hovering the separtator will do the same thin as the link itself.
The only thing is positioning
But please overwrite your input on thatThe first rule is to have no sign in front of first list point (:first-child is what it says the first li after ul)
the li.menu-item-top-level is to prevent that submenu list points will have a sign in front of their links..av-main-nav li.menu-item-top-level:first-child::before { content: ""; } .av-main-nav li.menu-item-top-level::before { content: "/"; font-size: 30px; font-weight: 400; position: absolute; top: 50%; transform: translateY(-50%); }
September 25, 2016 at 1:44 pm in reply to: Main Menu Parent Highlight while sub or child is selected #691318i give up to solve this – sorry to many transversely relationships
-
This reply was modified 8 years, 5 months ago by
Guenni007.
September 25, 2016 at 12:46 pm in reply to: Main Menu Parent Highlight while sub or child is selected #691314sorry – i can not help you now – my family wants to eat something with me :wink
an no – that does not help anyway. – and i’m a participant as you are. so for now its enough – you got your default mode back.PS it will be heavy to realise because you got a lot of links in sublevel they have a top-level link too.
Contact f.e. is sometimes the support on sublevel etc.-
This reply was modified 8 years, 5 months ago by
Guenni007.
September 25, 2016 at 12:27 pm in reply to: Main Menu Parent Highlight while sub or child is selected #691309remove all the code above i posted here :
https://kriesi.at/support/topic/main-menu-parent-highlight-while-sub-or-child-is-selected/#post-690702-
This reply was modified 8 years, 5 months ago by
Guenni007.
September 25, 2016 at 12:06 pm in reply to: Main Menu Parent Highlight while sub or child is selected #691305sorry : can you please erase first code completely and then i will have a look again.
it is just the problem to stay in first-level rules and not to influence submenu aswell.
And this here too. I can swear – yesterday it worked like a charm with the fix of Josue – today not ( the only thing – firefox had an Update tonight)
And this background-attachement : fixed is only a bug of firefox ( when there is transform)I don’t know what happens today!
btw: on that construct is it possible to have a slider without transform ?
-
This reply was modified 8 years, 5 months ago by
Guenni007.
But – I think this is only a nice feature for screens with more than 768px – so pack it into a media querry
not enough place for content with a fixed footer. Maybe set the footer to display: nonewell i would do it via the scaler container:
.mfp-iframe-scaler { width: 80vw; height: 45vw; left: 50%; top: 50%; transform: translate(-50%, -55%) ! important; position: relative; }
the vw is video-screen width ( if you got a 16:9 video – 80% of videoscreen-width results in nearly 45% of videoscreen-width for the height)
-
This reply was modified 8 years, 5 months ago by
Guenni007.
and perhaps we should take instead of
.height( ) the .outerHeight( )
see Result here: Link
btw: the footer background-color is a gradient – just a test – nothing i will realy work with.
And diagonal backgrounds are just to see what happens realy ( landing page )-
This reply was modified 8 years, 5 months ago by
Guenni007.
September 24, 2016 at 4:22 pm in reply to: I've submitted 4 tickets with no response to my knowledge #691184Sorry
September 24, 2016 at 4:14 pm in reply to: I've submitted 4 tickets with no response to my knowledge #691182Well i guess you are not familiar with css coding?
<center><font size=”6px” color=”black”>Get this <font color=”red”>Free CD</font> that will give you <br><br>
a step-by-step proven process to <br><br>
hire winners instead of wimps <br><p style="text-align: center; font-size:6px; color:#000">Get this<span style="color:red"> Free CD</span> that will give your<br/><br/> a step-by-step proven process to <br/><br/> hire winners instead of wimps</p>
Edit : sorry the word “hire” seems to be automatically linked to a page here on board
you can take for p other tags like div or span
btw : you realy want to display the font-size 6px ?
-
This reply was modified 8 years, 5 months ago by
Guenni007.
done !
September 24, 2016 at 4:01 pm in reply to: How do I control the description of the menu links on the Creative Studio Demo? #691174on dashboard / appearance / menus – on top right of this window there is “Screen Options” push that little button.
Now you can choose what the menu options dialog should look like
under the “Show advanced menu properties” there are some interesting things f.e. you can give each list point an own class !
And for those little things in hamburger-menu the “description” that is the point you are looking for
check those things you like to have.then you only must toggle the menu list point at that little arrow
-
This reply was modified 8 years, 5 months ago by
Guenni007.
still testing – but im on a good way i think
hm – i don’t know if every section or grid etc got this class (container_wrap) if so we can do that:
add_action('wp_footer', 'ava_custom_script'); function ava_custom_script(){ ?> <script type="text/javascript"> (function($) { $(window).load(function() { var socket = $('#socket'), footer = $('#footer'), spacerh = socket.height() + footer.height(); $('#main .container_wrap:nth-last-child(3)').css('padding-bottom', spacerh ); }); $(window).resize(function() { var socket = $('#socket'), footer = $('#footer'), spacerh = socket.height() + footer.height(); $('#main .container_wrap:nth-last-child(3)').css('padding-bottom', spacerh ); }); })(jQuery); </script> <?php }
and in quick css :
#footer { position: fixed; left: 0; width: 100%; z-index: 1; bottom: 58px } #socket { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1; } #footer-socket-spacer { clear: both; position: relative; width: 100%; }
-
This reply was modified 8 years, 5 months ago by
Guenni007.
but there has to be in the function an option for window resize – because footer height changes with content. On small screens we got a growing footer height (with socket too- but not so often)
It has to proof in time (dynamically) the height of socket and footer – how can we do that?
The code above works if we actualize the window but does not react on window-resize-
This reply was modified 8 years, 5 months ago by
Guenni007.
thats why i’m astonished – on my sites it works well ! (WP4.61 Enfold 3.8)
by the way : for that page you use a fixed footer!
i would not set the z-index to 0 – that is a bit confusing.
isn’t it this way a bit looking better:#footer { background-color: rgba(87, 98, 112, 0.9); bottom: 58px; left: 0; position: fixed; width: 100%; z-index: 1; }
how did you do that with the spacer ?
and by the way if this is the site with background image to go away i would like to get rid of that before 480px
@media only screen and (max-width: 768px) { #service { background-image: none !important; } }
.home #av_section_1 .av-special-heading-tag span { background: #000 !important; color: #fff !important; padding: 0 15px; }
the padding is not necessary but i think it looks better.
this is a little plugin which could reset the wordpress ( and the database too) to default (like a clean install)
If you have content – this is gone tooEdit: ok if you are only changing vor that wp-content/uploads/dynamic-avia 777 is ok ! I did not follow your link and thought you did it for all files /folders so forget the rest here
But 777 is too much.
Go on reading how to set the correct file permissions.I think for the files itself it is 640 and for the folders 750
but 644 and 755 seem to be ok too. For wp-config you should have 640 ( on normal Use)
Sometimes if you install f.e. Caching tools – they want to insert some code to wp-config – this has to be allowed for that moment.
only my uploads, upgrade and temp folders got a different permission.For example the quick css info goes to wp-content/uploads/dynamic-avia
these files must have write permissionsBTW sometimes (it depends on your hoster) the file-permissions are ok but the owner-ship is wrong.
For my hoster f.e. i had to set the owndership to wp user (not ftp) and i have than the possibility to set the ftp-user react like a wp-user.
Only that setting allows me to have automatic updates of wordpress. etc –________________
Security is a wide and complex field in wordpress.
The wp-config.php is a very important file to secure so there are a lot of things you can doOn apache Server you can use for that the htaccess file f.e.
<files wp-config.php> order allow,deny deny from all </files>
-
This reply was modified 8 years, 5 months ago by
Guenni007.
you see my example page above that it works !
but without a link to your site this is only “divination” – from a screenshot it is nearly impossibel to say what code might help you
My guess was – that on your screenshot there is a color-section with heading in it!
There was a second line which should get a different background-color than the first line.So to make a selection possible these two lines must have a different source. To get one i inserted a span tag to the second line of the heading.
-
This reply was modified 8 years, 5 months ago by
Guenni007.
Aber das ist dann wohl eher das browser problem und nicht enfold zuzuschreiben.
First of all – my code above was an example because you did not say what to change! btw: my code is not in your source code!
.forsikring_priser .pricing-table-wrap:nth-child(1) li.avia-heading-row, .forsikring_priser .pricing-table-wrap:nth-child(1) li.avia-button-row a { background-color: #d04372; } .forsikring_priser .pricing-table-wrap:nth-child(3) li.avia-heading-row, .forsikring_priser .pricing-table-wrap:nth-child(3) li.avia-button-row a { background-color: #87c7ab; }
for each column 1, 2, 3 see in nth-child(1)
September 23, 2016 at 1:26 pm in reply to: Main Menu Parent Highlight while sub or child is selected #690702have a look here: https://kriesi.at/support/topic/mega-menu-top-level-styling-while-menu-is-active/
for mega-menu this is a bit easier: (but you will not have mega-menu on that template)
.open-mega-a { color: #0976ac !important; }
but for your template i think this could be a good way:
#avia-menu > li.menu-item.current-menu-item a, #avia-menu > li.menu-item.active-parent-item a { background: #097ac0 ; padding-left: 10px; } #avia-menu > li.current-menu-item .avia-menu-text, #avia-menu > li.active-parent-item .avia-menu-text { color: #fff !important; } #avia-menu > li.current-menu-item .avia-menu-subtext, #avia-menu > li.active-parent-item .avia-menu-subtext { color: #efefef !important; }
because the first level nav list points are allready bold there will be no big difference in selected or not
-
This reply was modified 8 years, 5 months ago by
Guenni007.
-
This reply was modified 8 years, 5 months ago by
-
AuthorPosts