Forum Replies Created
-
AuthorPosts
-
And by the way you are thinking a bit complex.
Why do you choose capitalize and than make some span in it to go to lowercase, when you can choose for text-transform: none
That means the letters will show like you have entered them – big letters are big and vice-versa small are smallso that means one additional rule (maybe with !important ) to overwrite the uppercase instruction.
If you have your h1 allways in text-block elements ( the slider headings and heading from alb are not influenced) you can make your own rule via quick css
h1 { text-transform: none !important }
or you can use the advanced styling option ( Dashboard – Enfold – Advanced Styling) to set up the h1 rule with the possibility to set up here font-weight, letterspacing, color, font-family etc. pp.
The headings of sliders are not influenced because the rules are more specific than the simple h1 is. – means there are f.e:
.template-page .entry-content-wrapper h1
allthough the h1 rule is set to important the more specific rule above is not influenced by overriding through it.
-
This reply was modified 7 years, 10 months ago by
Guenni007.
show me a link to a h1 without inline css – than i try to help you.
btw: how do you set up inline css for heading alb element? or in a slider the headings ?
#cta .flex_column { text-align: center; }
_____________
by the way – enfold offers a lot of possiblities to hook.
on footer php there is thedo_action( 'ava_before_footer' );
so it could be a bit simpler to use this:for child-theme functions.php
function custom_before_footer_div() { ?> <div id="cta" class="container_wrap"> <div class="container"> 248.649.8604 </div> </div> <?php } add_action('ava_before_footer' , 'custom_before_footer_div');
for quick css
#cta.container_wrap { background: #f8f8f8 none repeat scroll 0 0; border-top-color: #dedede; } #cta .container { font-size: 36px; color: #555; padding: 20px; text-align: center; }
please give us a link to page where you used h1. I do not find after several klicks – all uppercase headings i found are h2 ones.
Sometimes those settings are made in demos via the enfold (or enfold-child) – advanced styling.
But to have a detailed look the direct link would be nicef.e. you got a rule ( i do not see where it comes from – because i guess you are using a minify tool) :
on that page: https://www.gardenstateloans.com/definitions/.template-page .entry-content-wrapper h1, .template-page .entry-content-wrapper h2 { text-transform: uppercase; }
change uppercase to none (maybe !important is necessary)
___________
btw. the dingdong sound would keep me away from watching the site.
August 9, 2017 at 1:39 pm in reply to: How can I pply CSS to animated numbers on a specific page #836372the thing is that portfolios do not have
.portfolio-id-xxx
as custom posts they got.postid-xxx
try to look to your source code – maybe i’m not right – but i think this is your faultso if your id is right try it with:
.postid-1654 span.avia-single-number { letter-spacing: 1px; font-family: “avant-garde-pro-bold”; font-size: 10px; color: #dfe0e1; }
August 8, 2017 at 3:04 pm in reply to: Adding a search function when using Enfold side menu as main menu #835870ok – i think this is the propper version of doing it:
this to funktions.php of your child-theme:
add_filter( 'wp_nav_menu_items', 'avia_append_search_nav', 10, 2 ); function avia_append_search_nav ( $items, $args ) { if ((is_object($args) && $args->theme_location == 'avia') || (is_string($args) && $args = "fallback_menu")) { global $avia_config; ob_start(); get_search_form(); $form = htmlspecialchars(ob_get_clean()) ; $items .= '<li id="menu-item-search" class="noMobile menu-item menu-item-search-dropdown menu-item-avia-special"> <a href="?s=" data-avia-search-tooltip="'.$form.'" '.av_icon_string('search').'><span class="avia_hidden_link_text">'.__('Search','avia_framework').'</span></a> </li>'; } return $items; }
if you like you can style it afterwards with quick css !
and !!! you have to unstick the “Sticky Sidebar menu” – because the ajax searchresult preview is sometimes longer – so you have to be able to scroll down
August 8, 2017 at 2:12 pm in reply to: Adding a search function when using Enfold side menu as main menu #835842i’ve been looking for a hook into the main-menu itself now – but that was my first view attempt.
August 8, 2017 at 2:11 pm in reply to: Adding a search function when using Enfold side menu as main menu #835839i just switched my layout to left main menu – and i found a hook we can use for that in helper-main-menu.php
this to child-theme functions.php
add_filter( 'ava_inside_main_menu', 'avia_append_search_nav_mod'); function avia_append_search_nav_mod() { global $avia_config; ob_start(); get_search_form(); $form = htmlspecialchars(ob_get_clean()) ; $items .= '<div id="menu-item-search"> <a href="?s=" data-avia-search-tooltip="'.$form.'" '.av_icon_string('search').'><span class="avia_hidden_link_text">'.__('Search','avia_framework').'</span></a> </div>'; echo $items; }
and that to quick css ( play a bit with the values):#top #menu-item-search { margin-left: 15%; width: 70%; z-index: 100; } .avia-search-tooltip.avia-tt { left: 110px !important; position: relative; top: 5px !important; } .avia-search-tooltip .avia-arrow-wrap { left: 20px !important; right: inherit }
looks this way – click to enlarge:
-
This reply was modified 7 years, 11 months ago by
Guenni007.
if that is your intention ( i can not see private content) – the honeypot strategy is allready implemented by Contact Form of Enfold for security reasons.
Line 440ff of contact.php in shortcodes:
//fake username field that is not visible. if the field has a value a spam bot tried to send the form $elements['avia_username'] = array('type'=>'decoy', 'label'=>'', 'check'=>'must_empty');
-
This reply was modified 7 years, 11 months ago by
Guenni007.
Well i guess you have installed your Enfold with a Demo.
And second guess you have a demo on which the Header is in front of a dark background (like the Enfold2017 Demo) – on scrolling the header gets visible with a semitransparent background color.Enfold got for that header behavior two logos to upload. A Logo for that case and the upload is on Enfold – (or Enfold-Child) – Header – Transparency Options. So it might be good to make two different logos for that case. One for dark backgrounds and one for normal Behavior.
Transparency Logo and Transparency Menu Color to set here
by the way – you have to copy paste your changes in quick css to each language – this does not work in an automatic way
first of all did you update to the latest Woocommerce – because they get back to a less secure way.
and you should only use one of the snippets – some comments on the internet says that :
…can you provide some filter code for reducing the password requirement to 2 when you get a chance? Presumably if you use the woocommerce_min_password_strength filter you should not be using remove_wc_password_meter as that defeats the purpose.
so try to let the password_meter as it is and only use the last snippet – maybe with the 1
have you played a bit with the strength settings? maybe 2 is too high than take 1
function reduce_woocommerce_min_strength_requirement( $strength ) { return 1; } add_filter( 'woocommerce_min_password_strength', 'reduce_woocommerce_min_strength_requirement' );
in der Seite hat der Surrounding Container ein negatives top-margin
.optIn1 { margin: -2% 1% 0 10%; }
it will be best to have your page with the desired aim.
hm – you can try it with:
Strength Settings
3 = Strong (default)
2 = Medium
1 = Weak
0 = Very Weak / Anythingfunction reduce_woocommerce_min_strength_requirement( $strength ) { return 2; } add_filter( 'woocommerce_min_password_strength', 'reduce_woocommerce_min_strength_requirement' );
but be careful – a strong password saves not time but nerves. Test a password with 8 digits here – and see how long it will take to get it!
https://www.passwortcheck.ch/passwortcheck/passwortcheck-
This reply was modified 7 years, 11 months ago by
Guenni007.
https://www.youtube.com/watch?v=8SHiL4u7m_Y
Mit dem Update zur WooCommerce Version 2.5.1 kann man jetzt auch wieder mit einem schwachen Passwort einkaufen, aber die Anzeige der Passwortstärke ist weiterhin vorhanden.
this to your child-theme functions.php:
function wc_remove_password_strength() { if ( wp_script_is( 'wc-password-strength-meter', 'enqueued' ) ) { wp_dequeue_script( 'wc-password-strength-meter' ); } } add_action( 'wp_print_scripts', 'wc_remove_password_strength', 100 );
or you can use a little plugin for that: https://de.wordpress.org/plugins/password-strength-for-woocommerce/
-
This reply was modified 7 years, 11 months ago by
Guenni007.
but i guess in this case the tip of victoria is quiet the best. It comes from the autop function of wordpress.
you can try it via functions.php of your child-theme:remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' );
or if you only like to avoid autop in textarea element: make your own shortcode of textblock.php
find line: guess on newest version it is line 201
$params['innerHtml'] = "<div class='avia_textblock avia_textblock_style' data-update_with='content'>".stripslashes(wpautop(trim(html_entity_decode( $params['content']) )))."</div>";
replace it by:
$params['innerHtml'] = "<div class='avia_textblock avia_textblock_style' data-update_with='content'>".stripslashes(trim(html_entity_decode( $params['content']) ))."</div>";
-
This reply was modified 7 years, 11 months ago by
Guenni007.
August 2, 2017 at 12:35 pm in reply to: Tab Section: Pagination & Load More Not Working Correctly #833391oh – i will try too. isn’t there a functions.php trick to overwrite that orig function and set up the new function in child-theme?
Edit: see here (primitive but just to see what has changed! : https://webers-testseite.de/ajax-portfolio/
it seems not to work as expected.
The pagination leeds to tab 1
The container gets bigger on case one – load more button ! OK-
This reply was modified 7 years, 11 months ago by
Guenni007.
if you are familiar with shortcode handling here on enfold and how to edit your own shortcode element – the id is one of the less complicated fields of input to create. The array is allways the same to implement and you only have to add some lines to
$atts
and$defaults
and on output.But the magazine does have its own id allready so you can use the given id (av-magazine-1, …) – the only thing why this could be a good idea is to use it as anchor – adressing should go with class aswell.
For example – i made me a custom hr.php because sometimes i use that whitespace hr to adress with an anchor. It gaves me the opportunity to shift the link a bit.
yes but this will end in a nonvalide code – duplicate IDs. so – if grid element can have a count (av-layout-grid-1. etc.) why not the after_submenu ?
or change in code from id to class after_submenuhey victoria – nice but did you recognize the date of that post ?
can be closedhm – i can not confirm this form my installations. i tested it a few minutes ago and all three E-Mail Adresses were delivered ( newest Enfold and WordPress). if all fails on your server , maybe you can use the smtp method by using the plugin: WP SMTP Mail
you can see a tutorial here: https://www.siteground.com/tutorials/wordpress/send-emails-with-smtp.htmby the way you are talking about widget – but you mean the alb element of video or sliders.
Here is a slider : https://webers-testseite.de/kokon/spielwiese/
after the first film (you can skip it there is the youtube video and as it is said befor with ?rel=0 after the url.
Works well and responsive. A fullwidth slider can’t be responsive in the real manner.but don’t take
https://youtu.be/5guMumPFBag
take this as link:http://www.youtube.com/watch?v=5guMumPFBag?rel=0
not the embed and the short form.
btw if you like to have more options – maybe as an image link goes to lightbox film you can use it with
&
http://www.youtube.com/watch?v=5guMumPFBag?rel=0&autoplay=1&iframe=true&showinfo=0
etc. pp
or on that page i used :
https://www.youtube-nocookie.com/embed/5guMumPFBag?rel=0&controls=0&showinfo=0&autoplay=1
look what happens to – click that image beneath the slider
so you can even hide the player controls !-
This reply was modified 7 years, 11 months ago by
Guenni007.
sorry – i used that page to demonstrate something on another thread.
Look again please
if i use prepend to input button – the inserted code goes between
<input> and </input>
function prepend_to_submit(){ ?> <script> (function($){ $('input.button[type="submit"]').prepend('<i class="fa fa-envelope-open-o"></i>'); })(jQuery); </script> <?php } add_action('wp_footer', 'prepend_to_submit');
it is in the source code but not visible on some reasons.
right solution by entering in the enfold dialog Submit input field : Submit
left side fontawesome included but not visible
https://webers-testseite.de/kokon/elements/contact-form/-
This reply was modified 7 years, 11 months ago by
Guenni007.
the input button destroys every method i can imagine !
For some reasons i tried it with embeding fontawesome (functions.php of child-theme) :
add_action( 'wp_enqueue_scripts', 'enqueue_awesome' ); function enqueue_awesome() { wp_enqueue_style( 'prefix-font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', array(), '4.7.0' ); }
and than add the concerning class to the submit button:
function add_class_to_submit() { ?> <script type="text/javascript"> jQuery(document).ready(function() { jQuery('input.button').addClass('fa fa-envelope-open-o'); }); </script> <?php } add_action('wp_footer', 'add_class_to_submit', 20);
this works but font isn’t visible – the pseudo-class before and after did not work
The image above is two things in one.
so to be clear: if you try only red arrows – that will work with that little css in quick css:
input.button[type="submit"] { font-family: entypo-fontello; }
but the thing is – that a handful of people will know how to copy/paste those glyphs from source code.
i make a button with icon elsewhere and look to the source code. Copy paste that glyph : f.e
and insert it in the submit field as: Submit
so this method only will work if we can offer f.e a table of fontello-icons with there code and with that glyphs.Or the other method for noobs – just edit the
no that is not what i want – i told here https://kriesi.at/support/topic/adding-an-icon-to-the-form-submit-button/#post-828508 that this will be the fastest way to get an entypo-fontello icon to the submit button – you only have to put in that field the copied sign plus Submit text and set up css for font-family than.
red arrowsbut i want to edit the shortcode to have the oportunity to have icons for that button looks this way newfields with blue arrows
but inserting in that input field the
"{$display_char}"." ".$button
ends up ( see preview in image above)
that comes i think from a function in font-manager.class.php
So if i knew how to get via php only the transformed sign without that other stuff – i can insert than that glyph to value of input field.
And share afterwards the edited contact.phphow do i get that little sign in source code :
data-av_icon=''
there must be a conversion from array icon and icon-select to that sign.
i think of making an edited contact.php shortcode with icon select but that display_char generates me a whole bunch of html.
-
This reply was modified 7 years, 10 months ago by
-
AuthorPosts