-
AuthorPosts
-
July 6, 2014 at 2:04 am #287608
I’ve set ‘Header Phone Number/Extra Info’ to ‘display in topbar at the right’ (by clicking ‘enfold-child’ in the sidebar, “Header layout”, “Extra elements”) and under “Phone Number or small info text” I’ve put my telephone number but it doesn’t display
I tried using the unicode (character map) : 📞 but on it’s own it does nothing (ie displays a square because the character is not found in the font)Here’s an exact example of what I mean: http://www.medienvirus.de
He posted his site in the enfold-showcase thread but it appears he’s using a different theme)
Also how to get that email symbol?Please help.
July 6, 2014 at 5:01 am #287632Hi!
Try applying this mod:
https://kriesi.at/support/topic/viewer-controls-text-size/#post-285885Then you can paste [shortcodes] in that field.
Best regards,
JosueJuly 6, 2014 at 9:16 am #287662Cool, Thanks :-) Quick question:
Open /includes/helper-main-menu.php and look for line 68:
if($phone) { echo “<div class=’phone-info {$phone_class}’><span>{$phone}</span></div>”; }
Replace it by this:
if($phone) { echo “<div class=’phone-info {$phone_class}’><span>”.do_shortcode($phone).”</span></div>”; }I created and am using a child theme, so where do I copy includes/helper-main-menu.php to?
I’m guessing I create an ‘includes’ folder in the enfold-child folder and put it in there like this:
enfold-child/includes/helper-main-menu.php
or do I put it in the root folder of the child theme like this:
enfold-child/helper-main-menu.php?- This reply was modified 10 years, 4 months ago by ksdominant.
July 6, 2014 at 9:47 am #287667Also: Can you please give an example of the shortcode I need to paste in for the telephone symbol? or a link to where the shortcodes are for telephone, email, etc.. I tried googling “enfold telelephone shortcode” and found nothing..
And I think that may be the wrong link, That zoom plugin isn’t for shortcodes, it allows users to zoom into part of the screen (unless the shortcodes thing is something else it does on the side but doesn’t mention on its page.
July 6, 2014 at 9:53 am #287671Hey!
There is no easy way to place the changing in the child theme. You have to do it in the enfold parent theme file.
Regards,
GünterJuly 6, 2014 at 6:38 pm #287750Hey!
You’d need to generate the shortcodes to use in a separate Page (using the magic wand tool). For example, here’s an icon element (phone) in shortcode format:
[av_font_icon icon='ue854' font='entypo-fontello' style='' caption='' link='' linktarget='' color='' size='40px' position='left'][/av_font_icon]
Regards,
JosueSeptember 28, 2015 at 4:32 pm #510234Hi Guys,
I am trying to do a similar objective here. I have a shortcode function I have created to greet the logged in user if logged in or to show a sign up/login link if they are not. The shortcode works in the extra info field, but for some reason it gets thrown out of the phone-info div and then displays on the left of the screen. How can I fix this?
Regards,
MediiaXSeptember 28, 2015 at 4:39 pm #510243Hi Guys, Sorry, I seem to have fixed my own problem by adding tags in the function itself.
For anyone that needs this shortcode function, I may as well add it in here to help someone else that may want a welcome greeting in the header.
Add this function to functions.php:
// Add Welcome Shortcode function welcome_shortcode() { if ( is_user_logged_in() ) { global $current_user; get_currentuserinfo(); echo '<span class="welcome">'. 'Hello: ' . $current_user->display_name . "\n" . '</span>'; } else {?> <?php echo '<span class="welcome">';?><a href="http://dev10.mediax.co.za/bim-login/">Login</a> / <a href="http://dev10.mediax.co.za/bim-registration/">Sign Up</a> <?php }; echo '</span>'; } add_shortcode( 'welcome', 'welcome_shortcode' );
Use [welcome] shortcode in the phone/extra info field of enfold.
Regards,
MediaX- This reply was modified 9 years, 1 month ago by mediax2014.
September 28, 2015 at 11:17 pm #510454Hi!
Thanks for sharing your solution, let us know if you need further assistance.
Regards,
JosueApril 2, 2016 at 9:56 pm #607050I am having a strange problem with the incorrect phone number showing in top bar, extra elements in header. Ref. http://vistalandscapes.net in Safari and it displays 248-877-5500, and I changed it to 248-320-7080 and it display correctly when I’m logged in. Once logged out the number changes back. I deleted the number, disabled the extra elements, re-enabled the elements and input correct number. I also deleted browser history and cache -but no luck.
April 3, 2016 at 11:22 am #607204Hi!
Do you have any minification/caching plugin running on your site?
Regards,
JosueApril 4, 2016 at 10:31 pm #607921Yes, it was WP fastest cache. Thanks, we’re good!
-
AuthorPosts
- The topic ‘Telephone icon in top bar’ is closed to new replies.