-
AuthorPosts
-
November 2nd, 2013 at 11:17 #13352Andy
Hi,
I have read your post C24 ‘How do I add another social icon?’ in the FAQs and added my own social icon image.
However, my sidebar has a width of 270px and so there is room for 6 social icons ‘Under menu – right side’
How can I add ‘Link nr. 6’ or more to the Mantra Settings ‘Social Media Settings’ tab?
Hopefully I can add an override action on the child theme functions.php?
Thanks,
AndyNovember 2nd, 2013 at 11:52 #13353AndyI have inspected the core files and found the code under mantra/admin:
main.php line 220add_settings_field(‘mantra_socials5’, __(‘Link nr. 5′,’mantra’) , ‘cryout_setting_socials5_fn’, __FILE__, ‘socials_section’);
add_settings_field(‘mantra_socials6’, __(‘Link nr. 6′,’mantra’) , ‘cryout_setting_socials6_fn’, __FILE__, ‘socials_section’);
add_settings_field(‘mantra_socials7’, __(‘Link nr. 7′,’mantra’) , ‘cryout_setting_socials7_fn’, __FILE__, ‘socials_section’);
add_settings_field(‘mantra_socialshow’, __(‘Socials display’,’mantra’) , ‘cryout_setting_socialsdisplay_fn’, __FILE__, ‘socials_section’);settings.php line 1990
// TEXTBOX – Name: ma_options[social5]
function cryout_setting_socials5_fn() {
cryout_setting_social_master(9);
}
// TEXTBOX – Name: ma_options[social6]
function cryout_setting_socials6_fn() {
cryout_setting_social_master(11);
}
// TEXTBOX – Name: ma_options[social7]
function cryout_setting_socials7_fn() {
cryout_setting_social_master(13);That all works in the settings, but where do I change the actual page (presentation page, sidebar, page, etc so the extra icons show up live?
Thanks,
AndyJanuary 2nd, 2014 at 22:44 #15320AndreasI tried this and it works in the settings but it seems there is an override which will always display just five icons. Has anyone found a solution?
thanks,
Andreas -
AuthorPosts
The topic ‘Add more than 5 social icons’ is closed to new replies.