Unable to add empty anchor tag in CMS

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/26/2011 5:48:06 PM
Gravatar
Total Posts 21

Unable to add empty anchor tag in CMS

When trying to add an "empty" anchor tag to an HTML Content feature, I run into two problems

1. If I try to update the Content with: <a href="javascript:;" class="whatever"></a>
 after clicking update viewing the page, then going back into the feature, the anchor tags a no longer there.

2. If I supply an empty space: <a href="javascript:;" class="whatever">&nbsp;</a>
Then I see two underscore characters on the top of my page:

_ _

Any ideas why I can't add empty anchor tags, or why the non-breaking space character adds underscore characters? Thanks!

10/27/2011 4:59:12 PM
Gravatar
Total Posts 2253

Re: Unable to add empty anchor tag in CMS

The editors can get a little over-zealous at times. It is difficult to get them to allow an empty element of any kind.

Using the non-breaking space usually does the trick and I haven't seen the behavior you're describing with the underscore characters. Can you give me a link to your site so I can see it in action?

You can also try placing actual text, something meaningful so it will make sense to the search bots, and then use the text-indent CSS property to hide the text. Also, try replacing the href with onClick.

HTH,
Joe D.

10/31/2011 2:38:31 PM
Gravatar
Total Posts 21

Re: Unable to add empty anchor tag in CMS

Thanks for the reply. I ended up getting it to work by supplying an actual blank space:

<a href=""> </a>

I'm sure adding text would work, but I'm not able to in this case because the tag is the "play button" for a jPlayer audio player and I'm adding a background image in the css for the button.

Thanks again!

You must sign in to post in the forums. This thread is closed to new posts.