By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,775 Members | 1,399 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,775 IT Pros & Developers. It's quick & easy.

How do I add dots to my link?

P: 3
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.

Expand|Select|Wrap|Line Numbers
  1. <a href="<?php the_permalink() ?>" target="_blank"><?php echo intro_text(84); ?></a>
Jan 19 '12 #1
Share this Question
Share on Google+
7 Replies

P: 45
simply add 5 dots
Expand|Select|Wrap|Line Numbers
  1. .....<a href="<?php the_permalink() ?>" target="_blank"><?php echo intro_text(84); ?></a>
Jan 20 '12 #2

P: 3
Behind meaning including the ..... at the end of the link.
Jan 21 '12 #3

P: 45
oh ok

add five dots before the php tag <?php the_permalink() ?>
Jan 21 '12 #4

P: 3
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.
Jan 24 '12 #5

P: 45
can u just send the result u want as plain text (like mylink.....)
Jan 24 '12 #6

P: 41
You can use a little method like the one attached and concatenate it.

Expand|Select|Wrap|Line Numbers
  1. function fivedots(){
  2.     $dots =  '.....';
  3.     return $dots;
  4. }
Then add this:
Expand|Select|Wrap|Line Numbers
  1. <a href="<?php the_permalink() ?>" target="_blank"><?php echo intro_text(84).fivedots(); ?></a>
Jan 24 '12 #7

P: 42
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.
Jan 24 '12 #8

Post your reply

Sign in to post your reply or Sign up for a free account.