Forum Replies Created
-
AuthorPosts
-
Yes this might be the best position for it:
add_filter('avf_builder_boxes', 'register_meta_boxes', 10, 1); function register_meta_boxes($boxes) { $boxes[] = array( 'title' =>__('Layout','avia_framework' ), 'id'=>'layout', 'page'=>array('page' , 'post' , 'portfolio' ), 'context'=>'side', 'priority'=>'low'); return $boxes; } add_filter('avf_builder_elements', 'register_meta_elements', 10, 1); function register_meta_elements($avf_builder_elements) { $avf_builder_elements[] = array( "slug" => "layout", "name" => __("Menu and Logo Position", 'avia_framework'), "desc" => __("You can choose various different logo and main menu positions here", 'avia_framework'), "id" => "header_layout", "type" => "select", "std" => "", "subtype" => array( __('Logo left, Menu right', 'avia_framework') =>'logo_left main_nav_header menu_right', __('Logo right, Menu Left', 'avia_framework') =>'logo_right main_nav_header menu_left', __('Logo left, Menu below', 'avia_framework') =>'logo_left bottom_nav_header menu_left', __('Logo right, Menu below', 'avia_framework') =>'logo_right bottom_nav_header menu_center', __('Logo center, Menu below', 'avia_framework') =>'logo_center bottom_nav_header menu_right', )); return $avf_builder_elements; }
there must be a mismatch because even if you have choosen the boxed layout the background-image of html would never be seen through wrap_all or main container.
you say that before import of parent settings something was ok. Maybe you go and press that Reset all Options Button on Enfold Child.
Before you do that copy paste your quick css to your desktop text editor.If it is better than – you can reconstruct your wanted color scheme and color settings.
If you paste in your quick css and it changes to the faulty outlook there must be one or more entries that causes this behavior.it is a bit of work ( Widgets and all Headersettings etc must be set again) – but otherwise we wan’t find the wrong and strange behavior.
btw : this could be a better (seamless) background pattern: Link
August 17, 2017 at 4:41 pm in reply to: Individual background images for each tab (tab element) #840485look here – but it seams only to work with seamless background images – otherwise the positioning and sizing will be to complicate !
August 17, 2017 at 12:14 pm in reply to: Individual background images for each tab (tab element) #840351you try to give the tab headings a background image ?
Or the whole tab content – including the headings?it is much easier to investigate if we have a link to your site
doing it via edited avia.js works ! but Josue’s “hook” method to overwrite it in original avia.js not.
there is a good documentation : http://kriesi.at/documentation/enfold/using-a-child-theme/
in the green note box there is the download of a pre-built child-theme you can use for that.
1) just upload that enfold-child folder via ftp to your themes folder (adjacent to enfold folder).
2) activate the child-theme on dashboard – appearance
3) goto Dashboard – Enfold Child – Import/Export
4) and “Import Settings from your Parent Theme”* 5) don’t know if it is necessary to copy/paste the quick css to enfold-child
so now you are prepared to have all the good snippets here from board.
are you working with a child-theme ? in this case i would recommend you to completely erase your enfold folder via ftp and upload a fresh one.
All settings are in wp-content/uploads/dynamic_avia etc. so they are not influenced by this.@Mike : and how did he get rid of the top nav and social icons?
the whole header-meta is gone (not display:none) it is absentto have the opportunity to change header layout for each page/post you can register a meta box for that :
see here for nearly each page: https://webers-testseite.de
oh no – I think some code should belong to me :lol :wink
Sorry- This reply was modified 7 years, 3 months ago by Guenni007.
to reach intentionally such a change – it has to be a bit of work to get your results. So if you do not influence it yourself it is very labour intensive to get what you got.n So is there anybody who helped you with your page?
Have a look to your functions.php of your child-theme – are there additional settings or functions ?
go to fontello.com – mark the icons you want and give the whole bunch a meaningful font name (f.e. transportation) download the webfont.
Upload this fontello zip file to enfold on Dashboard – Enfold (child) – Import/Export – Iconfont ManagerAugust 16, 2017 at 3:12 pm in reply to: Remove numbers from search results (or improve formatting) #839919and maybe you like the shadow and the border a bit more bigger and in the blue of the headings:
.search-result-counter { box-shadow: 0 0 5px 0 rgba(9, 93, 161, 0.6); border: 2px solid #095DA1 !important; }
but btw. what did you do with the headings – normaly it is usefull to have a link to the found pages/posts of search.
August 15, 2017 at 8:52 pm in reply to: Adding Member Login Area In header near social signals #839575and here you didn’t mention it that it is a https page: your thread above
anyway hope it works now.
August 15, 2017 at 8:47 pm in reply to: Adding Member Login Area In header near social signals #839573see my site above – i changed it to secondary menu
left hand phone and extra info
right hand your link target is new window or tab – and than the social icons.if you press on Members Login/Sign Up a new site is opend
August 15, 2017 at 8:36 pm in reply to: Adding Member Login Area In header near social signals #839564Or use the secondary menu (Will be displayed if you selected a header layout that supports a submenu here) (Currently set to: headnavigation)
but even there you have to target the link correct!
August 15, 2017 at 8:31 pm in reply to: Adding Member Login Area In header near social signals #839560so where do you link to?
from the site to the site makes no sense? you said that you link to a login page – what is the url of it?you see my example above:
<a href="https://webers-testseite.de/wp-login.php" target="_blank">Member Login/Sign-Up</a> Fon: +49 228 9768293
it links to the wordpress login area. If you have a different login page tell me where?
- This reply was modified 7 years, 3 months ago by Guenni007.
August 15, 2017 at 8:24 pm in reply to: Adding Member Login Area In header near social signals #839548where is the
target="_blank"
?August 15, 2017 at 8:14 pm in reply to: Adding Member Login Area In header near social signals #839542<a href=”http://hylandgraphics.com” target="_blank">Member Login/Sign-Up</a>
- This reply was modified 7 years, 3 months ago by Guenni007.
August 15, 2017 at 8:07 pm in reply to: Adding Member Login Area In header near social signals #839536btw : looks this way : https://webers-testseite.de left side over the logo
so you need text instead of an icon – and you allready used the “Header Phone Number/Extra Info” because this is made for that case
btw. no one hampers you to insert here html text too so this is possible:
<a href="https://webers-testseite.de/wp-login.php" target="_blank">Member Login/Sign-Up</a> Fon: +49 228 9768293
same example page on the right side!
August 15, 2017 at 7:43 pm in reply to: Adding Member Login Area In header near social signals #839526well you can make your own “social icon link” by doing this to your functions.php of your child-theme:
function avia_add_custom_icon($icons) { $icons['login'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue80b'); return $icons; } add_filter('avf_default_icons','avia_add_custom_icon', 10, 1); function avia_add_custom_social_icon($icons) { $icons['Login'] = 'login'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
after that you got on enfold – social profiles in the list at the bottom “Login” on the right you can enter a link to whatever you like.
unfortunately the entypo-fontello has no lock icon – to make it perfect you can create your own fontello font and upload it to enfold.
- This reply was modified 7 years, 3 months ago by Guenni007.
if i do it via avia.js and a edited copy of it in child-theme it works ! but the “hook” with the Josue main.js does not work?
That way you’re technically replacing avia_header_size using a child theme.
i do not often look to my own started threads but definitly more than now my response – because i see a “Günter” on the end – so i thought it was my last entry :lol.
Greatings from Günter to Günter
when you send me an ok – i switch the my layout back to origin and delete your logo.
If you need your logo as path – tell mehave a look to the example page now – this is only your header layout with your logo and the avia.js changings without css – because
navigation is in the case of nav under logo in header_main_alternate and not in header_main.so we now can shrink the logo to (nearly) nothing (in my example it is 1px) – it works with logo centered menu below too!
the values to change depends on your logo size you inserted ! I reconstruct your logo to have it a bit bigger 600px x 120px
so i set up the initial header size to 120px.go and get your avia.js from enfold/js/ folder overwrite lines (if you got the latest enfold):
old 1553: if(st < el_height/2) new 1553: if(st < el_height/1.008)
1.008 = 120/119 (119px you have to scroll till you reach the endpoint height of 1px)
and
old 1565: newH = el_height/2; new 1565: newH = el_height/120;
initial height was set from me to 120px – the endheight should be 1px so it is 1/120
upload that edited avia.js file to the folder: enfold-child/js/ and add to your functions.php file of the child-theme (via dashboard – design – editor):
add_action( 'wp_enqueue_scripts', 'wp_change_aviajs', 100 ); function wp_change_aviajs() { wp_deregister_script( 'avia-default' ); wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true ); }
thats all !
so on that example above i set now to 300px start point 50px endpoint and try to influence the logo height with an animation to go to zero when setting up the new class header-scrolled-full or header-scrolled.
so see the result on example page above. : https://webers-testseite.de/elegant/
this to quick css
.header-scrolled .logo img { transform: scale(0.01); transform-origin: center center; transition: 0.5s linear }
- This reply was modified 7 years, 3 months ago by Guenni007.
by the way : if you like to change it in avia.js you can have your avia.js in child-theme js folder and do activate this :
add_action( 'wp_enqueue_scripts', 'wp_change_aviajs', 100 ); function wp_change_aviajs() { wp_deregister_script( 'avia-default' ); wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true ); }
well this is an old thread here i try to explain on :
https://kriesi.at/support/topic/reduce-sticky-header-size/#post-722364
and :
https://kriesi.at/support/topic/reduce-sticky-header-size/#post-724020it all is in avia.js file – Kriesi did here choose the absolute easiest value to have because on that case of half height is the endpoint of scrolling it is that special case where the scrolled distance to reach the endpoint of scrolling it exactly the half height of starting height..
For example if you start with a initial header height of 300 px and you want to reach the endheight of 150px
Distance to scroll for reaching the endheight is the sameThis code in avia.js is for the shrinkbehavior (since line 1536) :
var logo = $('#header_main .container .logo img, #header_main .container .logo a'), elements = $('#header_main .container:not(#header_main_alternate>.container), #header_main .main_menu ul:first-child > li > a:not(.avia_mega_div a, #header_main_alternate a), #header_main #menu-item-shop .cart_dropdown_link'), el_height = $(elements).filter(':first').height(), isMobile = $.avia_utilities.isMobile, scroll_top = $('#scroll-top-link'), transparent = header.is('.av_header_transparency'), shrinking = header.is('.av_header_shrinking'), topbar_height = header.find('#header_meta').outerHeight(), set_height = function() { var st = win.scrollTop(), newH = 0, st_real = st; if(unsticktop) st -= topbar_height; if(st < 0) st = 0; if(shrinking && !isMobile) { if(st < el_height/2) { newH = el_height - st; if(st <= 0){ newH = el_height; } av_change_class(header, 'remove', 'header-scrolled'); //header.removeClass('header-scrolled'); } else { newH = el_height/2; //header.addClass('header-scrolled'); av_change_class(header, 'add', 'header-scrolled'); }
so what if you like to start at 300px initial height and want to end at 1px header height.
The distance you have to scroll to reach one pixel is 299px ! Aha – so
the value you have to insert here to replace is :if(st < el_height/1.0033)
factor is 300/299
the value here on second place to substitute is :newH = el_height/300;
factor is 1/300see here f.e: https://webers-testseite.de/elegant/
but this makes no sence – because your navigation needs some height to be seen correct – next example to make it clear
it all goes arround the factors in line 1553 and line 1565you start with a header height of 300px and want to end at 50px
first value to be replaced is (because distance to scroll is 250px) 300/250 = 1.2 ( be carfull to not make a comma here it is a point for decimal count)
second value is 300/50 = 6 – so on lines:1553 it is :
if(st < el_height/1.2)
1565 it is:newH = el_height/6;
August 11, 2017 at 12:00 pm in reply to: How can I pply CSS to animated numbers on a specific page #837397btw with page it is as you say page-id-123
-
AuthorPosts