Change tumblr theme?

I have this topic, but there is a problem:

I add the link for the links to the photographs under the link “Set the click link”, but then when I am on my blog and I click on the photograph, it does not direct me to the source URL. (it only directs If I look at the tumblr toolbar and click on the photo, but not when I go to my blog and click on the photo - no). My blog: colorinspirations.tumblr.com

For example, this blog I checked (http://color-fantasia.tumblr.com/) has this feature. Also, when I click on the name of my blog (COLOR INSPIRATIONS), it does nothing (for example, to go to the main page).

So please, if you can help with:

1) “Set the click-through link” and “Content source URL” will be the same. (I use the "Tumblr Post" extension for Firefox, and it only has the option "Set link to click on click." I need that when entering the information "Set link to click on click", "URL of the content source", to fill out automatically using the URL “Set a click link.")

2) When I click on the photo, it should direct me to the "source link" (it should be the same as "set the click link")

3) When you click NAME of the BLOG, it should go to the main page.

I would be very, VERY grateful if you could help.

+4
source share
1 answer

Enter the site name on the main page

To link the title of your site to the home page, replace

<div id="nameBlog"> {block:IfHeaderImageImage} <img id="imagetitle" src="{image:Header Image}"> {/block:IfHeaderImageImage} {block:IfNotHeaderImageImage} <h1>{Title}</h1> {/block:IfNotHeaderImageImage} </div> 

with

 <div id="nameBlog"> {block:IfHeaderImageImage} <a href="/" rel="home"><img id="imagetitle" src="{image:Header Image}"></a> {/block:IfHeaderImageImage} {block:IfNotHeaderImageImage} <h1><a href="/" rel="home">{Title}</a></h1> {/block:IfNotHeaderImageImage} </div> 

Source Link

See http://www.tumblr.com/docs/en/custom_themes#content-sources for documentation on how to link content sources in topics.

The variable {SourceURL} is replaced with the URL of your source. Therefore, you need to add <a href="{SourceURL}">…</a> around your content that needs to be linked. (Possibly) wrap this content in {block:ContentSource} … {/block:ContentSource} , which means that it will only be processed if there is a content source.

If you want to link the source at the bottom of the message (if any, with the source icon), you can use this :

 {block:ContentSource} <a href="{SourceURL}"> {lang:Source}: {block:SourceLogo} <img src="{BlackLogoURL}" width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" /> {/block:SourceLogo} {block:NoSourceLogo} {SourceTitle} {/block:NoSourceLogo} </a> {/block:ContentSource} 
+2
source

Source: https://habr.com/ru/post/1443731/


All Articles