Forum Replies Created
-
AuthorPosts
-
February 20, 2017 at 9:53 pm in reply to: header widget to be below logo & menu on mobile view #749607
on header you have i think three different possibilities to insert code to:
/********* the one you choose **********/
add_action( ‘ava_after_main_menu’, ‘enfold_customization_header_widget_area’ );
function enfold_customization_header_widget_area() {
dynamic_sidebar( ‘header’ );
}/*********header widget area before**********/
add_action( 'ava_main_header', 'enfold_customization_header_widget_area' ); function enfold_customization_header_widget_area() { dynamic_sidebar( 'header' ); }
/*********header widget area just right after main container starts **********/
add_action( 'ava_after_main_container', 'enfold_customization_header_widget_area' ); function enfold_customization_header_widget_area() { dynamic_sidebar( 'header' ); }
maybe it is better to choose one of the two other options
i often use the source sans pro – but only latin not latin extended – maybe this is causing the mismatch?
and by the way you don’t need to mention the latin case because it is in the latin-extended version.
so :add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Source Sans Pro Extra Bold'] = 'Source Sans Pro:900&subset=latin,latin-ext'; $fonts['Source Sans Pro Bold'] = 'Source Sans Pro:700&subset=latin-ext'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Source Sans Pro Light'] = 'Source Sans Pro:300&subset=latin-ext'; return $fonts; }
This here is the place to get help!
and btw. what is this ? Facebook for
this is because it is in media querie rule:
the ending curly bracket is now missing there – where do you want to end this rule. You have to put in a }
Edit : i put in the bracket – now you can erase me as user
that is the reason why i do not have those media queries in the middle of the css. i put it alway on the bottom to it:
@media only screen and (max-width: 810px) { this last closing bracket was not there }
Great – thanks
ok – have a look and see if i understood your request in the right way.
btw: i added some code to your functions.php of your child theme –
this is why your quick css input window is now at 100% width and responsiveBy the way – please do update to WP 4.72 soon -because there are a lot of sites hacked (hacked by sa3d hack3d) including two of my sites.
it is a security problem of WP 4.71 only and goes to posts (not pages nor portfolio posts) see google-
This reply was modified 8 years, 4 months ago by
Guenni007.
you can do that or you can wait till mods are here in this thread.
is my english too bad or do you like to misunderstand me –
this is the code you should add: https://kriesi.at/support/topic/center-menu-responsive/#post-743775and this is the code you have to remove – https://kriesi.at/support/topic/center-menu-responsive/#post-745323
because it is not the code you need. If you have removed it i will see what code will do the jobEither it is not so important or you changed it and you forgot to response or it is to complicated . So if we had input we can clarify those settings
you lost something (the max-width of body):
#top.boxed, .html_boxed.html_header_sticky #header { max-width: 85%; width: 1010px; }
the rules above are conflicting and confusing that rule
well ok. –
i can see underneath my code above that there are additions in the quick css media querrie und 810px – namely:.container { width: 100%; } .container .av-content-small.units { width: 80%; } .responsive #top.boxed, .responsive.html_boxed.html_header_sticky #header, .responsive.html_boxed.html_header_transparency #header { max-width: 90%; width: 80%; } .responsive .container { max-width: 80%; } #top #header .av-main-nav > li > a { font-size: 15px; }
can you please remove that first – because the code which is necessary is “fighting” against that.
February 9, 2017 at 10:01 pm in reply to: I set up table as 2 columns but on the website it shows as 3 columns. #745100≥ ≤ < > html-entities
or
≥ and ≤ unicode dezimal works
-
This reply was modified 8 years, 4 months ago by
Guenni007.
ok seems to be not so important, but you changed yourself the code
so now i’m out from this topic. Your welcomei see that this code was inserted after my last information:
it is in media-querie und 810px – can you please remove it shortly
i thought you like to have for body (#top.boxed) max-width: 1010px and width: 85%.container { width: 100%; } .container .av-content-small.units { width: 80%; } .responsive #top.boxed, .responsive.html_boxed.html_header_sticky #header, .responsive.html_boxed.html_header_transparency #header { max-width: 90%; width: 80%; } .responsive .container { max-width: 80%; } #top #header .av-main-nav > li > a { font-size: 15px; }
after that we will see what happens
First impression:
You see the image and that the slider is under the Navigation. This is a wanted effect?
if not now the value is :
.html_header_top.html_header_sticky.html_large.html_bottom_nav_header #main { padding-top: 165px !important; }
if you see my little video there was allways a padding left/right so there has to be some changings in the meanwhile from your site which causes this behavior.
I will see what it is.#top .main_menu #menu-item-1107.av-menu-button a .avia-menu-text { border: 2px solid #fff !important; } #top .main_menu #menu-item-1107.av-menu-button a:hover .avia-menu-text { border: 2px solid #f00 !important; }
be aware that on
#menu-item-1107.av-menu-button
is no spacebar between 7.ahatte ich auch nicht so empfunden.
PS ich hatte mal bei einer installation zunächst die Variante boxed gewählt beim Layout. Da kann man dann für Body ein Hintergrundbild wählen.
nach dem umstellen auf stretched – was mir dann besser gefiel, hatte ich diese Einstellung dann (die ist dann nicht mehr erreichbar vergessen.
Genau da drin war das http Bildchen hartnäckig platziert. Da habe ich mir den wolf gesucht.Bis demnächst mal wieder
ah sorry i didn’t mention it above – these codes are for child-theme functions.php !
if you shrink his site to responsive case you see the fact he liked to change.
Look here to my solution2 for his site:
https://webers-testseite.de/ikom/wp-content/uploads/screenfilm.mp4
btw:
Note: There is no function to check if a page is a sub-page in wordpress codex – but
we can get around the problem if we make a new function :function is_tree($pid) { global $post; if(is_page()&&($post->post_parent==$pid||is_page($pid))) return true; else return false; };
than you can use it like:
than we can use conditional tag if it is page id 2 or is subpage of page id 2
if (is_tree(2)) { do something }
PS : only works with one level it does not check if a page is sub sub page !!!
this might help:
(Example page-id is 2854)add_filter('avf_logo','av_change_logo'); function av_change_logo($logo) { if( is_page(2854) ) { $logo = "/wp-content/uploads/logo1.png"; } return $logo; } add_filter('avf_logo_link','av_change_logo_url'); function av_change_logo_url($url) { if( is_page(2854) ) { return "link url here"; } }
is there a possibility to combine these rules ? Rikard
btw. you can insert here every conditional tag you know even arrays:
f.e.add_filter('avf_logo','av_change_logo'); function av_change_logo($logo) { if( is_page( array( 42, 54, 6 ) ) ){ $logo = "/wp-content/uploads/logo1.png"; } return $logo; } add_filter('avf_logo_link','av_change_logo_url'); function av_change_logo_url($url) { if( is_page( array( 42, 54, 6 ) ) ){ return "link url here"; } }
if ( is_singular( 'event' ) || is_search() || is_category() || is_page() && !is_page(1307) || is_singular( 'portfolio' ) )
etc pp works alli think this is no slider at all.
You can achive this in an elegant method by creating nice landingpages by scrollmagic or greensock animation.
Look f.e. here: http://www.electricenjin.com/#intro
or very nice too: http://lempens-design.com/here are some example-demo-pages :
https://greensock.com/examples-showcases
you see in the first example above – that it is a similar (more elegant way) of your link.
I can imagine this as start page for an enfold setup.February 7, 2017 at 11:38 am in reply to: I set up table as 2 columns but on the website it shows as 3 columns. #743818try it with html entities you mean that little character with degrees of Celsius Grade
°
f.e. C°
Don’t forget the semicolon
by the way – here is a Link to a listand here is the alternative without floating some menu links under the others:
Less place for the logo for more place for navigationTry this first – seems to be the better alternative
.av-main-nav li:nth-child(3) { margin-right: 150px; } .responsive .main_menu ul:first-child > li > a { padding: 0 8px; } #header_main_alternate { border: medium none !important; } #header .container { max-width: 100%; padding: 0px; } .html_header_top.html_logo_center .logo { filter: drop-shadow(2px 2px 3px #888888); left: 50%; transform: translate(-50%, 20px); } .html_header_top.html_header_sticky.html_large.html_bottom_nav_header #main { padding-top: 120px !important; } .cart_dropdown { opacity: 0; right: 0; top: 0; transition: none !important; } @media only screen and (min-width: 980px) { .responsive .main_menu ul:first-child > li > a { padding: 0 20px; } } @media only screen and (max-width: 810px) { .container #advanced_menu_toggle, #advanced_menu_hide { display: block; } .main_menu .avia-menu, #header_main_alternate, .fallback_menu { display: none; } .responsive #top #wrap_all .container { float: none; margin: 0 auto; max-width: 85%; padding-left: 0; padding-right: 0; width: 85%; } .responsive.html_header_top.html_logo_center .logo { left: 0; margin: 0; transform: translate(0%, 0px); } .responsive #top .cart_dropdown { margin: -23px 50px 0 0; position: absolute; right: 7.5%; top: 50%; opacity: 1 }
-
This reply was modified 8 years, 4 months ago by
Guenni007.
the filter is to style the logo a bit.
for me the thin line through your logo looks not good.Some rules exists allready and are only (transforming the logo) to setup a bit different
PS : and now i’m hungry – looks very nice
-
This reply was modified 8 years, 4 months ago by
Guenni007.
Edit: try first the other solution – seems to be clearer !
so one possibility is to have a fluent nav height.
if you don’t want to shrink font-size you have to allow floating (as you does) – but your container with navigation is set to 50px height.
try this here instead:#header .container { max-width: 100%; padding: 0px; } #header_main_alternate { border: medium none ! important; } .html_header_top.html_header_sticky.html_large.html_bottom_nav_header #main { padding-top: 138px !important; } .html_header_top.html_logo_center .logo { filter: drop-shadow(2px 2px 3px #888888); left: 50%; transform: translate(-50%, 10px); } .html_header_top.html_logo_center .main_menu ul:first-child { display: inline-table ! important; width: auto ! important; } .html_header_top.html_bottom_nav_header .main_menu > div, .html_header_top.html_bottom_nav_header .main_menu ul:first-child { height: auto ! important; width: 100%; } @media only screen and (max-width: 1120px) { .html_header_top.html_header_sticky.html_large.html_bottom_nav_header #main { padding-top: 186px !important; } }
on transformation the logo for me it looks nice to have the logo a bit shifted down. But it is a matter of opinion.
the padding-top is for having the slider not covered by the navigation.-
This reply was modified 8 years, 4 months ago by
Guenni007.
my advice is to wait as long as possible to install caching tools or minify tools since designing the site is finished.
Because you have to always delete cache to see the influence of changings.maybe the filepermissions are not correct .
The quick css rules are saved in : /wp-content/uploads/dynamic_avia/enfold_child.css
if you are working with child theme – if not it is in enfold.css same folder.These rules are only added at the end of default rules – so please look if the folder dynamic_avia has correct folder-permission and the css are writeable.
(via ftp)first set the rules to important:
.mfp-title { display: none !important; } #top div .avia-gallery img { border-width: 0 !important; }
other rules in your quick css have an effect?
sometimes there are missing closing brackets infront of the rules
may i see your whole quick css entries? -
This reply was modified 8 years, 4 months ago by
-
AuthorPosts