Forum Replies Created
-
AuthorPosts
-
With the nickname, it’s not too hard to find your site. And when I see container that small (1010px), I know it’s not intentional. So there must be a rule in your ruleset that is not set correctly.
That css rule is not closed by a curly bracket.
Insert after the semicolon a curly bracket!
.gform_wrapper.gravity-theme .gf_progressbar_percentage.percentbar_orange { background-color:var(--enfold-main-color-primary);
don’t know if an @import rule works well over quick css – but is unusual.
if your question does not concern your own website – then I am sorry, but it should be changed anyway.
PS: csslint.net shows a parsing error at the pseudo-class: is
but from my point of view that is correct.dear mods – can you please shift that post to the closed one and open again – i think i’m on a better way to do that.
sadly the topic is closed: . https://kriesi.at/support/topic/search-function-with-link-list/
what i got so far:
https://enfold.webers-webdesign.de/pagesthis is only for pages ( if you like to have that for posts – just change the post-type )
i managed it by a custom shortcode – then place this as :[glossary]
on your pagefunction az_index($post_id) { $AZposts = get_posts(array( 'numberposts' => -1, 'post_type' => 'page', 'orderby' => 'title', 'order' => 'ASC', // 'category' => $cat )); $current = ""; $nav = ""; $postlist = ""; foreach($AZposts as $AZpost) { $postLink = get_permalink( $AZpost->ID ); $firstletter = strtoupper(substr($AZpost->post_title,0,1)); if($firstletter != $current) { $nav .= "<span class='firstletters'><a href='#$firstletter'> $firstletter </a></span> "; $postlist .= "<h3 class='firstletter' id='$firstletter'> $firstletter </h3>\n"; $current = $firstletter; } $postlist .= "<span><a class='postlink' href='".$postLink ."'>" . $AZpost->post_title. "</a></span><br>\n"; } print $nav . "<br><br>" . $postlist; } add_shortcode( 'glossary', 'az_index' );
and :
.firstletters { padding: 0 10px ; background: #900; margin-right: 5px; display: inline-block; } .firstletters a { color: #FFF; text-align: center !important; }
i tried to have unordered list after the h3 headings – but i couldn’t find a way to do that ( loop is hard to find the place to insert that tags ) – maybe a mod got a good idea
you can do that manually – via dashboard – menu ( place your logo as img tag inside a custom-link menu-item. – img tag goes to label input field )
this starts with logo top – navigation below ( and then set the logo container to display none ( in desktop mode)or have a look at: https://pureinstall.webers-testseite.de/logo-centered/
this starts with logo left – menu right ( then the hamburger position of logo will be adjusted allready)September 30, 2024 at 11:41 am in reply to: Possibility to change the icon alignment to the right at the Promo Box Button #1468100btw – dear devs : Is it intended that the label will be affected when selecting “Show on hover only”?
On default button it is the icon!Anyway – if you do not use that option :
#top .av_promobox .avia-button-wrap.avia-button-right .avia-button { display: flex !important; } #top .av_promobox .avia-button-wrap.avia-button-right .avia_button_icon { order: 2; margin-left: 15px }
if you do not want to affect all promo box elements with button – use a custom class on that element f.e.: right-icon
#top .av_promobox .avia-button-wrap.right-icon .avia-button { display: flex !important; } #top .av_promobox .avia-button-wrap.right-icon .avia_button_icon { order: 2; margin-left: 15px }
although it waits until the DOM is loaded – maybe a timing delay is working?
function ava_script_fees_click() { ?> <script type="text/javascript"> (function ($) { $(document).ready(function () { function triggerClick(hash, container) { if (window.location.hash === hash) { setTimeout(function() { $(container).find('.av-fold-button-container').trigger('click'); }, 300); } } triggerClick("#lesson-fees", "#av-fold-unfold-lesson-fees"); triggerClick("#preschool-fees", "#av-fold-unfold-preschool-fees"); triggerClick("#music-together-fees", "#av-fold-unfold-music-together-fees"); }); })(jQuery); </script> <?php } add_action('wp_footer', 'ava_script_fees_click', 9999);
September 30, 2024 at 11:20 am in reply to: Sidebar Logo and Main Menu Sticky option not working anymore #1468095Or – if you are happy with your current solution – just wait for the next release – I think they will also extend the sticky option for the right header.
September 30, 2024 at 8:40 am in reply to: Sidebar Logo and Main Menu Sticky option not working anymore #1468086Yes – if my fellow participant is happy with it, I’m happy with it too – but manu wrote:
Of course it would be nicer to have a function to make it scrollable as in the Left Sidebar Menu without the sidebar but my knowledge of php and js is very poor
September 30, 2024 at 1:09 am in reply to: How to find menu-item identifier for functions.php purposes? #1468071nearly most of the main browsers got developer tools. On Safari you had to activate it via the settings – advanced.
Chrome and Firefox do have that on default activated.
now navigate with your mouse over an element to inspect and via Context-Menu ( often the rightclick on mouse) you can choose “inspect” or similar to it – on german it is called “untersuchen”
If you start it the first time – it will show you now Infos you need in a “sub-window” – i prefer to have a separate Window – there are some signs to separate it from the main window:
(click to enlarge)
because my mouse was over the menu-item text – this is selected. You find your menu-item if you move up in the DOM.
PS on the right side you can see the styles concerning to that selected Element.maybe this could help: https://kriesi.at/documentation/enfold/import-demos/#how-to-manually-import-a-theme-demo
_____
or download the demo files from the github: https://github.com/KriesiMedia/enfold-library/tree/master/demosi do not see your selectors at all on your page
f.e. i see no class: av-fold-unfold-tuition-feesi see only ID’s concerning to your buttons:
#av-fold-unfold-lesson-fees
#av-fold-unfold-preschool-fees
#av-fold-unfold-music-together-feesthere are changes in your setting ( names ) and these selectors are ID’s
so may be try this instead:
function ava_script_fees_click() { ?> <script type="text/javascript"> (function ($) { $(document).ready(function () { function triggerClick(hash, container) { if (window.location.hash === hash) { $(container).find('.av-fold-button-container').trigger('click'); } } triggerClick("#lesson-fees", "#av-fold-unfold-lesson-fees"); triggerClick("#preschool-fees", "#av-fold-unfold-preschool-fees"); triggerClick("#music-together-fees", "#av-fold-unfold-music-together-fees"); }); })(jQuery); </script> <?php } add_action('wp_footer', 'ava_script_fees_click', 9999);
September 28, 2024 at 11:38 pm in reply to: Sidebar Logo and Main Menu Sticky option not working anymore #1468034by the way –
how to have a child-theme avia_layout.phpvia filter: avf_theme_options_pages
this child-theme solution works as expected with the edited files from the bottom:
require_once( get_stylesheet_directory() . '/functions-enfold.php' ); function my_avia_layout_mod($avia_pages){ $avia_pages['layout']['include'] = get_stylesheet_directory().'/includes/avia_layout.php'; return $avia_pages; } add_filter( 'avf_theme_options_pages', 'my_avia_layout_mod', 10, 1 );
functions-enfold.php: https://pastebin.com/dl/UTGvNGKB (see lines 1556 – 1561)
– put into root directory of your child-theme
avia_layout.php: https://pastebin.com/dl/RnmpK2Mu
– put into includes folder (subfolder of child-theme)September 28, 2024 at 2:22 pm in reply to: Sidebar Logo and Main Menu Sticky option not working anymore #1468005Test is working without changing avia-snippet-sidebarmenu.js
but: What I noticed on this occasion is that the advanced layerslider are not styled correctly for the header sidebar. What was set for Header Top Centered in the layerslider is suddenly far from being centered. This is of course related to the fixation of the header. Fixed elements are, so to speak, outside the DOM.
Edit:
I now know what the problem was: the layer slider has a switch in the advanced project settings. There is a setting called “Fit to Screen Width” where it says : “If enabled, the slider will always have the same width as the viewport, even if a theme uses a boxed layout, unless you choose the “Fit to parent height” full size mode.”September 28, 2024 at 1:46 pm in reply to: Sidebar Logo and Main Menu Sticky option not working anymore #1468004PS: in the newest Enfold 6.04 there is inside avia-snippet-sidebarmenu.js no difference between left and right sidebar.
Always only as selector for both .html_header_sidebar. So those files could be untouched !only that one entry in enfold_functions.php had to be deleted (1556ff):
if( strpos($header['header_position'] , 'left') === false ){ $header['sidebarmenu_sticky'] = 'never_sticky'; }
and those entries inside avia_layout.php had to be adjusted ( f.e. for the required lines – see line 210 on my edited file )
avia_layout.php on pastebin: https://pastebin.com/RnmpK2MuSeptember 28, 2024 at 12:32 pm in reply to: Sidebar Logo and Main Menu Sticky option not working anymore #1468002sadly you do not go to your topics once posted : https://kriesi.at/support/topic/right-sidebar-menu-sticky/
I find the method of simply using the Header on Left Sidebar variant and simply moving it to the right, while retaining the properties set there, is also easy to implement.
However, if it is now included in the next version – it is of course the better option.
a different much easier way is using clip-path on those slider wrappers by an inline svg file ( path has to be in relative values – convert for example here: link )
but disadvantage: you have to synchronize the background-color of that section to the next section – otherwise you got a gap (see green area on example page at the bottom)<svg class="bottom-curve"> <clipPath id="bottom-curve" clipPathUnits="objectBoundingBox"><path d="M1,0.9 s-0.25,0.1,-0.5,0.1 S0,0.9,0,0.9 V0 h1 v0.9"></path></clipPath> </svg> <style> .bottom-curve > div { -webkit-clip-path: url(#bottom-curve); clip-path: url(#bottom-curve); } </style>
you see how this works – give then the custom-class: bottom-curve to the slider element or to the color-section.
Can I have a look at this page? ( if you could not post the link here – send me an e-mail)
because I think it’s easier to achieve this in another way.f.e. this way: https://webers-testseite.de/divider-on-sliders/
at the moment i try to use the given curve divider – that does not fit because it is a konvex Curve … so be a bit patient.
we can use the konvex Curve of Enfold – but we use than that negative option (invert) – in this way we had to differ on how to transform the divider svg.
so snippet gets an if / else clause now.-
This reply was modified 10 months, 3 weeks ago by
Guenni007.
September 27, 2024 at 11:18 am in reply to: Video Player black screen and Full Screen possible? #1467929My recommendation is not to host such big video files yourself. As Ismael mentioned – use a video hoster.
If this happens to you a lot, the smallest Vimeo account is worth it; it doesn’t have any ads or other videos that pop up when you pause or stop watching.September 27, 2024 at 11:08 am in reply to: Make active page bold and different colour in menu #1467928This is only for top-level menu-items (if you like to have a different selector – tell us. )
.header_color .main_menu ul:first-child > li.current-menu-item .avia-menu-text { font-weight: 700; }
This is a video , where the frames are ruled by scrolling.
See here a codepen:
https://codepen.io/Maltsbier/pen/dyYmGGq
https://codepen.io/marduklien/pen/MdvdEGmost of them use the ScrollMagic script.
Or GSAPOr use Scrollsequence
September 26, 2024 at 11:09 pm in reply to: Video Player black screen and Full Screen possible? #1467899sorry again
September 26, 2024 at 10:32 pm in reply to: Video Player black screen and Full Screen possible? #1467898Sorry – wrong Topic – my fault.
September 26, 2024 at 1:25 pm in reply to: Contact form 7 – How to mark * in red colour for required fields #1467878ok – if this is ok for you – see: https://webers-testseite.de/jak-contact/
( due to maintainance mode of my hoster – page might be not seen today )snippet for child-theme functions.php and the contakt form 7 Form code is on that page.
snippet:
(The script is necessary because CF7 does not provide a way to select whether an input field is in focus or filled.)function class_on_active_form_fields(){ ?> <script> window.addEventListener("DOMContentLoaded", function () { (function($) { $('.wpcf7-form-control').each(function() { $(this).on('focus', function() { $(this).parent().addClass('active'); }); $(this).on('blur', function() { if ($(this).val().length == 0) { $(this).parent().removeClass('active'); } }); }); })(jQuery); }); </script> <?php } add_action('wp_footer', 'class_on_active_form_fields');
the css ( with your wrapper class ):
.form-wrapper { position : relative !important; } .form-wrapper .placeholder { position: absolute; top: 5px; left: 5px; opacity: 0.5; transition: opacity 1s ease; pointer-events: none; } .form-wrapper .asterisk { color: red !important; } .wpcf7-form-control-wrap.active + .placeholder { opacity: 0 !important; }
the form in this setup:
<div class="form-wrapper">[text* first-name placeholder ""]<span class="placeholder">First name <span class="asterisk">*</span></span></div> <div class="form-wrapper">[text* last-name placeholder ""]<span class="placeholder">Last name <span class="asterisk">*</span></span></div> <div class="form-wrapper">[email* your-email placeholder " "]<span class="placeholder">E-Mail <span class="asterisk">*</span></span></div> <div class="form-wrapper">[textarea* textarea-716 placeholder " "]<span class="placeholder">Placeholder <span class="asterisk">*</span></span></div> <div class="form-wrapper">[submit "Send"]</div>
but remember: https://kriesi.at/support/topic/adding-captions-to-the-lightboxes-in-a-masonry/#post-1467815
I think it has to do with the elements not loading until you have scrolled through the masonry position due to the delayed animation. On my site, sometimes this works – sometimes it doesn’t.
Using the ‘Load More’ button even cancels this out completely after pressing Load More.
I would have to look up what has changed since then (almost 5 years ago). Unfortunately, this test page of mine is so bloated with tests for other participants in this forum that some code snippets may be interfering with others. The functions.php of the child themes is already 3750 lines long.
September 25, 2024 at 5:20 pm in reply to: Contact form 7 – How to mark * in red colour for required fields #1467821as placeholder text ( inside the input field ) this is hard to get.
by the way – that might be an older post of mine.
since jQuery 3$(window).load(function(){
is deprecated
now you had to use:
$(window).on('load', function(){
i remember there is a difference on the width in between 768 and 990 px of the header – then you had to adjust this here too ( 300px versus 27%)
PS: i changed the code above to fit with this knowledge.
-
This reply was modified 10 months, 4 weeks ago by
Guenni007.
or – maybe a simpler idea – we use the left header sidebar ! – and just handle the #wrap_all as a flex container – and define the order in this way that the header goes to the right side
@media only screen and (min-width: 768px) { #wrap_all { display: flex !important; flex-flow: row nowrap; } #wrap_all #header { order: 2; flex: 0 1 27%; right: 0; left: auto; } #wrap_all #main { order: 1; flex: 0 1 73%; margin-left: 0 !important; border-left: none !important; } .responsive #top .header_bg { box-shadow: -5px 0px 5px -5px #666; } /*** because submenu is defined to a width of 208px ***/ #top #avia-menu > li.dropdown_ul_available > ul.sub-menu { left: -207px } /*** have a bit more space from main menu-item to the fly-out submenu ***/ .html_header_sidebar #header .av-main-nav>li { margin-left: 5px !important; padding-left: 13px; } } @media only screen and (min-width: 990px) { #wrap_all #header { flex: 0 1 300px; } #wrap_all #main { flex: 0 1 calc(100% - 300px); } }
see: https://enfold.webers-webdesign.de/
( the scroll away after some time does not belong to that settings here. – this is part of the inital Headersetting )this is not styled to the end – becaue i want to go back to the original setting of header on top.
above all, you now have to extend the subnavigation to the left – but that shouldn’t be a problem using css. -
This reply was modified 10 months, 3 weeks ago by
-
AuthorPosts