• Resolved MJ-Jazze

    (@mjtdi3)


    Hello. I am now trying to finish my Welcome Post for the front page, and I see that any formatting in the actual post (like paragraph breaks) is not showing on the front page of the site. You helped me overcome a similar issue with events; can you please tell me how I can adjust the code in index-one.php so that the formatting will remain true to how the post is created?

    That would be amazingly helpful.

    You can see what I mean at https://www.tdi3.org.

    Thank you so much.

Viewing 7 replies - 1 through 7 (of 7 total)
  • To clarify, you’re talking about the text that begins “This site is still under construction; your patience is appreciated. Anticipated completion date: before 30 June 2014.”, correct? On index-one.php, do you call the_excerpt() or the_content()? By default, the_excerpt() automatically strips HTML tags from the displayed excerpt.

    Thread Starter MJ-Jazze

    (@mjtdi3)

    Stephen – Yes, that’s the text indeed. Thank you for replying!

    I am not a PHP programmer, by a long shot. I can do no original work, but I am very skilled at copying what people tell me to do. ??

    Below is the section of code that I THINK is impacting this issue, but I could even be wrong about that. It is the standard index-one code and I have made no changes. So the default is causing the problem, and that’s what I need to change. Does that help?

    Happy to have any help on this (as it is driving me crazy!). I want it to look like the post looks; click on the word “Welcome” and the proper formatting is there. I have also set the excerpt length to 2000 characters in the Theme Options. There seems no way to prevent it through Theme Options from doing an excerpt.

    <p><?php echo accesspresslite_excerpt( get_the_content() , $accesspresslite_welcome_post_char ) ?></p>
    <?php if(!empty($accesspresslite_settings[‘welcome_post_readmore’])){?>
    ” class=”read-more bttn”><?php echo $accesspresslite_settings[‘welcome_post_readmore’]; ?>
    <?php } ?>
    </div>

    Theme Author Access Keys

    (@access-keys)

    <p><?php echo accesspresslite_excerpt( get_the_content() , $accesspresslite_welcome_post_char ) ?></p>

    To

    <p><?php the_content(); ?></p>

    Thread Starter MJ-Jazze

    (@mjtdi3)

    Thank you so much. I am very happy with my theme choice and your excellent support.

    I have done this too and it works, but now I lose the read more function on the welcome page.

    I would like to find a way to use the read more button so that my front page is not too long, but they can press the read more and get the full content on the next page.

    Help please.

    Thread Starter MJ-Jazze

    (@mjtdi3)

    Kris,
    Based on my experience, my advice would be to create two Welcome posts, with slightly different names.

    Make the first one short enough that it fits on the home page as is. At the end of it, type the words “Read More” with a “heading 2” and bold format (for example) or add a graphic/picture/button-looking-thing that says “read more.” Hyperlink either the text or the graphic to the second Welcome post.

    This will take care of the problem without requiring any additional code.

    Hope that’s helpful.
    Margaret

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Formatting of Welcome Post – Lost on Front Page’ is closed to new replies.