Reputation: 1
Is anyone else having trouble submitting themes to Tumblr? I have had this problem for two weeks now.
Whatever I try in the "Source code" field here https://www.tumblr.com/themes/new comes back as "Invalid theme HTML".
I have even tried the example markup here https://www.tumblr.com/docs/en/custom_themes and that still returns as "Invalid theme HTML".
Is there something wrong with the service at the moment? Do I need to use a particular combination of browser / OS?! I have tried with Chrome and IE11 on Windows.
I have contacted Support and they have replied asking me to send them a screenshot.
Upvotes: 0
Views: 4428
Reputation: 1653
There’s a number of things that can cause your theme to get rejected, and unfortunately there’s no error message other than “you messed something up” so it’s not always easy to figure out the error.
Here’s some things to try:
<!DOCTYPE html>
, even though Tumblr always inserts a doctype anyways.html
, head
, and body
tags, even though they’re usually optional. Tumblr uses </head>
to place the OpenGraph / Twitter card meta tags, for one.{RSS}
in your theme bare would be invalid).Example HTML including these things:
<!DOCTYPE html>
<html>
<head>
<link rel="alternate" type="application/rss+xml" href="{RSS}">
<link rel="shortcut icon" href="{Favicon}">
{block:Description}
<meta name="description" content="{MetaDescription}">
{/block:Description}
<style>
{CustomCSS}
</style>
</head>
<body>
{block:Posts}
{block:Photo}
<img src="{PhotoURL-HighRes}" alt="{PhotoAlt}">
{/block:Photo}
{/block:Posts}
</body>
</html>
Upvotes: 0
Reputation: 11
I tried all kinds of things that didn't work. But it so happened that I'd just changed my email address and needed to verify it. Once I clicked the verification link, the invalid theme HTML error went away.
So I suppose if you see this error, it might be as bizarre and unrelated as that.
Upvotes: 1
Reputation: 1281
Make sure your theme contains the following tags:
<html>
<body>
{rss}
{favicon}
{customcss}
{metadescription}
{photoalt}
I had the same problem as I was missing {CustomCSS}
Upvotes: 0
Reputation: 31718
Whenever you encounter an issue like this:
When it finally accepts it:
If it doesn't accept anymore:
Upvotes: 0