• Resolved jknetdesign

    (@jknetdesign)


    Yes this is already a child theme and I don not have a link because it is on MAMP.

    See Morten’s video on TwentyTen custom templates. http://www.youtube.com/watch?v=pvzx9k61X1M

    I started with page.php to name a custom template. What file should I pull the if statement from that is equivalent to loop=page.php?

    I’m intrigued with this professional method. Any php advice is appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter jknetdesign

    (@jknetdesign)

    Any one have some knowledge on this topic of custom page templates?

    WPyogi

    (@wpyogi)

    The Codex is very helpful on this — look up templates.

    Michael

    (@alchymyth)

    I started with page.php to name a custom template. What file should I pull the if statement from that is equivalent to loop=page.php?

    can you try to ask or explain that in different words? I have no idea what you mean.

    are you referring to ‘get_template-part()’ ??

    Thread Starter jknetdesign

    (@jknetdesign)

    Let’s say I want to add a custom class like a wider .entry-content on one page. I know I can add a style:

    .page-id-5 .entry-content {
    max-width: 217px;
    padding: 0;
    }

    But I want to do it the right way replace the content in a template with .entry-custom or something and control it through a page-home.php.

    Michael

    (@alchymyth)

    these might help:

    a:
    body_class() http://codex.wordpress.org/Function_Reference/body_class has a page template specific css class output:
    .page-template-templatefilename-php

    b:
    there is a conditional tag to check for the used page template:
    http://codex.wordpress.org/Conditional_Tags#Is_a_Page_Template

    Thread Starter jknetdesign

    (@jknetdesign)

    I’ve been using page.php for my templates and pulling statements from content-page.php. So I believe page.php is the file to rename custom-page.php and add a template name.

    So I believe page.php is the file to rename custom-page.php and add a template name.

    seems ok;

    create a copy of page.php, and save it as custom-page.php; then ad the Template Name part.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘TwentyEleven custom page theme, loop, child’ is closed to new replies.