Basic code to copy paste for a Page Template in WordPress

7 replies
I'm creating a Page Template in WordPress for sales pages.

I don't know much programming stuff at all.

Is there a page of code I can copy-paste in to my page template file?

I can then go in and make changes, like change margin size, fonts for headings and body copy, font sizes, etc.
#basic #code #copy #page #paste #template #wordpress
  • Profile picture of the author mlab
    If you are using WordPress and the default theme, you may want to start with these instructions

    How To Create A Custom Page Template In WordPress | The Expand2Web Blog

    May I offer another option? If you " don't know much programming stuff at all.", why not use the free or paid themes that have these options built-in?

    If your site is basically comprised of a squeeze/sales page - there are some scripts in the WSO threads above.

    When you pick your theme - pick a simple one to use, ok?
    You can spend a lot of time customizing and/or learning a theme - or you can get on with your sales and marketing today.

    Hope this helps!
    {{ DiscussionBoard.errors[6705981].message }}
  • Profile picture of the author vrtechnologies
    Hello,

    So the easy way you need to create new header file an footer and include these files in new template.
    And also change the class and create new css...

    Thanks
    Ashish
    {{ DiscussionBoard.errors[6708430].message }}
    • Profile picture of the author Jeremy Lebre
      Here's an example:

      PHP Code:
      <?php get_header(); ?>

      <div id="page-wrapper">
      <?php if (have_posts()) while (have_posts()) : the_post(); ?>
      <?php the_title
      ('<h1>''</h1>'); ?>

      <?php the_content(); ?>

      <?php if (current_user_can('edit_post'get_the_ID())) { ?>
      <p class="aligncenter"><?php edit_post_link('Edit'); ?></p>
      <?php ?>

      <?php if (comments_open()) { comments_template(); } ?>
      <?php 
      endwhile; ?>
      </div>

      <?php get_footer(); ?>
      I can then go in and make changes, like change margin size, fonts for headings and body copy, font sizes, etc.
      Do this via the style.css file.
      {{ DiscussionBoard.errors[6726253].message }}
  • Profile picture of the author rising_sun
    Banned
    You can edit it form:
    dashbord>appearance>edit,and then you can edit .css file.
    You can also use it by dreamweaver,as a full site.
    {{ DiscussionBoard.errors[6729579].message }}
  • Profile picture of the author sinbadissailor
    ya choose which theme have the built in options available ..if you don't wanna learn..just wanna go through your sales page..
    Signature
    {{ DiscussionBoard.errors[6729851].message }}
  • Profile picture of the author brianng
    applegreensnake,
    You can try webhttrack or teleportpro. Download the whole page, use dreamweaver / bluefish / firebug or whatever you love; edit them css and you're done.
    I've been there, quite a funny job, and it sells
    {{ DiscussionBoard.errors[6747540].message }}
  • Profile picture of the author Eden Group
    In the default WordPress installation, there are a couple of themes you can choose from. You can find the themes in your WordPress administration area > Appearance > Themes.

    You can change the theme simply by clicking on the desired theme and then Activate <theme name>.
    {{ DiscussionBoard.errors[6747564].message }}

Trending Topics