Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2013-03-22 19:12:36
- -jw-
- Member
- From: fruitbelly, the Netherlands
- Registered: 2004-03-16
- Posts: 79
[SOLVED] strange link display
Hi there,
I have been away from textpattern for a while. Recently I started local development of a site with MAMP on TXP 4.5.4.
Every time I create a link eg. <a href="http://mus-atelier.dev">home</a>
this is displayed as
home (http://mus-atelier.dev)
nicely blue and underlined like good links should.
So how do I get rid of the url between parentheses. I guess this is kind of a ‘stupid’ question but I can’t seem to find the answer myself.
textile deletes my identity
Offline
Re: [SOLVED] strange link display
Can you link to a screenshot so I can see the problem?
Offline
#3 2013-03-22 21:23:17
- -jw-
- Member
- From: fruitbelly, the Netherlands
- Registered: 2004-03-16
- Posts: 79
Re: [SOLVED] strange link display
You can find a screenshot over here
thanks for looking at this.
textile deletes my identity
Offline
Re: [SOLVED] strange link display
If you’ve used parts of the default CSS file that was in the original theme, looks like you’ve pasted one of the rules from the media print
into the media screen
rules. Specifically look for one that is like this:
a[href]:after {
content: " (" attr(href) ")";
}
That is was is causing links to show. That rule should only ever be used in the print CSS.
Offline
#5 2013-03-22 22:47:36
- -jw-
- Member
- From: fruitbelly, the Netherlands
- Registered: 2004-03-16
- Posts: 79
Re: [SOLVED] strange link display
Well Sir, thank you. I wouldn’t have thought of that, even remotely
The strange thing is that removing the print.css resolves the problem. The rule I found in the print.css is this one:
a:link:after, a:visited:after {content:" (" attr(href) ")";font-size:90%;}
commenting out that rule also does the trick. I couldn’t find this rule in any other stylesheet.
Many thanks for the pointer
textile deletes my identity
Offline
Re: [SOLVED] strange link display
Well, something else is wrong too, because the browser shouldn’t even render anything from print.css on screen. It’s just for printed pages.
Offline
#7 2013-03-23 11:26:01
- -jw-
- Member
- From: fruitbelly, the Netherlands
- Registered: 2004-03-16
- Posts: 79
Re: [SOLVED] strange link display
there was a case of missing media attribute print… :(
Thanks for the help, you pointed me in the right direction. Problem solved, learned something.
textile deletes my identity
Offline
Pages: 1