Hide homepage posts via JS

1

I use BLOGGER and wanted to ask you for help from JS to give me a solution to my problem. Next, I want to hide posts that are on a particular homepage bookmark! Can you understand !? All posts placed on the Newsboard wanted them to be hidden from the main blog feed. That way all other posts would appear, except those that I put with the "News" marker. I think you got it right now!?

I have tried to use the code below, but it does not work for several reasons. So I think the solution should be done differently, with JS maybe. Someone who can help me?

<b:loop values='data:posts' var='post'>
<b:if cond='data:post.labels'>
<b:loop index='labelcount' values='data:post.labels' var='label'>
<b:if cond='data:labelcount &lt; 1'>
<b:if cond='data:label.name == &quot;Notícias&quot;'>
<b:include data='post' name='post'/>
</b:if>
</b:if>
</b:loop>
</b:if>
</b:loop>
    
asked by anonymous 05.01.2016 / 10:53

1 answer

0

Friend the solution does not need to arrive in JS yet, you can very well hide this content with CSS. Just set an ID on the part you want to take and in CSS you refer to it and do the following:

#idParte {
    display:none;
}
    
05.01.2016 / 11:37