Page 1 of 1

Custom Pages & Theming

Posted: Wed Jul 29, 2015 6:29 am
by gdelorey@mitcs.com
Hello -

We've developed a store locator that ties into the Affiliates functionality and created a new ASPX and codebehind page that sits inside a subfolder of the website. We are using the OneColumn.master page which inherits Base.master. However, the theme that is getting applied to that page is not the theme used for the rest of the website.

Do we have to configure something else to get the site theme to apply to custom ASPX pages? Or should we move our logic into a control and create the webpages in admin and pull in that control?

Thanks!
Greg

Re: Custom Pages & Theming

Posted: Wed Jul 29, 2015 10:02 am
by gdelorey@mitcs.com
Found the solution - in the web.config, there is a line that looks like this:

Code: Select all

<pages theme="Wireframe" enableEventValidation="false" validateRequest="false" clientIDMode="AutoID">
Simply change that to your theme and pages will now inherit the proper theme.

Re: Custom Pages & Theming

Posted: Wed Jul 29, 2015 11:56 am
by rmaweb
Hello Greg,

Also, if you want to change the theme on a specific aspx page, just add the Theme="" with you specified theme to the top of the page on the same line as where you declare that it inherits the layout page.