-
AuthorPosts
-
June 7, 2013 at 9:18 pm #24505
Version 1.6 is great (thanks!), but it did breaks something that used to work in 1.5: if you have an icon box and place another font icon within that icon box, you can’t align that icon anymore. It sticks to the left, and even though there is an option to align left/centre/right within the shortcode dialog, nothing seems to stick.
Thanks for looking into this!
PS: Here’s a screenshot to explain what I mean. The triangle at the bottom used to be centered, and there was more padding below. You can see it on presentpro.de, but I’ll try to fix it tomorrow with some workaround.
June 8, 2013 at 10:57 pm #123675firebug shows that there is a class assigned to the icon which makes it align left:
<span class=”av_font_icon avia-icon-pos-left avia-font-entypo-fontello” style=”color:#ffb922;font-size:18px;line-height:18px;”>▶</span>
if you delete avia-icon-pos-left the triangle gets centered and the padding is increased
June 9, 2013 at 10:00 am #123676I can’t see where I could delete that avia-icon-pos-left bit myself, it’s not part of the shortcode.
I just tried creating a new centered icon box from scratch, inserting a brandnew (centered) font icon. This is what it looks like in the Avia backend:
This is what it looks like on the site:
June 9, 2013 at 11:24 am #123677hmm – probier mal den code – nicht den shortcode – im html-modus – direkt einzugeben:
<span class=”av_font_icon avia-font-entypo-fontello” style=”color:#ffb922;font-size:18px;line-height:18px;”>▶</span>
By the way – die seite sieht übrigens super aus :-)
June 9, 2013 at 11:45 am #123678hab’s eben probiert – wenn man den obigen code – im html-modus – direkt eingibt, dann funktioniert’s :-)
Da ist irgendein bug mit den shortcodes (das center alignment wird nicht übernommen)
June 9, 2013 at 12:05 pm #123679BESSERE LÖSUNG:
habe in der icon.php nachgesehen – offensichtlich fehlt im shortcode die “position”.
Also wie gehabt den shortcode einfügen und dann noch die “Position” ergänzen. Vorher sah der Code folgendermassen aus:
[av_font_icon color="" icon="112" size="40px" use_link="{{use_link}}" link="" linktarget="no"] – das alignment fehlt
ergänze es einfach um position=”center” und es funktioniert:
[av_font_icon color="" icon="112" size="40px" position="center" use_link="{{use_link}}" link="" linktarget="no"]
June 9, 2013 at 1:02 pm #123680Wunderbar! Das hat geholfen! :) Tausend Dank, melonmelon!
Liebe Admins, könnt Ihr das als Bug loggen?
Danke & Gruß
Andreas
PS: Und danke für’s Lob, freut mich sehr!
June 10, 2013 at 6:53 am #123681Danke – wird im nächsten Update behoben. Momentan kann man dies wie folgt fixen – öffne wp-contentthemesenfoldconfig-templatebuilderavia-shortcodesicon.php und ersetze:
$this->config['tinyMCE'] = array('tiny_only'=>true, 'templateInsert'=>'[av_font_icon color="{{color}}" icon="{{icon}}" size="{{size}}" use_link="{{use_link}}" link="{{link}}" linktarget="{{linktarget}}"]');
durch
$this->config['tinyMCE'] = array('tiny_only'=>true, 'templateInsert'=>'[av_font_icon color="{{color}}" icon="{{icon}}" position="{{position}}" size="{{size}}" use_link="{{use_link}}" link="{{link}}" linktarget="{{linktarget}}"]');
June 16, 2013 at 6:48 pm #123682Danke, Dude!
-
AuthorPosts
- The topic ‘New bug in 1.6: font icons within icon boxes can't be aligned anything but left’ is closed to new replies.