-
AuthorPosts
-
June 16, 2014 at 1:35 pm #279400
the one thread to which it might be concernded is closed so here a new Topic:
i managed a new input field for the Apple Touch Icon by changing some code in (function-set-avia-frontend.php ; register-admin-options.php and header.php)
Everything works fine but there is only one cosmetic issue:http://abload.de/img/bildschirmfoto2014-06s7oov.png
http://abload.de/img/bildschirmfoto2014-066so84.png
http://abload.de/img/bildschirmfoto2014-06vkbc6.pngas you can see in the source-code there is no line-break between the two image-links.
How do i obtain this line-break in/* * outputs a favicon if defined */ if (function_exists('avia_favicon')) { echo avia_favicon(avia_get_option('favicon')); } /* * outputs a appleicon if defined */ if (function_exists('avia_appleicon')) { echo avia_appleicon(avia_get_option('appleicon')); }
June 16, 2014 at 1:50 pm #279415wood for the trees
i added between aif (function_exists('avia_favicon')) { echo avia_favicon(avia_get_option('favicon')); } echo "\n"; if (function_exists('avia_appleicon')) { echo avia_appleicon(avia_get_option('appleicon')); }
or is that too quick and dirty ?
June 16, 2014 at 6:30 pm #279612Hey!
It looks fine :) Let us know if you have any other questions or issues
Best regards,
YigitFebruary 26, 2015 at 7:32 pm #402928can u say me please, what i must do , that i can choose a Touchicon in the enfold settings too?
February 28, 2015 at 9:36 pm #403912Hey Manuel!
Add this to your theme / child theme functions.php file:
// Create new setting in Theme Options add_filter('avf_option_page_data_init', 'custom_option_apple_icon', 10, 1); function custom_option_apple_icon($avia_elements){ $new_elements[] = array( "slug" => "avia", "name" => __("Apple Icon", 'avia_framework'), "desc" => __("Upload an Apple Icon to use", 'avia_framework'), "id" => "avia_appleicon", "type" => "upload", "label" => __("Use Image as Apple Icon", 'avia_framework')); $avia_elements = array_merge( $avia_elements, $new_elements ); return $avia_elements; } // Include apple touch icon in head add_action( 'wp_head', 'add_apple_icon_to_header', 10); function add_apple_icon_to_header() { ?> <link rel="apple-touch-icon" href="<?php echo avia_get_option('avia_appleicon'); ?>" type="image/png"> <?php }
Cheers!
JosueMarch 2, 2015 at 9:12 am #404347Hello Josue,
thx for your answer. It works good :-)
March 2, 2015 at 9:58 am #404355You are welcome, always glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.