Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #16238

    Hello, I am trying to create a custom page templates based off the loop-page-mini.php. I have found in register-admin-metabox.php where I register the option so it shows up on the edit page -> layout selection drop down. However I cannot seem to make that page show up properly.

    i think I am missing tweaking something somewhere so it grabs the new template an reads it. I thought it might be with page.php as that file has reference to mini, but I cannot seem to make it work.

    please advise what needs to be done in order for this to work.




    Nudge.. anyone??

    i just want to duplicate the Page Mini layout with some variations. Is there a way to do this?

    suppose I could “if page” the default if nothing else?





    Personally, instead of worrying about editing register-admin-metabox.php I would save page.php as a page-nameofmytemplate.php then on line 2 add the template name like this.

    /* Template Name: New Template */
    global $avia_config;

    After that I would edit the template as needed. For example, replacing the code from lines 31 – 58 with the code found in includes/loop-page-mini.php.

    Once you’ve uploaded the new template, go to the page then on the right in the Page Attributes box select your new template from the drop down option under Template.



Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Registering Modified loop-page-XXXX’ is closed to new replies.