Skip to content

drannex42/NoPo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 

Repository files navigation

NoPo

NoPo - No Post, Allows you to block a specific tagged post from being seen on your tumblr homepage. Created by Macleod Sawyer (link to blog here)

Update: If your theme currently has < article > in the code for posts, this method will not work till I rework it. Fixed the issue. scroll down to see the fix!

How to Install:

1. Go to the theme editor for your blog.
2. Click on "Edit Theme"
3. Scroll Down till you see </ head> (trust me its there) paste the following code ABOVE IT
4. Insert the following code:
<style>
    {block:IndexPage} 
    .x {
        display:none;
        }
    {/block:IndexPage}
    
    {block:TagPage}
    .x {
        display:block;
        }
  {/block:TagPage}
</style>

(be sure to change 'x' to the tag name you are going to tag the posts to hide from your theme):

5. Directly after {block:Posts} there is a second div, like this
<div class="post">  (commonly called entry)

(the value of 'post' may be called something different as well)

6. Add to the 'post' class (or whatever your theme has instead called it) the following:
 {TagsAsClasses}

so it looks similar to this:

 <div class="(whatever you found in step 7) {TagsAsClasses}">

The space between ) and { is very important.

You're done!

Now anything you tag with the tag you selected in step four in the css will no longer show up on the first page on your blog! (but will show up on permalinks like /post/94769233934/x/, and tagged pages like /tagged/x/!

If you use a two+ column theme and the above only loaded one column.

Follow ALL of the above steps and then please continue on:

In some themes that are 2+ columns we arriver with a bug and as per my usual self, I made a work around, that does just that, it works around the issue instead of fixing it.

7. Right before {block:Posts} paste one of the following:
{block:IndexPage}
<div class="(insert whatever you found in step 7)">
<small><a href=""></a></h2></small>
</div>
{/block:IndexPage}

or

{block:IndexPage}
<div class="(insert whatever you found in step 7)" style="visibility:none;">
<small><a href=""></a></h2></small>
</div>
{/block:IndexPage}

If you use a theme that has <article> tags for the posts:

8. find the part of the theme that says {block:Posts} <article class="

add this right after class=":

{TagsAsClasses}*

*don't forget to add a space at the end!

You're done! (hopefully)

If you have any issues please contact me on the issues page on here, on facebook, or on my tumblr (although I may or may not respond on there).

Follow me on tumblr: http://mxcleod.tumblr.com
Follow me on twitter: twitter.com/mxsawyer

About

No Post, Allows you to block a specific tagged post (for example "x") from being seen on your tumblr homepage/theme but still be visible to your followers on your dashboard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published