Support » Fixing WordPress » Need link to a page's inner content

  • Hello Friends,
    I have a site
    http://ilifelink.com/
    On the first page this one has an iframe pointing to my WordPress site:
    http://www.drzarkov.com/blog/

    I would like to use the iframe, so it only shows the “inner” page of the blog site (no sidebars, etc).

    I have read something about landing pages, and similar, but I don’t know php.

    Any easy solution? Any pointer would be greatly appreciated.
    (Other than php I am pretty experienced developer)

    Thank you in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Without PHP skills, you are limited to finding a Plugin to do the job for you.

    I’d start with this search:
    https://wordpress.org/plugins/search.php?q=iframe

    As with all searches for plugins, I would recommend that you use a test WordPress site so that you can install a lot of plugins and test them to find the one that works best for you.

    That’s not what I was asking about.
    More like a “landing page” but I only want to be able to use it from an external page’s iFrame
    Thanks anyway

    Please don’t reject the notion so easily. For example, here is an iframe plugin that:

    Hide areas of the layout to give the iframe more space
    Show only specific areas of the iframe when the iframe is on a same domain

    https://wordpress.org/plugins/advanced-iframe/

    I am suggesting this approach as I cannot think of any way, without PHP skills, to get rid of the sidebars, headers and footers.

    Hi friends,
    I would like to re-phrase my earlier question to make it clearer.
    What I want is this:
    If I use the link:
    http://mywpsite.com?hideit=1
    Then I would like to see only the pape, no sidebar, no header, nothing else.
    Otherwise I want to see my “regular” WP site.
    While google-ing, I sound that I can parse the parameter “show” with something like this:

    if (isset($_GET['hideit'])) {
      $hideit = $_GET['hideit'];
    } else {
      //Maybe I don't need anything here
    }

    I have also seen thing like:
    .header {display:none;}
    and similar.
    Unfortunately I don’t know php / wp well enough to find the proper places for getting the “hideit” parameter, and and where to use the $hideit variable so it would conditionally hide the parts.

    Please be kind enough and tell me if this is really as easy as I think.
    TIA

    When I last looked at this seriously, some 7 years ago, I was thinking in terms of a Theme. But here is a solution that involves creating a new Template for your existing Theme.

    I haven’t tried this, but it looks promising.

    <?php
    /**
    * Template Name: Blank Page
    *
    */
    ?>
    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    
    <!-- page title, displayed in your browser bar -->
    <title><?php bloginfo('name'); ?> | <?php is_home() ? bloginfo('description') : wp_title(''); ?></title>
    
    <!-- add feeds, pingback and stuff-->
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <?php wp_head(); ?>
    </head>
    
    <body id="top">
    <div class='container_wrap' id='main'>
    <div class='container'>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php the_content(); ?>
    <?php endwhile; ?>
    <?php endif; ?>
    </div>
    <?php wp_footer(); ?>
    </body>
    </html>

    This was found in the comments of this post:
    https://premium.wpmudev.org/forums/topic/blank-wordpress-template-no-header-no-footer-no-sidebar

    In general, this seems to be a pretty good place to start for a Google search if you want to explore other ideas:

    wordpress no header footer sidebar

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need link to a page's inner content’ is closed to new replies.