2

Is it possible to force the WordPress Theme Customizer to load a specific page? Or a page template?

What about sample content. So instead of loading the home page content load dummy content that will help the user understand what it will look like with typical content instead of the content that's there right now.

I haven't tried anything and am looking for some suggestions where to start. Perhaps some hooks to look at.

2
  • 1
    Please add more detail to this question. For example, what have you tried?
    – s_ha_dum
    May 20, 2014 at 19:46
  • Hi @s_ha_dum I haven't tried anything yet. I don't know where to start at this point. I would love to know if someone has tried something like this before. I just added some more detail to the Q. :)
    – BFTrick
    May 21, 2014 at 20:11

1 Answer 1

5

Yes, you can definitely make the customizer load a specific page. You can also set a return page. You can do this with the query strings url & return. You need to pass encoded urls for these to work. So instead of loading http://yoursite.com/wp-admin/customize.php you will want to load http://yoursite.com/wp-admin/customize.php?url=http%3A%2F%2Flocalhost%3A8888%2F%3Fpage_id%3D2

In my example the customizer will load the page with page id = 2.

You can do the same for the return page with the return parameter.

See the wp-admin/customize.php file for more info.

1
  • 1
    This still works and should be the answer. :)
    – WebElaine
    Jan 3, 2020 at 20:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.