DiogoRedinDevelopment
DiogoRedinDevelopment Recent Posts Threads Started
572 posts
  • Located in Portugal
  • Contributed a blog post
  • Helped several times protecting Envato Market against copyright violations
  • Has sold $5,000+ on Envato Market
+4 more
DiogoRedinDevelopment says

Hi Everyone!

I’m validating the code of our theme, however I’ve a problem: The social share links don’t validate.

Here is the input code:

echo '<a href="http://twitter.com/home?status=';

   print(urlencode(the_title()));
   echo '+';
   print(urlencode(the_permalink()));

echo '">Share</a>';

and the output:

<a href="http://twitter.com/home?status=San Francisco police launch probe into iPhone case+http://beta.landpost.themesfever.com/san-francisco-police-launch-probe-into-iphone-case">Share</a>

Error given by the w3c validator:

Bad value … for attribute href on element a: Whitespace in query component. Use %20 in place of spaces.

How can I solve this?

DiogoRedinDevelopment
DiogoRedinDevelopment Recent Posts Threads Started
572 posts
  • Located in Portugal
  • Contributed a blog post
  • Helped several times protecting Envato Market against copyright violations
  • Has sold $5,000+ on Envato Market
+4 more
DiogoRedinDevelopment says

Problem solved :P

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by