Forum Replies Created
-
AuthorPosts
-
thanks
btw:get rid of that
#avia-menu { margin-left: 27%; }
because your search field is out of sight
instead try this here:
(the margin-left with transform gives a good method to center that ul.html_header_top.html_bottom_nav_header .main_menu ul:first-child { display: inline-flex; margin-left: 50%; transform: translate(-50%); white-space: nowrap; width: auto !important; } .html_header_top.html_bottom_nav_header #top .main_menu .menu-item-search-dropdown { float: left; }
and for small screens the “social row” is now too big – so start the advanced menu earlier:
@media only screen and (max-width: 865px) { .container #advanced_menu_toggle, #advanced_menu_hide { display: block; } .main_menu .avia-menu, #header_main_alternate, .fallback_menu { display: none; } }
your submenu is a bit to small now because of the white-space setting above:
.av-main-nav ul { width: 250px; }
Greetings – and now i’m offline
by the way besides the solution above you see my code via defining new “social icons” but this is than only with icons
but without that little “shifting time”
- This reply was modified 8 years, 3 months ago by Guenni007.
Well here we go:
please do not make only one custom menu point out of this ! if it has to work like a real link!
so goto Menu and create two custom links (if you don’t know how to get to class setting for menu points ask please)
the red urls are the links
on phone : tel: … (you see the percent sign – this was automatically generated if you use here a blankspace)
on email: mailto: …the blue underlined fields are what is shown on menu (here you can set in even images or Names like “Phone” “E-Mail” )
for both i put in css class : shifted
the code in your child-theme functions.php (you have to customise the menu-item id’s) :
function av_move_social(){ ?> <script> jQuery(window).load(function(){ jQuery(".av-main-nav > li#menu-item-2845").detach().prependTo('#header .social_bookmarks'); jQuery(".av-main-nav > li#menu-item-2847").detach().prependTo('#header .social_bookmarks') }); </script> <?php } add_action('wp_footer', 'av_move_social');
and the css code in quick.css was (here too – customise the menu-item id’s):
.shifted .avia-bullet { display: none; } #menu-item-2845.shifted { margin-right: 80px !important; } #menu-item-2847.shifted { margin-right: 120px !important; } .shifted .avia-menu-text { display: inline-flex; width: 120px; }
if you can not find out the item id’s make the menu points and than we will see the rest
and this is what it looks like afterwards: http://webers-testseite.de/ikom/
well there is a nice Plugin called intuitive custom postorder : Link
after activation you are able to sort your posts/pages in a sequence you like by drag and drop (on pages/post list)
this sequence will than be shown even in widget area
Also: where did you enter your email adress now?
If you like to have it besides ” Copyright © BANJARA AS – powered by Enfold WordPress Theme” you can insert in that enfold options dialog field html code too!
if you like to have it in that widget here again html code too:
<a href="mailto: (Email address hidden if logged out) "> (Email address hidden if logged out) </a>
btw the image above is interesting for you i guess:
https://kriesi.at/support/topic/phone-number-in-header-4/#post-667627because your custom link – is no link
fill in url tel: 0178…
and in Link Text if you want to show the phone number 0178…than even mobiles could press that link and they will open that phone
btw instead of appendTo in Yigits Code you can use prependTo if you want it infront of social bookmarks !
a bit css is than needed (margin-right etc to style it a bit)
see here both (my code above) works well too http://webers-testseite.de/ikom/- This reply was modified 8 years, 3 months ago by Guenni007.
how did you manage that with enfold options?
this is logo left menu below? and how did you manage to show those social icons on that place?Or is it main menu with only social icons
and a “main navigation” with submenu ?btw:
add this to your child-theme functions.php :function avia_add_custom_icon($icons) { $icons['phone'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue854'); return $icons; } add_filter('avf_default_icons','avia_add_custom_icon', 10, 1); // Add new icon as an option for social icons function avia_add_custom_social_icon($icons) { $icons['Phone'] = 'phone'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
than you have the opportunity to choos on the bottom of that social icon list Phone.
so now i’m out – without the life site i don’t want to guess how it could look like.
So try to place your example site here – and if you don’t want to make it public put it in the hidden part of the message. But than you have to wait til Mods are here.you can try this first on quick css:
html * { font-family: "Ubuntu","HelveticaNeue","Helvetica Neue",Helvetica,Arial,sans-serif; font-weight: 300; }
but there are a lot of inline css rules on enfold if you are working with alb (advanced layout editior)
you than have to define an additional rule for that!f.e.
#top h1 strong, #top h2 strong, #top h3 strong, #top h4 strong, #top h5 strong, #top h6 strong { font-weight: 300 !important; }
i do not know if it is possible to map the 300 weight with the “normal”
To get rid of all borders in that container – > very cool to do that:
#header_main, #header_main * { border: none !important; }
this works on that demo site
add this here to your child-theme functions.php:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Ubuntu'] = 'Ubuntu:400,300,300italic,400italic,500,500italic,700,700italic'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Ubuntu'] = 'Ubuntu:400,300,300italic,400italic,500,500italic,700,700italic'; return $fonts; }
than you shoud have the choice on enfold options page – font to choose your Ubuntu (it is added at the end of the google fonts list on enfold )
400 is the normal font-weight so i think you should not have the need to change something than.
The rest is perhaps some quick.css (f.e. if you need the headings on 400 too – goto Enfold Options “Advanced Styling” and generate a rule for h1, h2, h3, h4, h5, h6 etc.)try this here first on quick css:
.html_header_sidebar .logo { border-bottom: medium none !important; } .html_header_sidebar #header .av-main-nav > li > a { border-bottom: medium none !important; }
i do not realy see if you want to get rid of all lines or only the top and bottom line of navigation
it would be easier to have a real link to your site because demo site is a bit different on yours: http://kriesi.at/themes/enfold-consulting/ while you have no social link under your navigation- This reply was modified 8 years, 3 months ago by Guenni007.
the code of your link above does work too – i tested it on my testenvironment (but perhaps you give it a second choice) without the uncommenting lines:
add_image_size( 'bigger-square', 250, 250, true ); add_filter( 'image_size_names_choose', 'my_custom_sizes' ); function my_custom_sizes( $sizes ) { return array_merge( $sizes, array( 'bigger-square' => __( 'Bigger Square' ), ) ); }
or much easier – you choose on that alb element a bigger font size: maybe 60px
and than you reduce the padding on that icon.page-id-3789 .av-icon-char { padding: 10px !important; }
the point is that on uploading an image WordPress generates those given sizes and stores it under the known names.
it only is in the dropdown list if the image has that calculated size – so have a look after you have done the resize thumbnails and see again
(PS : you have to mark those images you want to be resized )
the force regenerate thumbnails has the advantage that the old images are erased and newly calculated.
So if you change perhaps the wordpress media dimensions the old ones are erased and did not waste memory on your server.- This reply was modified 8 years, 3 months ago by Guenni007.
the first two css rules set before every link starting with “tel:” an icon of the enfold entypo fontello icons.
the third rule is to manage the image i set in the menu link
if you don’t like it as a number see here
on my test environment http://webers-testseite.de/ikom/code is on that:
#menu-item-2836 a[href^="tel:"]::before { content: "\e854"; font-family: entypo-fontello; font-size: 25px; } #menu-item-2836 span { display: none; } #menu-item-2839 .avia-menu-text > img { position: relative; top: 10px; }
ah ok – if you got your social links on the right of your main nav – create a new Menu Point on your main Nav !
Add a custom link
fill in that Url input field : tel:+49 228 21548753
on Name : Phone or an image link or your phone-number- This reply was modified 8 years, 3 months ago by Guenni007.
Dashboard – Enfold (or Enfold Child) – Header – Extra Elements – Header Phone Number/Extra Info ( choose left or right as you like it)
maybe this seems to be better: https://wordpress.org/plugins/force-regenerate-thumbnails/
PS: WordPress itself reduces by default all images (maybe it is only jpg) to 90% Quality (not size) – if you don’t like that – because all images are optimized perfectly than you can add the following to functions.php:
add_filter( ‘jpeg_quality’, create_function( ”, ‘return 100;’ ) );
well to me it works nice – but you have to know that this will only have an effect for newly (after that functions.php entry) uploaded Images !
But if you want that every image in your media library gets the new format than there are some nice plugins to solve this with one klick (Regenerate Thumbnails f.e.)hm ok than here is the site specific rule . (with a custom class on that icon it will be not so complicated)
btw custom class activation look here – this is a nice add for enfold because you can give nearly to all alb (advanced layout builder) elements a custom css class) read here for custom class :paste it to your quick css on enfold options
.page-id-3789 .av-icon-char[data-av_icon]::before { font-size: 60px !important; left: -12px; position: relative !important; } .page-id-3789 .av-icon-char { line-height: 25px !important; }
first of all it might be nice to have here a unique custom class for that icon – because the rules is easier to keep specific with that.
So please give it a class (maybe: “telecharger”) that i try to give you a piece of code which might help you .you can see here a reference : http://www.w3schools.com/cssref/css_selectors.asp
http://www.w3schools.com/cssref/sel_before.asp
these pseudo selectors are a mighty tool – and browser support is now very high
you mean something like this:
try to insert it into your quick css:#menu-item-3289 a::before { content: "\e805 \00a0 "; font-family: entypo-fontello; font-size: 20px; position: relative; top: 3px; } #menu-item-3287 a::before { content: "\e806 \00a0"; font-family: entypo-fontello; font-size: 20px; position: relative; top: 3px; } #menu-item-3288 a::before { content: "\e80a \00a0"; font-family: entypo-fontello; font-size: 20px; position: relative; top: 3px; }
btw: you should change font color of top nav :
#header_meta .sub_menu li a { color: #fff !important; }
i can not confirm your observation. To me it works perfekt here on firefox / maxosx
but on Chrome and a bit in Safari the logo is a bit upset – but shrinking is than ok too. (aspect ratio seem to be unchanged)does any other rule in your functions.php of your child-theme work?
maybe there is some closing instruction of the rules before missing.
add_filter or add_theme_support each ends with a “;”
a function does not! – so here is an example:add_filter('avf_logo_alt', 'avf_change_logo_alt'); function avf_change_logo_alt($alt) { $alt = "New Alternate Text Here"; return $alt; }
(btw. this is the method you can change the alt text of your Logo)
so you see add_filter with semicolon
function not after the bracketJuly 30, 2016 at 9:58 pm in reply to: Odd behavior – Footer link color different on one page #666900there has to be something messed up with your submenu.
footer was part of that container – and does not come after it.but i think it is solved now because now everything is fine
is this your output you want?
http://webers-testseite.de/ikom/or a little transparent:
.home #header_meta { background: rgba(0, 50, 150, 0.8) none repeat scroll 0 0 !important; }
the 0.8 are 80% Opacity
- This reply was modified 8 years, 4 months ago by Guenni007.
sorry it sound a little bit like you are ordering a pizza quatro stagioni
– without : artichokes, tomatoes or basil, mushrooms and ham or prosciutto, or olives
– but with : four different kind of Cheese (quattro formaggi) :lol:try to explain:
home page: transparent header, top bar scrolling, sticky header, main-navigation: tansparent
other pages: no transparent header, top bar scrolls too, sticky header, top bar different background-color than navigation.
etc. -
AuthorPosts