Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

Favicon not loading on custom post type


  #1  
Old Jul 28, 2014, 11:08 AM
bswb97
 
158 posts · Aug 2010
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']; ?>" />
  #2  
Old Jul 28, 2014, 11:20 AM
juggledad's Avatar
juggledad
 
23,628 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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....
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
custom post type, favicon

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Sidebar Only On Custom Post Type Home bswb97 Sidebars & Widgets 3 Aug 8, 2012 06:25 AM
favicon only shows on frontpage/loading problem kletskater New Versions, & Updating 15 Feb 22, 2012 08:51 PM
Custom Logo Area Has Strange Effect When Loading Pages c12281 Header configuration & styling 5 Sep 8, 2011 05:09 AM
Simple Custom Post Type Archives AnaRita Plugins & Atahualpa 2 Oct 9, 2010 07:16 AM
Change Post title type size/style rickinesc Atahualpa 3 Wordpress theme 1 Jul 14, 2009 02:14 PM


All times are GMT -6. The time now is 08:43 PM.


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