Celebrating 7 Years! Get up to $30 off GeneratePress Premium!

[Support request] Do I need a Custom Template to import a html (Mobirise AMP) page ?

Home Forums Support [Support request] Do I need a Custom Template to import a html (Mobirise AMP) page ?

Home Forums Support Do I need a Custom Template to import a html (Mobirise AMP) page ?

  • This topic has 1 reply, 2 voices, and was last updated 3 years ago by Tom.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #563624
    Eddy

    Hi,

    Lately I have been using a freemium app called http://www.mobirise.com. I created an AMP page using the app and now want to import/paste this into a page https://github.com/accessinto/goutos/blob/gh-pages/index.html into my Generatepress themed WP site. To do so I need to create a custom page template.

    I copied the Template code from Generatepress (copy below) however I seem to need some help as to the modification of the template. Here an example of the AMP html page that was generated (that I like to paste). (Image urls I intend to replace with Cloudinary CDN urls).

    <?php
    /**
    * The template for displaying all pages.
    *
    * This is the template that displays all pages by default.
    * Please note that this is the WordPress construct of pages
    * and that other ‘pages’ on your WordPress site will use a
    * different template.
    *
    * @package GeneratePress
    */

    if ( ! defined( ‘ABSPATH’ ) ) {
    exit; // Exit if accessed directly.
    }

    get_header(); ?>

    >
    <main id=”main” <?php generate_main_class(); ?>>
    <?php
    /**
    * generate_before_main_content hook.
    *
    * @since 0.1
    */
    do_action( ‘generate_before_main_content’ );

    while ( have_posts() ) : the_post();

    get_template_part( ‘content’, ‘page’ );

    // If comments are open or we have at least one comment, load up the comment template.
    if ( comments_open() || ‘0’ != get_comments_number() ) : ?>

    <?php comments_template(); ?>

    <?php endif;

    endwhile;

    /**
    * generate_after_main_content hook.
    *
    * @since 0.1
    */
    do_action( ‘generate_after_main_content’ );
    ?>
    </main><!– #main –>

    <!– #primary –>

    <?php
    /**
    * generate_after_primary_content_area hook.
    *
    * @since 2.0
    */
    do_action( ‘generate_after_primary_content_area’ );

    generate_construct_sidebars();

    get_footer();

    Hope you can help me configure the template file for this particular purpose, or perhaps alternative best practices (turn off elements?) ?

    Thanks in advance, have a great day!!

    Eddy, The Netherlands

    GP Premium 1.6.2
    #563959
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    What exactly needs to be adjusted in the template? Are there any instructions for that plugin that showcase the necessary changes?

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.