3

Make special pages of WordPress theme?

 3 years ago
source link: https://www.codesd.com/item/make-special-pages-of-wordpress-theme.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Make special pages of WordPress theme?

advertisements

I'm trying to figure out how a certain WordPress sets things up. I'd like to have a special page where I could make WP calls and interact with the theme, without affecting anything else.

I just making test.php and putting it into my theme's folder, but that doesn't work.


@Eliran provides one possible option, but you could also add a page in the back-end of WP, just make sure it has the slug 'test', and change your 'test.php' filename to 'page-test.php'. If you're worried about the public seeing this, set the page visibility in the admin to 'private'.

Edit:

to move your understanding along a little further also, you should review the way that WordPress determines what file to grab to render a particular URL. This can be pretty confusing to start with, so be patient if you're not familiar with it, but it's at the heart of designing WP themes. I'll link to the examples, and if you scroll down a little there's a diagram that, along with the text, will help you see how WP is 'thinking'. http://codex.wordpress.org/Template_Hierarchy#Examples

Related Articles

Determine layouts per page for Wordpress themes

I would like to determine differenent page layouts for pages within Wordpress. As stated in the thread Wordpress pages theme/layout it is uggested to use templates. But for customer convenience, I would like to have a layout on the WP admin page wher

Make a page in wordpress that does not affect other pages

The problem is that all the pages have a content_container of a set width of 1056px and I want all pages to have the 1056px set width except for the home page in which I need a content container that spans over the whole page from left to right.Look

How to save Css from the html page in the wordpress theme

I am new to wordpress development. I was trying to convert a responsive html page into wordpress theme but CSS for the html page is not working perfectly in wordpress theme. Please have a look at below images: Html page header wordpress theme header

Rapid development of the Wordpress theme

I tried looking for a quick and dirty getting started with wordpress theme development tutorial. Now I know how to go and discover things myself, I'm looking for "top ten FAQ for programmers" when starting wordpress development. (For example, Tu

Include the wordpress theme in a customized php page

I need to include a custom PHP page in Wordpress. So what I need to do is just to show this custom php page using the Wordpress theme installed on that Wordpress. Does not mind which theme is up, the custom php page will have to be shown under any th

Removing the wordpress theme from particular pages

I have a custom Wordpress theme that includes a header, footer, and a few other elements. It's great, but there are a few pages that I want to style completely differently. One of them is, for example, a landing page, where having the typical header

Wordpress Theme Pages

I'm developing a wordpress theme from a photoshop PSD file. The theme has multiple pages I'm trying to add. I've created a custom page template and that works fine, but the page has multiple content areas. It has three divs separated by borders. Righ

Delete page title from Nav menu - Twenty Ten Wordpress Theme

How would I go about removing a page title from the Twenty Ten Wordpress theme? The site is a Christian radio station on my hometown and they have a page called "Going to Heaven?" that makes the nav menu too wide and therefore moves other conten

Is there a framework for a one-page wordpress theme?

I'm looking for a framework for a one page WordPress theme because I'm planning to make a one page theme for a customer. I'd also love to know if there is any tutorial for that. I don't know how to organize all of the pages to show up on a single pag

Problem with customizing the Wordpress theme with the services configuration under the Business page

I am setting up a wordpress page using spacious theme. I have got 5 services which need to be placed in one single row, but the theme allows only 3 services to be one row and other two get on new line. As div and featured images are added using servi

The Wordpress theme forces the footer at the bottom of the page for short content pages

I'm editing a wordpress theme. I can't seem to get the footer div to stick to the bottom of the page when there's not a lot of page content. example here: http://openstrings.co.uk/?page_id=148 I've read loads of tutorials about a wrapper with min-hei

Adding a pagination is a custom archive page on WordPress (Thesis Theme)

I'm using the following php code on a page to show 10 posts per page from a single category. function my_page_of_posts5() { if (is_page('10')) { $custom_loop = new WP_Query('posts_per_page=10&cat=9'); echo '<div class="my-archives"><

Change WordPress Theme font & ldquo; Zerif Lite & rdquo;

I'm having trouble changing the font on a website I built using the WordPress theme Zerif Lite. The page itself is elektripoisid.ee - I want to change the font in the "testimonial" section or as its displayed there: "Teenused". That we

Protect the wordpress theme with validation of the license key

I'm planning to develop some professional Wordpress Themes and would like to protect it using license keys, is it possible? If so, would any one be willing to link to some posts or articles to help me get started?You could set up a database on your o

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK