• I used to have my blog with Movable Type and the person that wrote my template created a code or something that would allow me to enter:

    “<p class=”source”>100.5 The Zone “Outlaw” Contest Rules</p>”

    By typing that I had a little image that would show up in my post and said “Source” and had a link shown “100.5 The Zone…” and would take them to the HTML link I put in.

    Does WordPress have the ability to do this? If so, does anyone know how I would go about setting this up?

    Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • When you start using a new software the very fisrt thing that you should do: forget EVERYTHING about the old software. Do NOT try ever replicating the “familiar” features… or you will be unhappy for a lifetime.

    There is nothing like that in WP. We have no idea what that thing did – we never used MT.

    Now explain in plain English the end result you want to achieve, and maybe somebody can help you.

    Thread Starter sacrepub

    (@sacrepub)

    Thanks for the reply. I have forgotten everything! 🙂

    I would like to have, in the body of my post, an image that says “Source” with text next to it. The text needs to be a link.

    The text and link will change by post.

    Essentially this is a link that can take people to another site that I may have gotten my information from. Thus a “Source”.

    I know this can be done via HTML but I was looking for a short cut!

    Well, you will just need to copy & paste the CSS code for the source class in your MT theme to your WP theme’s style sheet. (that’s what it is supposed to be, if I understood you correctly that is.)

    Thread Starter sacrepub

    (@sacrepub)

    Thanks Haochi! That’s what I needed, well almost! It is working but something is not quite right.

    See a test post here:

    http://www.sacramentorepublicrat.com/criminal/testing/

    The text should be to the right of the “Source ->” image.

    The code I put in my style sheet is:

    source {
    margin: 0 10px;
    padding-left: 63px;
    font-size: 8pt;
    font-style: normal;
    font-family: Tahoma, Verdana, Helvetica, Arial, sans-serif;
    color: #333;
    background: url(/images/source_button.gif) no-repeat 0 0;
    }

    And I enter the following in the post:

    <p class=”source”>100.5 The Zone “Outlaw” Contest Rules</p>

    Thanks very much!

    Thread Starter sacrepub

    (@sacrepub)

    Anyone have any suggestions, please?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘“Source” Code’ is closed to new replies.