Forum Replies Created
-
AuthorPosts
-
August 1, 2018 at 12:20 pm in reply to: colour section doesn't resize as rest of page in responsive mode #992358
if you let the background-image determine the height of the color-section (yes this is possible) you will have troubles on small screens to have all content in that color-section. ( that is the reason why the content normaly determines the section height)
see here – i gave to the color section a custom-class: responsive-container
and did this to quick css:
.responsive-container { background-size: contain; padding-top: 56.25vw; width: 100vw; height: 56.25vw !important; } .responsive #top #wrap_all .responsive-container .container { margin-top: -56.25vw }
see result here – and see for smaller screens what i mean with troubles: https://webers-testseite.de/responsive-colorsection/
so better is to have background-images which could be cropped or to have interesting gradients
August 1, 2018 at 11:25 am in reply to: Fullwidth Easy Slider: takes too long to load – images are too hgh #992336PS : dein Home link ist noch der der Test-Installation !!! den musst du noch ändern.
August 1, 2018 at 11:02 am in reply to: Fullwidth Easy Slider: takes too long to load – images are too hgh #992329ja und nimm die Original Bilder: Slideshow Image and Video Size : no scaling
wenn du möchtest, dass die Bilder oben unten nicht über den Screen gehen. kann man das erzwingen:
gib der full-width slideshow eine Custom Class. ich habe das mal mit zweien deiner Bilder gemacht, und der Slideshow die klasse: vollehoehe
gegeben.dann habe ich ins quick css folgendes eingegeben:
.vollehoehe img { max-height: calc(100vh - 170px); }
die minus 170px sind dem Header-bereich geschuldet. Da kannst du noch ein wenig dran drehen.
https://webers-testseite.de/slide-show/wenn du es gesehen hast – nehme ich die Bilder wieder raus.
Wenn du es nur auf der startseite hast kannst du es auch so selectieren:
.home .avia-slideshow img { max-height: calc(100vh - 170px); }
August 1, 2018 at 10:41 am in reply to: Fullwidth Easy Slider: takes too long to load – images are too hgh #992315can you make the link public? i can not believe that a 200kb image loads that way.
it it is your photopage – use please original dimensions and not the 1500x1000px croped images.One Problem is that the original images are often better compressed than the cropped images of enfold. Because they do not compress those files.
so from your image: 0411_D1A_5462.jpg (205kb) on original upload it becomes a cropped image 0411_D1A_5462-1500×1000.jpg with 884kb.So use for those big images alway your optimized originals.
Or use those mentioned tools of ismael.a 3:2 aspect ration could hardly forced to show on a 16:9 Screen. If you can live with black borders you can choose not to cover but to contain the image – means the full image is shown centered and it depends on image orientation and dimension where those borders are.
sure :lol
2a) and to have the images not full-width you can do that for smaller screens:
@media only screen and (max-width: 767px) { .av_one_fourth img { width: 50vw; float: left; } }
PPS: what kind of plugin is it on your image gallery? – very nice !
i can simulate this by checking the following code in the javascript console in Firefox
(function($){ $('p:empty').remove(); })(jQuery);
so this would probably solve the issue in functions.php of your child theme:
because i don’t know how this comes into that source code maybe this would not solve it:
remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' );
so that will do it:function remove_empty_ptags(){ ?> <script> (function($){ $('p:empty').remove(); })(jQuery); </script> <?php } add_action('wp_footer', 'remove_empty_ptags');
hey Ismael i think you misunderstood him – he is concerning to 768 til 989px 2b
and he likes to have the 4th entry not on 24% but as all the other on 48%the result is caused by an old “bug” of maybe wpautop function.
on the source i see that there is a <p></p> construct inserted between the flex-columns.:
by the way you can see a test environment on https://webers-testseite.de/cynthia
another problem to solve is, if you want to discard the ajax results, you would normally click outside the results field.
It doesn’t work here. So that will be the next hurdle.if you like to show your site as iframe a lot of Boards only allows to show in a lightbox:
https://gorgeconnect.com/
this you can have with url-parameter iframe=true
( depends on how many and the postion if it is added to the url by? or &
)I haven’t quite understood the point yet.
When I post a link, there is a placeholder and a click leads to the underlying link.
Or would you like to post the link of your page in such a way that the page is displayed there as iframe? I also have to say that this is the first time I stumble across this parameter?embed=true
.
If I read the right one, use the Url parameter like this:?:embed=yes
and as far as I know this is set as url parameter for the iframe tag – this way ( but than code in a posting must be activated and allowed
<iframe src="https://guenterweber.com?:embed=yes"></iframe>
Aha thanks –
Danke Günter – meinst du es bestand ein Zusammenhang mit dem Datenbankverbindungsfehler – und dem somit Total Ausfall der Seite?
Wie gesagt es war leicht zu beheben in dem ich beim Hoster die Rechte neu gesetzt habe.my definitive advice – take the little magnifying glass icon instead.
it is not so hard to insert that little icon for search on that place but to have the direct form there is a bit more complex.
don’t know why
$form = (ob_get_clean()) ;
has to be and not$form = htmlspecialchars(ob_get_clean()) ;
stays a miracle :lolso try ismaels code without that htmlspecialchars
add_filter( 'wp_nav_menu_items', 'avia_append_search_nav', 10, 2 ); add_filter( 'avf_fallback_menu_items', 'avia_append_search_nav', 10, 2 ); function avia_append_search_nav ( $items, $args ) { if ((is_object($args) && $args->theme_location == 'avia2') || (is_string($args) && $args = "fallback_menu")) { global $avia_config; ob_start(); get_search_form(); $form = (ob_get_clean()) ; $items .= '<li id="menu-item-search2" class="noMobile menu-item menu-item-search-dropdown">'.$form.'</span> '; } return $items; }
add this to your quick css:
#avia2-menu #menu-item-search2 { vertical-align: top !important; position: relative; top: -12px; }
but the uggliest thing is that the created ajax search will resize the header meta
edit:#top #searchform .ajax_search_response { position: absolute; background-color: #fff; box-shadow: 2px 2px 6px #333; }
-
This reply was modified 6 years, 11 months ago by
Guenni007.
thanks for the response. i don’t believe that the crash of the site is not in correlation to that – but the mysql errorlog shows that error on the time the site goes down.
However – i have off all my sites a duplicator (bzw multisites an updraft ) backup. So no worry.PS i rcognized on that install that in the page widget area there are placed the instagram widget on startup ( maybe that was a demo install with those entries. I didn’t notice that because I almost never activate the sidebar for pages.
here is the method mentioned above :
register a new social_bookmark via functions.php of your child theme
here i take the lock but find a different icon on enfoldfunction avia_add_custom_icon($icons) { $icons['register'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue825'); return $icons; } add_filter('avf_default_icons','avia_add_custom_icon', 10, 1); function avia_add_custom_social_icon($icons) { $icons['Register'] = 'register'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
goto your Enfold options and add that newly added “social media” (it is at the end of the list) and insert your desired link
this turns the social_media to the left of hamburger menu – put it in functions.php of your child theme too
function change_menu_position() { ?> <script> (function($){ $('.main_menu ul.social_bookmarks').insertBefore($('.main_menu div.avia-menu')); })(jQuery); </script> <?php } add_action('wp_footer', 'change_menu_position');
now style your newly social media button!:
/*** this is for the new button not to have same behavior as social_bookmarks buttons ***/ .social_bookmarks_register.av-social-link-register { margin: 0 15px; width: auto !important; padding: 0 15px !important; background-color: #42ab96 !important; } #top .social_bookmarks li.social_bookmarks_register a { width: auto !important; color: #fff; } .social_bookmarks_register .avia_hidden_link_text { display: inline !important; padding-left: 10px; text-decoration : none !important } #top #wrap_all .av-social-link-register:hover { color: #fff; background-color: #BD5469 !important; }
/*** rules for the left-hand social_bookmarks buttons ***/ #top nav .social_bookmarks { margin-top: -20px !important; overflow: visible !important; height: 40px !important } .avia-menu.av_menu_icon_beside { padding-right: 0; margin-right: 0; border-right-width: 0; border-right-style: none } .social_bookmarks li a { height: 40px !important; line-height: 40px !important; width: 40px !important } #top .social_bookmarks li { width: 40px; height: auto !important } #top .av-logo-container .social_bookmarks li a { border-radius: 50% } .av_header_transparency .social_bookmarks li a { color: #969696 !important;}
I think this will be the better and better understanding way:
Result – same as above: https://webers-testseite.de/cynthia/the most easiest way would be to register a new social media button for example with a lock and have the rounded buttons as if it was a social media link – on hovering you can see the tooltip : registering.
i do this often for links like intranet link or login links.
this could be handeled than like on my link above – because than it is part of social-media list.See here Result ( i do not change to see only burger-menu – so have a look at smaller screensizes )
https://webers-testseite.de/cynthia/if you like to insert for example a whole avia button shortcode – that is possible too.
add_action('ava_inside_main_menu', function() { echo '<li class="registerbutton">'; echo do_shortcode("[av_button label='Register now' link='manually,#' link_target='' size='large' position='left' label_display='' icon_select='yes-right-icon' icon_hover='aviaTBicon_hover' icon='ue875' font='entypo-fontello' color='custom' custom_bg='#42ab96' custom_font='#ffffff' av_uid='av-b9l' custom_class='' admin_preview_bg='']"); echo '</li>'; }); function change_menu_position() { ?> <script> (function($){ $('.main_menu ul.social_bookmarks').insertBefore($('.main_menu div.avia-menu')); $('li.registerbutton').appendTo('.main_menu > .social_bookmarks'); })(jQuery); </script> <?php } add_action('wp_footer', 'change_menu_position');
the code can be obtained by activation of the debug mode on enfold for above rules
–echo do_shortcode(" into this comes the full shortcode of your avia button ");
this comes to quick css:
/*** this is for the new button not to have same behavior as social_bookmarks buttons ***/ .registerbutton { width: auto !important } .registerbutton .avia_button_icon { display: inline-table } .social_bookmarks li.registerbutton a { border-radius: 0 !important; padding: 0 10px !important; width: auto !important; background: #42ab96; color: #fff } /*** rules for the left-hand social_bookmarks buttons ***/ #top nav .social_bookmarks { margin-top: -20px !important; overflow: visible !important; height: 40px !important } .avia-menu.av_menu_icon_beside { padding-right: 0; margin-right: 0; border-right-width: 0; border-right-style: none } .social_bookmarks li a { height: 40px !important; line-height: 40px !important; width: 40px !important } #top .social_bookmarks li { width: 40px; height: auto !important } #top .av-logo-container .social_bookmarks li a { border-radius: 50% } .av_header_transparency .social_bookmarks li a { color: #969696 !important;}
https://kriesi.at/support/topic/change-the-order-of-the-social-bookmarks-icon/#post-986302
is it this you like to obtain?
for the hamburger menu : doesn’t he like to have the current page highlighted in red?
#av-burger-menu-ul :not(.active-parent-item) .current-menu-item > a .avia-menu-text { color: red !important; }
the whole function can be used for more replacements – just add a new line – semicolon separated
replaceElementTag('.slideshow_caption h2.avia-caption-title', '<h1></h1>'); replaceElementTag('#footer h3.widgettitle', '<h2></h2>');
etc.pp
better if the image can be masked then use a png image in a color-section with no padding ! Do not use the sligthly increase the image on hover option, because i want that only the image got the hover increase.
give the color-section a gradient background. to have the image on the bottom of the color-section and to have no overlay on hovering do this to quick css:
(adjust the page/post to your givings – be careful the avia_transform class is a html class).avia_transform .postid-32650 a:hover .image-overlay { display: none !important; } .postid-32650 a.avia_image.lightbox-added img { transition: all 1s ease-in-out; } .postid-32650 a.avia_image.lightbox-added:hover img { -webkit-transform: scale(1.1); transform: scale(1.1); transition: all 1s ease-in-out; }
see result here: https://webers-testseite.de/huawei-2/
take a fullwidth-slideshow.
you can add to the image on caption a manual link (choose apply link to image) – add to the video link at the end a &iframe=true f.e.:https://player.vimeo.com/video/262210925?autoplay=1&loop=1&title=0&byline=0&portrait=0&iframe=true
see here: https://webers-testseite.de/huawei/
to pimp the whole thing a bit you can give to the hover effect some scalings – (get rid of the overlay white)
i thought he/she likes to replace the default h3 Iconbox title to a h2 title. – but i can not see the hidden private content – maybe there is more info on this.
i loaded the fa from maxcdn and the styles from the link ismael gave:
add_action( 'wp_enqueue_scripts', 'enqueue_awesome' ); function enqueue_awesome() { wp_enqueue_style( 'prefix-font-awesome', 'https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', array(), '4.7.0' ); wp_enqueue_style( 'font-awesome-styles', 'https://unpkg.com/@coreui/coreui/dist/css/coreui.min.css', array(), '1.0' ); }
the only thing to correct was in quick css a bit:
.btn { font-weight: 600 !important} .btn-brand i { font-size: 22px } .btn-brand i { margin: -.375rem .75rem -.375rem -.75rem }
and don’t make line-breaks in text-field:
<button class="btn btn-brand btn-youtube" type="button"><i class="fa fa-youtube"></i>Youtube</button>
Edit : i removed the code above from my test-page now – because It does not meet the requirements of the GDPR
to change all captions from h2 to h1 put this into your functions.php of your child-theme:
function replace_tags_with_tags(){ ?> <script> (function($) { function replaceElementTag(targetSelector, newTagString) { $(targetSelector).each(function(){ var newElem = $(newTagString, {html: $(this).html()}); $.each(this.attributes, function() { newElem.attr(this.name, this.value); }); $(this).replaceWith(newElem); }); } replaceElementTag('.slideshow_caption h2.avia-caption-title', '<h1></h1>'); }(jQuery)); </script> <?php } add_action('wp_footer', 'replace_tags_with_tags');
the function above is a general tag replacement function under preventing every attribut set on the original tag
the lines of replacement are only separated by semicolon. so for example if you like to switch in the footer from h3 headings to h2 headings only add in the function:replaceElementTag('h3.widgettitle', '<h2></h2>');
read carefully on top of this page – it works with child-theme and edited Alb Elements:
https://webers-testseite.de/edited-enfold-alb-elements/#iconsor if you only want that for all icon-box titles instead of h3 a h2 – put this to functions.php of your child-theme
function replace_tags_with_tags(){ ?> <script> (function($) { function replaceElementTag(targetSelector, newTagString) { $(targetSelector).each(function(){ var newElem = $(newTagString, {html: $(this).html()}); $.each(this.attributes, function() { newElem.attr(this.name, this.value); }); $(this).replaceWith(newElem); }); } replaceElementTag('h3.iconbox_content_title', '<h2></h2>'); //you can add here more tag replacements }(jQuery)); </script> <?php } add_action('wp_footer', 'replace_tags_with_tags');
this solution ( you can get rid of the if is_page when you want to be active on all sites) will work.
On future Projects you can use my edited alb elements where you have the choice to set the h-tag as you like!
https://webers-testseite.de/edited-enfold-alb-elements/#slidersdon’t know – he has opend a new thread – but my solution with selfhosted video works !
on this case : If you want simple solutions, you have to be satisfied with simple requirements.
If you have no concerns about GDPR, you can enqueue the styles of Fontawesome via CDN.
So you can use it manual – but problem would be that these sources need the newest jQuery – not that common one that Enfold uses !
You can do it via functions.php of your 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' ); }
So my Advice is to use fontello fontawesome – import that to Enfold and use it with Enfold buttons.
To style the buttons a bit more you can do that: https://webers-testseite.de/buttons/these are Enfold Buttons Alb with light-transparent layout and a bit of css
on Avia Layout Builder take a color-section.
Open that color section options dialog – click to the section background and set your wanted image.
Set your image behavior here too- if you like to repeat the background or if it is stretched. (on your example it seems to cover the element)
Set the image as you like to behave : scroll, parallax or fixed ( all will leave the screen on scrolling but with different effects)
Goto the tab on top : Section Background Overlay – set your overlay color if wanted – on your example it seems to be a black overlay color with f.e. 0.5 opacity.
Thats all – you can drag all you wanted into the color section now -
This reply was modified 6 years, 11 months ago by
-
AuthorPosts