Forum Replies Created
-
AuthorPosts
-
thank you, but i don’t want to create a new (icon)Font, just want to put another ICON in the Top of the box.
maybe this is a hint to do it: https://kriesi.at/support/topic/custom-icons-blank/#post-1111653
On that special case i replaced all the existing icons “bell” of entypo-fontello with an uploaded svg file (png).
The trick is to get rid of the “content” ( data icon of the entypo-fontello) and place a background-image to that container.But you can do this once for any entypo-fontello icon ( not to replace all bell icons ) but the method is similar to that method
May i see your site link?
June 22, 2019 at 7:23 am in reply to: Code Block Element doesn't handle shortcodes properly #1112523Well with borlabs nick and link to borlabs page – i guess he is a developer for borlabs ;)
June 21, 2019 at 11:03 am in reply to: Can I make the lightbox auto rotate? and trigger with single link? #1112290can you try this in child-theme functions.php:
function masonry_title_fix(){ ?> <script> (function($){ $(window).load(function() { $('a.av-masonry-entry.lightbox-added').each(function(){ var lin = $(this).find('.av-masonry-entry-content').text(); $(this).attr('title',lin); }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'masonry_title_fix');but you had to choose to show on the gallery both : title and excerpt (that is the entered Caption)
If you only want to have under the gallery images the title – but on lightbox the caption – just do this to quick css:.av-masonry-entry-content.entry-content { display: none !important; }see here: https://webers-testseite.de/gallery/
But the hint with the double function name can still be internalized, right?
Especially because some of the snippets offered here often have the name: ava_custom_scriptFirst : use the code tag to post code here on board. Then we can see if you are using correct Brackets, Quotationmarks etc. pp.
And: it can be copy/pasted to proove or to insert it where you like.
Second : A function name should be always unique in your functions.php ! : with your code on top, you violated that rule.
(But on newer WP Versions the site should crash – it has some warnings on the bottom and does not save the changings – so ? )you can shorten your code above to:
// Register new icon as a theme icon function avia_add_custom_icon($icons) { $icons['yelp'] = array( 'font' =>'fontello', 'icon' => 'uf1e9'); $icons['tripadvisor'] = array( 'font' =>'fontello', 'icon' => 'uf262'); return $icons; } add_filter('avf_default_icons','avia_add_custom_icon', 10, 1); // Add new icon as an option for social icons function avia_add_custom_social_icon($icons) { $icons['Yelp'] = 'yelp'; $icons['TripAdvisor'] = 'TripAdvisor'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);your font is named really : fontello ? – so you didn’t enter on top of fontello site a font-name?
you do really mean vertically? The most wanted fix is to center them horizontally.
so a bit offtopic: these font-icons are nice to have and a quick way to style buttons etc. with icons. You are alway resticted to monchrom usage.
So if you only have to work with some or – always the same icons you can replace the inserted icon from entypo-fontello by a png or svg – if you like.
give a custom-class to the container where you want to replace the icons. —- in my case it is : spezial-icon
CSS code is a bit different if you got chart or icons
here i replace that little bell icon – you find the code to insert on hovering the icon on the select field. you will find for the bell: \ue83d
erase the “u” in it. (by the way the backslash on mac keyboards is on shift+option+7 – on pc there is an extra key for it)
you have to look what you like to replace.spezial-icon .av-icon-char[data-av_icon="\e83d"]::before, .spezial-icon .iconlist-char[data-av_icon="\e83d"]::before, .spezial-icon .iconbox_icon[data-av_icon="\e83d"]::before { content: " "; display: inline-flex; width: 1.4em; height: 1.4em; background-size: contain; background-repeat: no-repeat; background-image: url("//the-path-to-your-image/image.svg"); position: absolute; top: 50%; left: 50%; transform: translate(-50% , -50%); } .spezial-icon .av-icon-char[data-av_icon="/e83d"]::before { position: relative; top: 0 ; left: 0 ; transform: none; }the width and height is set by relative values to the font – so it is synchonized with the font-size of the entypo-fontello font icon.
Play a bit with these values.-
This reply was modified 6 years, 4 months ago by
Guenni007.
create a post with the needed elements – which you do not link in your menu – maybe you exclude this post from search.
Or if you know all of the elements you used – activate them manuallyJune 19, 2019 at 12:03 pm in reply to: Change H2 to H1 Titel at Fullscreen Slider – current version of Enfold #1111583wäre auch für mich eine große Zeitersparnis.
Zudem glaube ich, dass es in der Tat aus SEO Gründen wirklich gut wäre hier eine abgestufte Heading Hierarchie zu ermöglichen.just one moment – i had to proove the css
edit: sorry – is probably too complex to explain here
you can delete the entryJune 18, 2019 at 3:32 pm in reply to: @Guenni007: Problem with your modificated iconlist file for adding h-tags #1111329no – the code is as i expected it. And the sequence there is like mentioned above.
i only adjusted the icon-list code to that sequence like in icon-box code and erased that line :$this->iconlist_styling = '';
For me, this is an overdetermination like mentioned here: https://kriesi.at/support/topic/icon-list-element-issue/#post-1085579_______
But I’m really not a good coder now. I can only compare the source codes and see the differences and logical relationships. Since the icon box was running – I just looked what the difference was to Icon-list in the queries.
There I saw that just the order is different within function shortcode_handlerJune 18, 2019 at 3:17 pm in reply to: @Guenni007: Problem with your modificated iconlist file for adding h-tags #1111324by the way – don’t know if it is important:
on my customization i now changed back the position of initialisation to enfold former sequence.
then it works as expected.these lines here:
$this->icon_html_styling = ''; $this->title_styling = ''; $this->content_styling = ''; $this->content_class = ''; $this->title_class = ''; $this->iconlist_styling = '';comes after the
extract( shortcode_atts( array( …on iconboxes too.
June 18, 2019 at 3:11 pm in reply to: @Guenni007: Problem with your modificated iconlist file for adding h-tags #1111322see here my comment and the discussion :
https://kriesi.at/support/topic/icon-list-element-issue/#post-1080940
and
https://kriesi.at/support/topic/icon-list-element-issue/#post-1085579after this 4.5.6 and 4.5.7 comes with both lines (and the missing ones)
having both in the code comes to conflict with my customizations. Don’t know whyJune 18, 2019 at 2:56 pm in reply to: @Guenni007: Problem with your modificated iconlist file for adding h-tags #1111316can you please download again the new file from this page: https://webers-testseite.de/edited-enfold-alb-elements/#icons
not my code was wrong – ;) there were changings in 4.5.5 to 4.5.7 which results in that fault.
in 4.5.5. there is not :
$this->iconlist_styling = ”;
and that:
$this->iconlist_styling = $iconlist_styling == ‘av-iconlist-small’ ? “av-iconlist-small” : “av-iconlist-big”;there was another post here where i’m asking if it is not doubled here.
if like in the 4.5.7 it is in that way. My edited alb with this comes into conflict.
if i erase the first line:$this->iconlist_styling = '';it works as expected before.this seems to come to no conflict with default h4 (fixed) tag but
for my inserted custom title tag – it seems to be important.try the new file: https://pastebin.com/dl/ET7Egx2p
June 18, 2019 at 8:16 am in reply to: Can I make the lightbox auto rotate? and trigger with single link? #1111206some words to that plugin. Seems to be a good one. But:
ask the developer if it is compatible with Enfold – or search the internet for some hints if it is working with enfold.
This plugin – does it work with its own lightbox script. Can you use both lightbox (magnific popup from Dmitry Semenov) and that of your plugin?
Etc pp.;)
https://enviragallery.com/docs/enfold-theme-enviras-automatic-gallery/
June 18, 2019 at 7:51 am in reply to: Can I make the lightbox auto rotate? and trigger with single link? #1111204yes – on every gallery you like to start automatically – and you only have to add then analog lines to :
$('#av-masonry-1-item-125').trigger('click');or change it to (but then all masonry galleries will do the auto start.) :
function start_with_clicked_state(){ ?> <script> (function($) { $(window).load(function() { setTimeout(function() { $('a.av-masonry-entry.lightbox-added:first-of-type').trigger('click'); }, 1000); }); })(jQuery); </script> <?php } add_action('wp_footer', 'start_with_clicked_state');June 17, 2019 at 3:05 pm in reply to: Change H2 to H1 Titel at Fullscreen Slider – current version of Enfold #1111028naja die Slider und icon-box und icon-lists
Bei den Slidern wäre es deshalb gut, weil man hier dann pro Slide den heading-tag festlegen kann.
gerne könnt ihr auch meine Versionen nehmen und die Kommentare rauslöschen.June 17, 2019 at 6:48 am in reply to: Change H2 to H1 Titel at Fullscreen Slider – current version of Enfold #1110937ich würde auch eine Übernahme dieses Features begrüßen, denn die Anpassung an jedes neue Update ist schon arbeitsintensiv.
Leider entschloss man sich nur ein Filter für den Wechsel einzubauen. avf_customize_heading_settings
see here how to use it: https://kriesi.at/support/topic/timeline-milestone-h2-and-h3-tags-how-can-i-delete/#post-1098168June 16, 2019 at 9:21 am in reply to: Can I make the lightbox auto rotate? and trigger with single link? #1110771Aren’t you willing to accept or try a solution from a non moderator? ;)
if there are questions – tell meJune 15, 2019 at 11:37 am in reply to: having the content the same level on different devices #1110640No chance to reach it there without incorporating other layout errors. The heights of the contents are different.
And the read-more button is part of entry-contentOne thing could be to limit excerpts to a give length ( letters or words to have nearly the same excerpt height.
June 15, 2019 at 10:55 am in reply to: having the content the same level on different devices #1110631.page-id-102 #av_section_1 .avia-button.avia-size-large { padding: 15px 25px 13px; font-size: 13px; min-width: 150px; }btw: you had to break your menu earlier – on screen-width less than 1216px you have menu-items in top-section
June 15, 2019 at 10:49 am in reply to: having the content the same level on different devices #1110630can you try this :
.page-id-102 #av_section_1 .avia-button-wrap.avia-button-center.el_after_av_hr.avia-builder-el-last { position: absolute; top: auto; bottom: 20px; left: 50%; transform: translateX(-50%); } .page-id-102 #av_section_1 .hr-invisible.el_after_av_textblock.el_before_av_button { padding-bottom:40px }i see you use autooptimize etc. – refresh all cached versions – maybe refresh merged files on enfold too
PS: the one thing with the button on hover on all screen-width i’m on that behavior now to solveJune 15, 2019 at 10:01 am in reply to: having the content the same level on different devices #1110626after that OCD Comment i wouldn’t make the site public too – but I’d like to see what you try to achieve.
Maybe you can post the alb shortcode that is causing the problem here.on :
Gallery Style
Choose the layout of your Gallerychoose: big image with thumbnail below.
you are working with a child-theme – but have no functions.php in there?
The downloadable preset child-theme of Enfold has it on default: https://kriesi.at/documentation/enfold/child-theme/And this is all what is in the starting child-theme functions.php
<?php /* * Add your own functions here. You can also copy some of the theme functions into this file. * WordPress will use those functions instead of the original functions then. */June 14, 2019 at 8:20 pm in reply to: Can I make the lightbox auto rotate? and trigger with single link? #1110470the only thing that i can not imagine – is the the autoplay will work for paginated galleries.
if you can show all of your images on one page it will work like here: https://webers-testseite.de/gallery/the google font : Roboto is loaded via Google Maps or Google ReCaptcha etc.
So it is not loaded by Enfold.But this must be definitly a transposed digits error? You mean WP 5.2.1
June 14, 2019 at 8:49 am in reply to: Can I make the lightbox auto rotate? and trigger with single link? #1110247for the second request – look into your source code and see what ID the first image got- on that page above it is : #av-masonry-1-item-125
function start_with_clicked_state(){ ?> <script> (function($) { $(window).load(function() { setTimeout(function() { $('#av-masonry-1-item-125').trigger('click'); }, 1000); }); })(jQuery); </script> <?php } add_action('wp_footer', 'start_with_clicked_state');see here my example page: https://webers-testseite.de/gallery/
with both codes above : after 1sec the lightbox starts – every 6sec the image will load the next one.so you do not have to do something on the starting page: http://fvs.768.myftpupload.com/kitchens/
just see the ID of the first image you have on that newly opend one (http://fvs.768.myftpupload.com/before-after-stained-kitchen-cabinets/)June 14, 2019 at 7:31 am in reply to: Can I make the lightbox auto rotate? and trigger with single link? #1110224try that code please : https://kriesi.at/support/topic/can-i-make-the-lightbox-auto-rotate-and-trigger-with-single-link/#post-1110141
and press one of your images on : http://fvs.768.myftpupload.com/before-after-stained-kitchen-cabinets/
But yor heading tells two requests – the one is the autorotation of a “lightbox slideshow”
the other is to link from your first masonry directly to the lightbox of the other page.for first see here in action: https://webers-testseite.de/gallery/
-
This reply was modified 6 years, 4 months ago by
-
AuthorPosts
