How do I add dots to my link?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BrettS
    New Member
    • Jan 2012
    • 3

    How do I add dots to my link?

    I'm trying to add 5 dots behind every link on a wordpress site. My code is below but when I try to put dots in, they are appearing on a new line.

    Code:
    <a href="<?php the_permalink() ?>" target="_blank"><?php echo intro_text(84); ?></a>
  • charles07
    New Member
    • Dec 2011
    • 45

    #2
    simply add 5 dots
    Code:
    .....<a href="<?php the_permalink() ?>" target="_blank"><?php echo intro_text(84); ?></a>

    Comment

    • BrettS
      New Member
      • Jan 2012
      • 3

      #3
      Behind meaning including the ..... at the end of the link.

      Comment

      • charles07
        New Member
        • Dec 2011
        • 45

        #4
        oh ok

        add five dots before the php tag <?php the_permalink() ?>

        Comment

        • BrettS
          New Member
          • Jan 2012
          • 3

          #5
          Nothing I've tried works. I want the dots after the link, not before.

          No matter where I put them they end up on a new line.

          Comment

          • charles07
            New Member
            • Dec 2011
            • 45

            #6
            can u just send the result u want as plain text (like mylink.....)

            Comment

            • brettl
              New Member
              • Sep 2007
              • 41

              #7
              You can use a little method like the one attached and concatenate it.

              Code:
              function fivedots(){
              	$dots =  '.....';
              	return $dots;
              }
              Then add this:
              Code:
              <a href="<?php the_permalink() ?>" target="_blank"><?php echo intro_text(84).fivedots(); ?></a>

              Comment

              • Marknut
                New Member
                • Apr 2010
                • 42

                #8
                This could be happening for quite a few reasons. First, check that you have enough room for both the link and the 5 .'s so that it's not wrapping. Second, check that there's no CSS giving the "block" display to your "a" tags ("display: block;"). If it's not either of those, it's still probably CSS that's giving you a hard time.

                Comment

                Working...