- This topic has 1 reply, 2 voices, and was last updated 7 years, 4 months ago by
Tom.
-
AuthorPosts
-
April 30, 2018 at 3:06 am #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
April 30, 2018 at 10:06 am #563959Tom
Lead DeveloperLead DeveloperHi there,
What exactly needs to be adjusted in the template? Are there any instructions for that plugin that showcase the necessary changes?
-
AuthorPosts
- You must be logged in to reply to this topic.