Ally Lew
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] How to link home feature page to a Category?Thanks so much.
Forum: Themes and Templates
In reply to: [Customizr] How to link home feature page to a Category?Hi Electric feet,
I managed to get my friend to help me with the PHP files. Now its linked to the category that I wanted.
Just wanted to check with you, I am now currently using the customizr child theme, do I need to switch back to the parent theme? As I am assuming the child theme is a ‘testing file’ or a ‘ mirror file of the parent theme’. I noticed the child theme doesn’t has the menu bars (but I have already added in). I am just worried that child theme is not a permanent theme I should run on in case things are missing again.
Thanks,
AllyForum: Themes and Templates
In reply to: [Customizr] How to link home feature page to a Category?Ok thanks, let me try and read it. Thanks again!
Forum: Themes and Templates
In reply to: [Customizr] How to link home feature page to a Category?Hi ElectricFeet,
I will really need your help to guide me through as I have no clue at all to read the snippet codings. I would want to know how to substitute my feature page to a category.
Below is the snippet example I have copied, can you pls help me to decipher it? Thanks so much.
dd_filter(‘tc_fp_link_url’ , ‘my_custom_fp_links’, 10 ,2);
function my_custom_fp_links( $original_link , $fp_id ) {//assigns a custom link by page id
$custom_link = array(
//page id => ‘Custom link’
2 => ‘http://www.my-custom-url-one.com’,
9 => ‘http://www.my-custom-url-two.com’
);foreach ($custom_link as $page_id => $link) {
if ( get_permalink($page_id) == $original_link )
return $link;
}//if no custom title is defined for the current page id, return original
return $original_link;
}