Support » Theme: Customizr » Featured Pages on another page other than home

  • Resolved Leapmkt12


    Hi guys! Loving this theme using on website #4 now. Is there any way the featured pages can be moved to another page? i.e new .php file / snippet or something?



Viewing 15 replies - 1 through 15 (of 15 total)
  • If you can do techie stuff (Hooks), I’m pretty sure you could do this using the FPU extension.

    I’ll ask Nic to respond to this post…

    There are filters for everything you want in Customizr. It’s amazing 🙂

    There is a filter called tc_show_fp, which wants a true or false—show the pages or not. Currently, the code checks if you have chosen to show the featured pages in your settings AND if you are are on the front page. If both those conditions are true, then it gets a true and displays the FPs.

    What you need to do is to add to that test: “or if I’m on page 42”.

    So you let the current test ( (want FPs) AND (on front page) ) come through to the filter and then add your own ( OR (on page 42) ).

    The code looks like this:

    add_filter ( 'tc_show_fp' , 'my_show_fp');
    function my_show_fp($show_fp) {
    	$show_fp = ( $show_fp || is_page( 42 ) ) ;
    	echo $show_fp ? 'true' : 'false';
    	return $show_fp;

    Note that this will show the FPs on page 42 even if you have switched them off in the settings.

    Oops! That echo statement was there for me to check what was happening as I wrote the code. d4z_c0nf has rightly pointed out that you won’t want it in your page 🙂

    The code should be:

    add_filter ( 'tc_show_fp' , 'my_show_fp');
    function my_show_fp($show_fp) {
    	$show_fp = ( $show_fp || is_page( 42 ) ) ;
    	return $show_fp;

    That is awesome!! Thank you so much. Love what you can do with this theme! Final question … is it possible to set up custom side bars? The theme I am changing this clients site over from used them as they have four different product categories? The “Custom side bars” plug in is already installed & set up, but obviously doesn’t work with Customizr.

    ElectricFeet you’re a legend! Thanks again.

    Never used it myself. How doesn’t it work with Customizr?

    I’m sure it will work with Customizr I just need to look at the code & possibly custom pages.php
    Its a plugin that allows you to set certain side-bar widgets on different pages.
    Sorry for all the questions, I’m a marketer that fell into website design to keep consistent branding for my clients. HTML & CSS is pretty good, PHP is still a big unknown. Really apprecaite how much help & support you all offer.

    What’s the problem you have?

    I need to find (learn) the right code snippet to add a customised sidebar to different pages. The plugin was already installed on a hybrid theme for this site & I’ve taken over & changed the theme to Customizr due to its flexibility (& the support from you guys)it is looked after by WPMU DEV & is simply Custom Sidebars

    But what makes you think that the plugin won’t work? (I’m not saying it will, but you should try it first.)

    I guess I’m more worried about ‘breaking’ the theme. WHere would I find the codes to start rearranging side bar php in customizr? Is there as certain line of code to look for?

    Basically my client started with a hybrid theme which uses custom sidebars hence looking for the right ‘filter or hook’ plus he wants a ‘swf’ file in the header any hints, tips or just pointer to the right page of snippets code or information would be really appreciated. Thanx Still learning php with all the wp hooks

    A recently-updated plugin shouldn’t break anything. The worst that can generally happen is that it won’t work well with the theme and you simply deactivate it again.

    [ I say “recently-updated” and “generally” because if you try to use a plugin that was designed for a version of WordPress from several years ago and which hasn’t been through the recently-improved plugin review process (in the last couple of years), then yes, you could do some damage. But stay away from those plugins and you’ll be fine. And you have a backup, right? ]

    Anyway, Custom sidebars has a 4.6 star rating, was updated a couple of months ago, and has been downloaded over 350,000 times, so I think you can be pretty certain it won’t break anything.

    Still learning php with all the wp hooks

    If you’re completely new to it all, I wrote WordPress Actions, Filters, and Hooks : A guide for non-developers, which might be useful.

    Thanks ElectricFeet you’ve been an absolute star with a couple of my WP projects & I have you Guide bookmarked. Yes have a back up & as per anything IT it seems the more you learn the more you realise you don’t know. Will let you know when I have this site the way it should be 🙂

    Hello everyone.
    I would like to set 3 featured pages in a page other than the front (ex. About). Because I’m a newbie, can someone explain the code above with the filters in which file do I apply it? Or if there’s another simpler way to do this.
    Thanks in advance.

    Moderator Andrew Nevins


Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Featured Pages on another page other than home’ is closed to new replies.