Hello everyone from a new blogger tutorials series of articles. The plugin that I will explain this time is also a really useful plugin.. This add-on is like this: You write your article in a normal way, but after your article is finished, your article is not visible in the direction of the link . So when you click on this link, your article will open directly.. And when you click on the link again, your articlecloses. In short, if you want to make differences on your blog, this plugin is for you.. Moreover, it is a really simple plugin in terms of installation.. If you want, I would like to move on to the explanation of the plugin.
First of all, let’s find the following code in the theme on our blog;
]]>
Then, from the code above first, let’s add the following codes;
.commenthidden {display:none}
.commentshown {display:inline}
Let’s find the code below;
Place the code below before the code above;
function togglecomments (postid) {
var whichpost = document.getElementById(postid) );
if (whichpost.className==”commentsshown”) { whichpost.className=”commenthidden”; } else { whichpost.className=”commentsshown”; }
}
And that’s it..
To apply this plugin, you need to write your article in line with the following code;
Toggle Post
When clicking the link, write your text that you want to be seen here.
Note: Do not forget to change the red text above.