Some Wordpress Plugin Help:

7 replies
Im looking for a function that will stop the entire WP theme and content form loading so that I can load my own full HTML in its place.'

I had a look at the WP codex but Im not having any luck with my searching. Im sure there must be a way to do this.

To reiterate basically there is a WP page (dont worry about the hook or anything that ids the page) .. I want to stop all the content and theme from loading, header, content, footer, everything and then totally replace it with my own HTML

Any assistance would be great.
#plugin #wordpress
  • Profile picture of the author Jeff Hope
    Hi,

    If the page ID is, say, 14, you can create a template named page-14.php that contains anything you want, place it in the theme folder, and then WP will automatically select that template to display for that page.

    It can be done with a plugin as well, but not as easily or as quickly.

    Jeff
    {{ DiscussionBoard.errors[8189174].message }}
  • Profile picture of the author dad2four
    You can also load wordpress on your page by including wp-load.php I think it is.

    This gives you access to wordpress functions and such.
    Signature
    {{ DiscussionBoard.errors[8192034].message }}
  • Profile picture of the author David V
    Do not include wp-load.php 99% of the time. If you do, do it correctly.

    This would be wrong: include "../../../wp-load.php"; yet strangely enough LOT's of people do this, go figure...

    A long standing great article by "Otto" will help clear this up.
    {{ DiscussionBoard.errors[8192548].message }}
  • Profile picture of the author David V
    Originally Posted by FirstSocialApps View Post

    Im looking for a function that will stop the entire WP theme and content form loading so that I can load my own full HTML in its place.'
    Trying to stop WP from loading is a really hard way just to load your own html in it's place.

    Either just have the link (whatever it may be) link to the html page
    or
    Create a custom page template that matches what your doing with the html page design.

    If you want to know the WordPress loading order these 2 codex links will get you going
    ....and a article/graphic by Rarst

    Codex - Query Overview
    Codex - Plugin API/Action Reference
    {{ DiscussionBoard.errors[8192604].message }}
  • Profile picture of the author RobinInTexas
    Originally Posted by FirstSocialApps View Post

    Im looking for a function that will stop the entire WP theme and content form loading so that I can load my own full HTML in its place.'

    Follow the instructions embedded on the lines within the code below after the "//"s

    Code:
    <?php
    /*
    Template Name: Nothing Page
    
    ^^ this is important you can name the template anything you want. 
    "Template Name:" must be exactly as above 
    
    You need to "Add New Page" from the wordpress dashboard. 
    
    You just need to fill in the 'Page Title' and you need to go into "Page Attributes" and select the template you named above. The Page name is important, and it will be in the URL if your permalinks include /%postname%/
    I suggest you place any images in a directory off the wordpress root called "images and make sure all the image links are correct. 
    */
    ?>
    
    // insert all of your html page between here 
    
    
    // and here you can include any html markup or php code you like
    
    copy everything between the <?php and ?> including the <?php and ?>to the file and save it in your wp-content/themes/youractivetheme subdirectory as "pick-a-unique-name.php"
    Then go to the Add New Page in your dashboard and add a new page called "WhateverYouWant" "MySqueeze" or "NoWordPressHere"

    don't add any content select template to use and pick "Nothing Page" (or whatever you put for Template Name

    Save the page
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[8193900].message }}
  • Give me a call 1-800-219-1314 EXT 0 I'll give you a hand. But we may need to go the manual route...

    WILL-
    Signature
    WebDevelopmentGroup NYC & CA- Small Business Web Development, App Development, WordPress Development, Graphic Designs, Online Marketing, Local Marketing & more!. "Call us 1.800.219.1314 or message us!". Visit us today! "Now On Live Chat Mon-Fri.". www.WebDevelopmentGroup.org
    (Whitelable our Services)
    ===================================
    ==> #1 OFFLINE MARKETING FORUM ON THE WEB! <==
    www.OFFLINEMARKETINGFORUM.com
    (Register Now)
    {{ DiscussionBoard.errors[8194296].message }}

Trending Topics