Adding content on Contact Page

Discussion in 'Appointway WordPress Theme' started by simplyruschelle, Nov 14, 2013.

Thread Status:
Not open for further replies.
  1. simplyruschelle

    simplyruschelle New Member

    Joined:
    Jul 23, 2013
    Messages:
    18
    Likes Received:
    0
    Hello,

    I added content in the editor area of my Contact Page and nothing shows up.

    Checked the template-contact.php and the code - <?php the_content(); ?> - is included in it.

    Not sure how else to add contact to that page. Any thoughts?

    Thanks!
     
  2. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,

    Go to the template-contact.php file present in your theme directory and paste the code given below as instructed in the image.

    Code:
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php the_content(); ?>
    <?php endwhile;
    else: ?>
    <div class="post">
    <p>
    <?php _e('Sorry, no posts matched your criteria.', 'local-business'); ?>
    </p>
    </div>
    <?php endif; ?>
    
    [​IMG]

    This will solve your issue.
     
  3. simplyruschelle

    simplyruschelle New Member

    Joined:
    Jul 23, 2013
    Messages:
    18
    Likes Received:
    0
    Thanks Piyush! That worked.

    Do have a quick follow up question. When I paste the text (copied from the 'text' are of WP) - which by the way doesn't show the html code any more like it used to - there is no line between the text. When I add <p></p> or <br></br> there is too much space between the text. And code &nbsp; doesn't work at all to provide spacing.

    I'm trying to add this to the page:

    I hope you have enjoyed the content found on this site! If you have questions or comments about our products, services or just want a bit more info about how to relax a bit more, please fill out the contact form below.
    Again, thanks for taking a look around the site!
    Love and Light
    Ruschelle

    With that exact spacing parameters. Yet getting this:
    I hope you have enjoyed the content found on this site! If you have questions or comments about our products, services or just want a bit more info about how to relax a bit more, please fill out the contact form below. Again, thanks for taking a look around the site! Love and Light Ruschelle

    Any idea how I can fix this? Thanks!
     
  4. simplyruschelle

    simplyruschelle New Member

    Joined:
    Jul 23, 2013
    Messages:
    18
    Likes Received:
    0
    Forget it. Looks like I figured it out. Used this and it seems to work:

    <html>
    <div>I hope you have enjoyed the content found on this site! If you have questions or comments about our products, services or just want a bit more info about how to relax a bit more, please fill out the contact form below.</div>
    <div>
    &nbsp;</div>
    <div>Again, thanks for taking a look around the site!</div>
    <div>
    &nbsp;</div>
    <div>Love and Light</div>
    <div>
    &nbsp;</div>
    <div>Ruschelle</div>
    <div>
    &nbsp;</div>
    </html>
     
Thread Status:
Not open for further replies.

Share This Page