Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   Favicon not loading on custom post type (http://forum.bytesforall.com/showthread.php?t=22685)

bswb97 Jul 28, 2014 11:08 AM

Favicon not loading on custom post type
 
I used both the default Ata favicon and the All In One Favicon plugin and still wasn't getting it.

I'm assuming I need to use the favicon function from the Ata header.php file in my CPT template. If that's so, what is the proper PHP code for that?

I THINK it's this:

PHP Code:

<?php 

if ($bfa_ata['favicon_file'] != "") { 
    if(
$bfa_ata['images_root'] == "atahualpa") {
           
$imgdir  get_template_directory_uri() . '/images/favicon/';
        } else {
// at this point the images_root is 'wp-content'
            
if(!isset($bfa_ata['ata_images_dir']) 
            OR (
$bfa_ata['ata_images_dir'] == '') ) {    
                   
$imgdir  content_url() . '/ata-images/';
            } else {
                
$imgdir  content_url() . '/' $bfa_ata['ata_images_dir'] . '/';
            }
        }
?><link rel="shortcut icon" href="<?php echo $imgdir$bfa_ata['favicon_file']; ?>" />


juggledad Jul 28, 2014 11:20 AM

if you go to the plugin's support page you will see lots of people having problems and no support from the developer. Looks like he hasn't responded to anything in 8 months....


All times are GMT -6. The time now is 03:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.