Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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.png

    as 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')); }
    #279415

    wood for the trees
    i added between a

     if (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 ?

    #279612

    Hey!

    It looks fine :) Let us know if you have any other questions or issues

    Best regards,
    Yigit

    #402928

    @Guenni007,

    can u say me please, what i must do , that i can choose a Touchicon in the enfold settings too?

    #403912

    Hey 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!
    Josue

    #404347

    Hello Josue,

    thx for your answer. It works good :-)

    #404355

    You are welcome, always glad to help :)

    Regards,
    Josue

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.