-
AuthorPosts
-
November 22, 2016 at 9:06 pm #715572
Hello,
Is any function to the Child theme to change output of social icons in header?
I want to remove class avia_hidden_link_text from icons without using CSS
Thank youNovember 22, 2016 at 9:36 pm #715597Hi mdxclr!
You should find it in enfold\includes\helper-social-media.php line 83:
$html .= "<a href="'".$icon['social_icon_link']."'" title="'".ucfirst($icon['social_icon'])."'"><span class='avia_hidden_link_text'>".ucfirst($icon['social_icon'])."</span></a>";
Hope this helps.Cheers!
Nikko- This reply was modified 8 years, 1 month ago by Nikko.
November 22, 2016 at 10:42 pm #715637For this I need to change parent theme, but I need make this changes in the child theme.
November 22, 2016 at 10:50 pm #715643Hi,
Try to create includes folder in your child theme then copy helper-social-media.php and past it in the newly created folder and edit the file.
Best regards,
NikkoNovember 23, 2016 at 12:39 am #715672Yeap, I’ve tried to put that file to child theme and includes folder too.
It doesn’t work in both times;November 23, 2016 at 2:42 am #715687And other templates of child theme don’t work, like header.php, footer.php itc.
- This reply was modified 8 years, 1 month ago by mdxclr.
November 23, 2016 at 4:29 am #715696Is any fast solution for this? Can’t made any changes of templates on website..
November 23, 2016 at 7:26 am #715755Hi,
It appears the social media icons are replaced with the text as per your request. Please see the screenshot below.
You may not see the changes until the cached files are cleared in your browser.
Please try to hard refresh by pressing Ctrl + Shift + F5 on your browser or press the F12 key to open chrome dev tools and right click on the refresh button and select “Empty Cache and Hard Reload” and review the site again.
Best regards,
VinayNovember 23, 2016 at 9:56 am #715793Hard reload doesnt work.
Try it, I’ve added to class ‘avia_hidden_link_text 1’ , but in frontend it doesnt display- This reply was modified 8 years, 1 month ago by mdxclr.
November 25, 2016 at 7:25 am #716675Hi,
The text is displaying. Please check it on another computer. This is the css modification.
#top .av-logo-container .social_bookmarks .avia_hidden_link_text { display: block; }
Best regards,
IsmaelNovember 25, 2016 at 9:25 pm #717097Yeap, with CSS is no problem, but I need to change output from template file and using child theme.
November 28, 2016 at 4:14 am #717541Is any way to do this without css?
- This reply was modified 8 years ago by mdxclr.
November 29, 2016 at 4:01 pm #718306Hi,
help-social-media-php is not a WordPress template file so the child theme will not read it. So it won’t be easily possible unfortuntealy.
Best regards,
AndyDecember 6, 2016 at 11:12 pm #721233I found the solution…
Just place in the functions.php of Child theme
require_once( 'includes/helper-social-media.php' );
Please, add this to FAQ, I’m lost a few days to find it =)
- This reply was modified 8 years ago by mdxclr.
December 7, 2016 at 6:17 pm #721631Hi,
thanks for sharing your solution with us!
Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.
Best regards,
Andy -
AuthorPosts
- The topic ‘Replace social icons with text’ is closed to new replies.