ozcelik111
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] Featured Pages Customizing HELP!Yes it worked. Thank you for your help! This is my latest code:
<?php
/* Write your awesome functions below */add_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’
1045 => ‘https://ecsdevelop.com/?product_cat=a4-mfp-cihazlar/’,
1049 => ‘https://ecsdevelop.com/?product_cat=ofis-urunleri/’,
1119 => ‘https://ecsdevelop.com/?product_cat=profesyonel-sistemler’,);
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;
}Forum: Themes and Templates
In reply to: [Customizr] Featured Pages Customizing HELP!Ok I managed to put the site back on again.
There no page id’s on product pages. display url is like this:
https://ecsdevelop.com/?product_cat=a4-mfp-cihazlarHow can I custom the url without page id. Any ideas?
Forum: Themes and Templates
In reply to: [Customizr] Featured Pages Customizing HELP!Thank you rdellconsulting. I created child theme and copied and pasted the following code:
add_filter(‘tc_fp_link_url’ , ‘my_custom_fp_links’, 10 ,2);
//If you are using the featured pages Unlimited Plugin or the Customizr Pro theme, uncomment this line :
//add_filter(‘fpc_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 => ‘https://ecsdevelop.com/product-category/a4-mfp-cihazlar/’,
9 => ‘https://ecsdevelop.com/product-category/ofis-urunleri/’
9 => ‘https://ecsdevelop.com/product-category/profesyonel-sistemler/’
);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;
}I saved it and reloaded it before changing the page id’s. Now website looks blank. Domain name displays blank white page so cant see anything on backend of wordpress. This may be caused with wrong page id’s I don’t know. Any ideas ? Thanks.