WordPress.org

Ready to get started?Download WordPress

Forums

A space : how to delete it ? how to show some.... (7 posts)

  1. MysticMatt
    Member
    Posted 8 years ago #

    Hello,

    I have a quite small problem. Before the title of my post, I inserted a cross † , but this one does not appear, it appears a question mark to the place.

    Furthermore, I put my title, and at once below, he has to have my message there. However, it does not work. It has to display as it:
    - title
    - message

    it so appears:
    - title
    - nothing
    - message

    SCREENCAPT : clik it : http://road-to-liberty.org/graphx/wp.jpg

    How to solve these problems? Thank you

    Mystic Matt

  2. MysticMatt
    Member
    Posted 8 years ago #

    My code:

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div <?php the_ID(); ?>>
    <div id="ziou">
    <?php the_date(); ?>
    <font color="#999999"><span style="color: #999999">xxx</span></font>
    <?php comments_popup_link("00CMNTS", "01CMNTS", "0%CMNTS") ?>
    </div>

    <?php permalink_anchor(); ?>

    <div > [ † ]
    <?php the_title(); ?>

    <?php the_content(); ?>

    <p align="right" >Mystic
    Matt
    at ">
    <?php the_time() ?>

    </div>
    <?php endwhile; ?>
    <?php next_posts_link('« Previous Entries') ?>
    <div >
    <div class="alignleft"> </div>
    <div class="alignright">
    <?php previous_posts_link('Next Entries »') ?>
    <?php endif; ?>
    </div>
    </div>

    </div>

    </html>

  3. moshu
    Member
    Posted 8 years ago #

    For special characters like that "cross" you should use html entities.

    You'll have to style your paragraphs not to have top margin.

  4. MysticMatt
    Member
    Posted 8 years ago #

    Thanks for your answer!
    I don't know what you tell about html entities? Have you an example please ?

    Have you an exemple for 'youll have to style your paragraphs' ? PLease ?

    Thank you again moshu ;-)

    I will credit you for your help! (have you blog?)

  5. moshu
    Member
    Posted 8 years ago #

    (I have many blogs ;)

    You will be surprised what a google search can do for you:
    http://www.google.ca/search?q=html+entities

    It seems you have a theme done by yourself, so I was assuming you know some CSS. Paragraphs <p> have by default top margins. Defining in your stylesheet
    p {
    margin-top: 0;
    }

    might be a solution, however, that would erase ALL the spaces between paragraphs... so your text would look ugly and difficult to read.
    Study other themes and their code - you'll notice the_content tag is often put inside a separate div (post or content or whatever) and define the style of that div as not having margin-top. In this way your paragraphs would remain "normal".

    And a general advice: if you are building your own theme, you better start learning some basic HTML and CSS, otherwise it won't work.

  6. MysticMatt
    Member
    Posted 8 years ago #

    Yes, thanks!
    I found the solution!

    But, in my comments-popup.php, i have the same problems with the space. Ive put the code margin-top in my stylesheet, and put a seperate div, but it doesn't work.There is a space between the message and the time of the message.

    The code:

    ===========
    [moderated - long code deleted.
    Don't post long code here, please!
    It is difficult to read and nobody really bothers to take a look at it. You can use http://pastebin.com or similar services - and post back with the URI.
    For posting small code snippets, please read carefully the instructions here below the text input area: the "backticks" usually are located on top-left of your keyboard, where ~ [tilde] is.
    ===========

    How to resolve that ? It's my last question :p

  7. MysticMatt
    Member
    Posted 8 years ago #

    up*

    Please, someone could help me ?

Topic Closed

This topic has been closed to new replies.

About this Topic