Hi, i have an issue where in the _brand.php file I added a new page ID however it are not showing up with the double logo header whereas the other pages still do. scratching my head as to what the cause may be. The page in question is: https://parracatholic.org/cyp-formation-training/ and has a page ID of 5792.
Hi there,
Please consider that this is a customization request and is outside of our support scope. We will try to guess what might be the problem but we will not be able to troubleshoot the case for you.
You will need to check the page settings of the pages in question and see what is the difference between those 2 pages and the other ones. Compare each and every setting in the edit screen of the page with the one that is working.
Also, I see that in the code you mentioned you did not add the ID 5792 at all.
Thank you.
Hi Christopher,
Thanks for the reply. You guys originally help me set this up and now you won’t continue with the support?
I did what you said an looked at the settings on each page and nothing is different, and it shouldn’t be considering I cloned the page originally.
It just doesn’t seem to work when I add new page ID’s to the _brand.php file anymore. Is this obsolete now? Is there another way I need to do this?
For example I am wanting to add the page ID 5792 to the CYP list of pages. However it doesn’t seem to do anything when I add it into the mix. Please see the _brand.php file below. The _brand.php file is located in x\framework\legacy\cranium\headers\views\global\ If you need to gain access to the backend let me know.
<?php
// =============================================================================
// VIEWS/GLOBAL/_BRAND.PHP
// -----------------------------------------------------------------------------
// Outputs the brand.
// =============================================================================
$site_name = get_bloginfo( 'name' );
$site_description = get_bloginfo( 'description' );
$logo = x_make_protocol_relative( x_get_option( 'x_logo' ) );
$site_logo = '<img src="' . $logo . '" alt="' . $site_description . '">';
?>
<?php echo '<h1 class="visually-hidden">' . $site_name . '</h1>'; ?>
<a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>">
<?php echo ( $logo == '' ) ? $site_name : $site_logo; ?>
</a>
<?php if(is_page(3347) || is_page(3351) || is_category( '65' ) ):?>
<a href="https://www.parracatholic.org/ccd-home"><img class="p-logo" src="https://parracatholic.org/parra/wp-content/uploads/2017/05/CCDlogowithline.jpg"></a>
<?php endif; ?>
<?php if(is_page(4404) || is_page(4795) || is_page(7392) || is_page(5644) || is_page(4838) || is_page(4826) || is_page(4855) || is_page(5832) || is_page(5906) || is_page(4813) || is_page(4852) || is_page(5859) || is_page(5815) || is_page(1875) || is_page(6063) || is_page(6069) || is_page(6048) || is_page(6055) || is_page(6060) || is_page(6117) || is_page(6115) || is_page(6113) || is_page(7144) || is_page(6111) || is_page(6109) || is_page(5792) ):?>
<a href="https://www.parracatholic.org/cyp"><img class="p-logo" src="https://parracatholic.org/parra/wp-content/uploads/2017/03/CYPlogowithline.png"></a>
<?php endif; ?>
<?php if(is_page(4944) || is_page(4446) || is_page(5046) || is_page(5175) || is_page(5079) || is_page(5190) || is_page(5168) || is_page(5071) || is_page(5185) ):?>
<a href="https://www.parracatholic.org/ddf"><img class="p-logo" src="https://parracatholic.org/parra/wp-content/uploads/2017/03/DDFlogowithline.png"></a>
<?php endif; ?>
<?php if(is_page(5326) || is_page(5493) ):?>
<a href="https://www.parracatholic.org/ccss"><img class="p-logo" src="https://parracatholic.org/parra/wp-content/uploads/2017/09/CCSSlogowithline1.png"></a>
<?php endif; ?>
Hi,
Can you provide us your FTP Login in Secure Note
so we can properly debug the code.
Thanks
Secure note has been added to the post above.
Hi there,
I totally understand that my colleagues helped you to customize the header, but that is outside of our support scope and the help was an extra thing to do.
I went to your website cpanel and added the code there, it is working with no problem:
It seems that you added the code in the wrong place as I see there are many different subdomains that you have. Make sure that you choose the correct FTP connection or the cpanel domain to change the file.
Thank you.
Thanks so much!
Where exactly was the file located? I swear i have only ever changed the _brand.php file in x\framework\legacy\cranium\headers\views\global\
Hi there,
You can move the same file into your child theme and edit it there, like \x-child\framework\legacy\cranium\headers\views\global\
.
That could be the reason why it’s not working since you’re editing your parent theme’s _brand.php
while there is a existing _brand.php in your active child theme.
Thanks!
Excellent, thank you!
You’re welcome!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.