• Resolved davy_yg

    (@davy_yg)


    Hi, I am developing a theme in which, after you enter the content in CMS you cannot see the paragraph spacing in it.

    After I switch to another theme with the same content. I can see the paragraph spacing quite clearly.

    What’s wrong with the themes that I have developed ?

    My Theme with no paragraph spacing

    It shows with no spacing even after I enter spacing in the paragraph already.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Doe your theme use <?php the_content();?>?

    the paragraph style’s margin and padding are all reset in style.css of your theme;

    you will need to set new appropriate values for possibly the #main or .post paragraphs.

    https://www.w3schools.com/css/

    Thread Starter davy_yg

    (@davy_yg)

    what kind of appropriate value ?

    This is just basic css:

    body
    {
    background-color:#d0e4fe;
    }
    h1
    {
    color:orange;
    text-align:center;
    }
    p
    {
    font-family:”Times New Roman”;
    font-size:20px;

    I am using this:
    <?php the_content(”); ?>

    I basically need to see the paragraph. Currently, all the text merge together.

    I basically need to see the paragraph. Currently, all the text merge together.

    this could be done by adding a bottom margin to the paragraph style;

    example (using your posted style section):

    p
    {
    font-family:"Times New Roman";
    font-size:20px;
    margin-bottom: 15px;

    https://www.w3schools.com/css/css_text.asp

    Thread Starter davy_yg

    (@davy_yg)

    I copy paste: the css to my style.css

    <p><?php the_content(“Read more…”); ?>… read more ></p>

    The paragraph still merge.

    simply make a new style and add this to style.css of your theme:

    example:

    #main p { margin-bottom: 15px; }

    then clear the browser cache to get the changes to take effect in the browser – press ‘CTLR F5’ or ‘reload’ the web page.

    be aware that there are only three paragraphs in your sample content.

    this are all fundamental formatting problems – you might need to learn css to keep customising your theme: https://www.w3schools.com/css/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘spacing in content’ is closed to new replies.