Forum Replies Created
-
AuthorPosts
-
so you see it is the right position –
so now make an own widget ( without defining / registering ) just on widget area
name it you like f.e: under-titlemaybe without divs
add_action('ava_after_main_title', function() { if ( is_page() || is_single() || is_singular( 'portfolio' ) ) { echo do_shortcode("[av_sidebar widget_area='under-title']"); } });
put in there the things you likecan you please insert the code to functions.php of your child-theme:
add_action('ava_after_main_title', function() { if ( is_page() || is_single() || is_singular( 'portfolio' ) ) { echo '<div class="container">'; echo do_shortcode("[av_sidebar widget_area='Sidebar Blog']"); echo '</div>'; } });
and than insert to sidebar blog everything you like to view on that area.
just to see where it is placedi must see a live link.
and this is a bit different to the screenshot above. On the first one it is directly under the bread-crumps (title bar)
The woocommerce should go in that field ?
Determine if woocommerce got his own shortcode for that.Now you say it is for every page – than it will be better to create an own widget area with position determined.
This do_shortcode gives you the oportunity to place it directly above all content – the first position in main.to decide only from a screenshot nearly impossible.
click to enlarge – you see this was my test – just under breadcrump before the other main content.
-
This reply was modified 7 years, 3 months ago by
Guenni007.
you see on my test page above that it is dimmed now to 0.8 and on hovering goes to opacity 1 – but you reach the same result the other way round:
#avia-menu li { opacity: 0.5 !important } #avia-menu li:hover { opacity: 1 !important }
the not selector is more used in templates and themes as you know ( go and make a search for “:not” in enfold folder ) – but here with a highly specific state of “hover” you can do it the common way.
is it allways ?
could you take the blog-widget for it – because you don’t use it elsewhere?
Then you can take that for itadd this to your functions.php of your child-theme:
add_action('ava_after_main_title', function() { if ( is_single() || is_singular( 'portfolio' ) ) { echo '<div class="container">'; echo do_shortcode("[av_sidebar widget_area='Sidebar Blog']"); echo '</div>'; } });
you see the if clause – you can do all the things an if-clause can do as is_page ; is_category; is_singular(‘event’) etc
if you don’t like to use blog widget for it
create an own widget just by adding one in widget area maybe call it after-titleadd_action('ava_after_main_title', function() { if ( is_single() || is_singular( 'portfolio' ) ) { echo '<div class="container">'; echo do_shortcode("[av_sidebar widget_area='after-title']"); echo '</div>'; } });
you only have to style it than via quick css
the width is still set via the container to your enfold width-
This reply was modified 7 years, 3 months ago by
Guenni007.
no further reaction here – the site is still not changed
I guess he needed – because status quo is still a big logo – not two of them.
haha – now the not selector:
it works but makes no sense – set the normal state and change the hovered one !.av-main-nav li:not(:hover) { opacity: 0.5 !important } .av-main-nav li:hover { opacity: 1 !important }
you can see it here working with a skew https://webers-testseite.de/
-
This reply was modified 7 years, 3 months ago by
Guenni007.
if you take a look to the svg with text : you can open a svg with a good text-editor
on windows: notepad ++
on mac : sublime textyou will see this :
<?xml version="1.0" encoding="utf-8"?> <svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 415 500.4" style="enable-background:new 0 0 415 500.4;" xml:space="preserve"> <style type="text/css"> .st0{fill:#A5CD39;} .st1{fill:#FAA21D;} .st2{fill:#4D4D4D;} .st3{fill:#0AB8BB;} .st4{fill:none;} .st5{font-family:'Kaufmann';} .st6{font-size:88px;} </style> <g> <path class="st0" d="M18.8,199.4c0,74.3,43.4,138.5,106.3,168.5L30.7,133.6C23,154.1,18.8,176.2,18.8,199.4z"/> <path class="st1" d="M97.4,109.4c0,0-13,1-22.8,1.6L156,321.1l42-107.9L157,111c-8.8-0.5-21.3-1.6-21.3-1.6c-8.8-0.5-7.8-14,1-13.5 c0,0,31.1,2.1,47.2,2.1c17.1,0,47.7-2.1,47.7-2.1c8.8-0.5,9.9,12.5,1,13.5c0,0-13,1-22.8,1.6l81.5,210.2l34.8-88.7 c8.3-21.3,12.5-38.9,12.5-52.9c0-20.2-7.3-34.2-13.5-45.1c-8.3-13.5-16.1-24.9-16.1-38.4c0-15,11.4-29.1,27.5-29.1 c0.1,0,0.1,0,0.2,0C303,33.4,256.6,12.7,205.4,12.7C139.7,12.7,82,46.7,48.7,98c17.2,0,47.6-2.1,47.6-2.1 C105.1,95.4,106.2,108.4,97.4,109.4z"/> <path class="st2" d="M206.3,232.9l-54.5,139.6c-0.8,1.9-1.9,3.4-3.1,4.7c17.9,5.7,36.9,8.8,56.7,8.8c20.7,0,40.7-3.4,59.3-9.7 c-0.9-1.1-1.7-2.4-2.3-3.8L206.3,232.9z"/> <path class="st3" d="M392,199.4c0-29.8-7-58-19.5-83c0.2,3.1,0.4,6.3,0.4,9.6c0,16.6-3.1,35.3-12.5,58.6l-70.5,181.1 C350.5,334.9,392,272,392,199.4z"/> </g> <rect x="50.2" y="400.1" class="st4" width="312.8" height="93.9"/> <text transform="matrix(1 0 0 1 50.1779 463.2396)" class="st5 st6">Logo Text</text> </svg>
on that style element you see the colors and the font i used – if Kaufmann is not activated on the wordpress installation every browser has its own fallback for fonts
Text is per definition a path so more like svg than to img (png or jpg)
so i guess that you have done something wrong on creating that svg.just do following: drag and drop your svg into the browser itself – and have a look what the browser do.
if you see all of your logo (including the text in it) we have to look what is theTry to do this : if the text changes to a different font – or is not uploadable – go to your Graphic Editor and transform the text to path !
1) this is with text as font – because the browser has not the font it changes to whatever he likes:
https://webers-testseite.de/wp-content/uploads/Logo_with_Text.svg2) this is svg with text converted to path : https://webers-testseite.de/wp-content/uploads/Logo_with_PathText.svg
you see – that because of path the font isn’t one at all – and browser must do what you like to see
-
This reply was modified 7 years, 3 months ago by
Guenni007.
Well but all has to do with the change to a child-theme. It has nothing to do with shrink-fix code
November 4, 2017 at 8:02 pm in reply to: Custom size logo gets cut off with shrinking header #872587but what did you expect if a minimum-height is set ?
If you like to have the logo bigger – just change header size in enfold options dialog ( custom pixel values)i don’t see your site because i’m participant as you – but if your logo is much bigger and you would like to shrink to this min-height i would recommend you this post: https://kriesi.at/support/topic/shrinking-of-header-amount-an-info/
f.e. starting at a height of 300px ending at a height of 210px
November 4, 2017 at 7:50 pm in reply to: Change position of heading in top color section with background image #872586did you setup the custom css class for that color-section : in my code above i took: topheading
i suppose that a lot of participants only try the code without reading the thread completly – am i wrong ?
1) what do you think is the advantage of an extra text under it (without implementing it on your svg)?
– do you like to hide it after scrolling ?2) i would not do it via widget area – enfold got this nice snippet for functions.php of child-theme :
add_filter('avf_logo_subtext', 'kriesi_logo_addition'); function kriesi_logo_addition($sub) { $sub .= "<span class='logo-title'>My Text</span>"; return $sub; }
by the way the text is there – but may be not visible – it has to be styled/positioned by css.
And because you like to have it under your logo it will be good to have a free space theredo you have a shrinking header ? than a text under logo could be a bit sophisticated css
___________________and: on all of my installations the svg-support plugin works perfect – espacially if i want to replace the img src through the svg-code itself
i’m participant as you – but if there is no secret about your page link ( not the admin login) you can post it here .
if so – you don’t want to make it public ( the frontend ) you have to wait til mods are here.but did you try the alternative code and see what happend ?
By the way – if you start with a demo installation sometimes there is a logo set on Enfold – Header – Transparency options.
This logo is visible if you have set on page/post edit the transparency or transparent & glassy option. On these pages the alternative logo is visible. – And if there is still the demo logo in – it will be shown.i do not see this “Thanks in advance” Do you mean the success message after sending ?
it is an extra input field on contact form dialog – there you can enter your own phrase.visibility : hidden only hides the logo – but the dimensions stay with it . It is in the position and it is in height and witdth there !
display : none is the way to get rid of it!
but think of responsive case too:.responsive .logo { display: none }
if you want to get rid of whole header i have to see life site link – because i don’t know what kind of header you are choosing on enfold options.
Sometimes the nav is in header_main_alternate etc.-
This reply was modified 7 years, 3 months ago by
Guenni007.
is there a live link we can see. ?
by the way here is a nice generator for all icons – favicon, apple-touch icon, etc:
Edit is it the link above than it is no page-id than it is your postid-4665
both goes to function.php of child-theme
1) Logo:
add_filter('avf_logo','av_change_logo_url'); function av_change_logo_url($url) { if( is_single('4665') ) { $url = "https://url_of_your_domain/wp-content/uploads/logo2.png"; } return $url; }
2) Favicon:
i don’t think that it will overwrite the favicon set on enfold dialog – so you have to put it in this way and let the field on enfold dialog empty
if you only want to have favicon use:add_action('wp_head', 'ava_add_iconnns'); function ava_add_iconnns() { if( is_single(4665) ) { ?> <link rel="shortcut icon" type="image/x-icon" href="https://url_of_your_domain/wp-content/uploads/favicon1.ico"> <?php } if( !is_single(4665) ) { ?> <link rel="shortcut icon" type="image/x-icon" href="https://url_of_your_domain/wp-content/uploads/favicon2.ico"> <?php } }
-
This reply was modified 7 years, 3 months ago by
Guenni007.
well on 4.2 the burger-menu li’s got their own ids – (on 4.12 this was missing) so you can select them via ID.
and on 2nd point – i tested it on my 4.2 installation – it works on all cases. ( on click and on hover – with or without cloneing)yes – i read over it too. – but i guess thats it
yes – nice !
if you can use this class for the not scrolling element ( sticky_element ) now again and again till you have to correct the offset because of different header size. As a class you can use it even on the same page multiple times.On this page with “Assistanat – Communication …” you don’t have to put in the contact form in the same 2/3 row. You can do it as before – but you have to do it in another color-section im you want it in a 1/1 Container.
one thing – your timeline is a bit shifted from the position – don’t know if you have done it by changing icon width
if you like to have it again on the middle of the icons:.avia-icon-list .iconlist-timeline { left: 19px; }
By – and
De rien-
This reply was modified 7 years, 3 months ago by
Guenni007.
November 3, 2017 at 11:52 am in reply to: Add WPML language switcher to Fullwidth Sub Menu element #872101if this full-width submenu is an existing one – it could be very simple.
Goto your WPML Options : Language –
there is a button : “add a new language switcher to menu” press that button – a popup window with settings appear. Choose the Menu name and style it !November 3, 2017 at 11:08 am in reply to: How to move social icons to the right in header area? #872088what do you mean by right side of the page
you mean something like this (here on the left) https://fusesocialfloating.000webhostapp.com/fuse-social-floating/there are alot of plugins doing this
November 3, 2017 at 10:33 am in reply to: playing with new demos – visual artist demo on ipad #872079it works as mentioned above – but first i tend to addClass and give to quick css the scroll position – but this way does not work
i think the inline rules overwrites every other rule setso i decided as above to start on background scroll on alb element – set the fixed positon by quick css – and just remove that custom class set on quick css – this way works as wanted.
Everything ok now – on ipad the background-attachment scrolls with the container.
Before – as mentioned there was nothing but the background-color seen.give it to the devolpers a hint to see their demo: https://kriesi.at/themes/enfold-visual-artist/ on iphone/ipad
this is the page where enfold options are shown. Have you more input of the js errors ?
have you managed some entries in your functions.php of child-theme ?November 3, 2017 at 9:14 am in reply to: Change position of heading in top color section with background image #872032i think the best will be if you gave to that color-section a custom class to avoid that all your headings will be placed on top – f.e.: topheading
than insert this in quick css:.avia-section.av-minimum-height.topheading .container .content { vertical-align: top ; }
see here: https://webers-testseite.de/colorsection-100percent-with-heading/
the distance could be styled by the padding setup in color-sectionActually everything is already said !
A) erase the codes and custom-classes set by the other method
1) download the script from here: Download
2) Upload that script to your child-theme / js – Folder
3) Embed that javascript file to enfold – put in functions.php of your Child-Theme:function include_sticky_js_file() { wp_enqueue_script( 'stickyelement', get_stylesheet_directory_uri().'/js/jquery.stickyelement.min.js', array('jquery', 'avia-default'), 2, true ); } add_action( 'wp_enqueue_scripts', 'include_sticky_js_file', 100 );
4) Give the custom-Class to your element you want to fix : sticky_element
5). This comes to your functions.php of your Child-Theme:add_action('wp_footer', 'include_sticky_values'); function include_sticky_values(){ ?> <script type="text/javascript"> (function($) { $(window).on('load resize', function () { if ($(window).width() > 768) { /*** here comes the code to sticky element***/ $('.sticky_element').sticky('.entry-content-wrapper', { useTransition: false, animate: false, offset: 85 }); /*** here ends the code to sticky element***/ } }).trigger('resize'); })(jQuery); </script> <?php }
( in nearly all cases the direct parent element will be : entry-content-wrapper )
6) if you have to adjust the offset because on different pages it might be other settings this part you can add inbetween the commented lines with other custom class of sticky element ( perhaps : sticky_element2, etc.)
$('.sticky_element2').sticky('.entry-content-wrapper', { useTransition: false, animate: false, offset: 50 });
7) add this to your quick css to have not the calculated top distance on responsive case
you might adjust this – depending on your settings:
( sticky-scroll is the class added by that script to your sticky elements)@media only screen and (max-width: 767px){ .sticky-scroll {top: 0!important} }
8) Think of – that there is no other element in the same color-section under the sticky element – you have to open a new color-section if there are other content under it !
November 2, 2017 at 10:38 pm in reply to: playing with new demos – visual artist demo on ipad #871865my workaround:
i set up on those color-section the background-attachment to : scroll
but give a custom-class to the color-section: bgfixedthat class has only the meaning of setting :
.bgfixed { background-attachment: fixed !important; }
on functions.php of my child-theme i detect if the device is an ipad/iphone/ipod :lol
and remove that class only for this devices !add_action('wp_footer', 'remove_class_if_ipad'); function remove_class_if_ipad(){ ?> <script type="text/javascript"> (function($) { $(document).ready(function($){ var deviceAgent = navigator.userAgent.toLowerCase(); if (deviceAgent.match(/(iphone|ipod|ipad)/)) { $('.bgfixed').removeClass('bgfixed'); } }); })(jQuery); </script> <?php }
this works with scrolling background.
Info: i don’t know why the other way starting with fixed does not work and addClass and set the background-attachment : scroll !important. ??? -
This reply was modified 7 years, 3 months ago by
-
AuthorPosts