• mysticmatt

    (@mysticmatt)


    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 : https://road-to-liberty.org/graphx/wp.jpg

    How to solve these problems? Thank you

    Mystic Matt

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mysticmatt

    (@mysticmatt)

    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>

    moshu

    (@moshu)

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

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

    Thread Starter mysticmatt

    (@mysticmatt)

    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?)

    moshu

    (@moshu)

    (I have many blogs ??

    You will be surprised what a google search can do for you:
    https://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.

    Thread Starter mysticmatt

    (@mysticmatt)

    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 https://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

    Thread Starter mysticmatt

    (@mysticmatt)

    up*

    Please, someone could help me ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘A space : how to delete it ? how to show some….’ is closed to new replies.