by kaspir » Fri Mar 02, 2018 6:31 am
Well that looks cool toggle button, i just tried it and it works perfectly! But sadly, no that's not what I need. I need to hide divs in a forum template.
If you check out the link I left in last post, I want to hide the whole section where the moon and search forums box is.
Sorry if I was confusing, my scripts are working to hide elements on wordpress, but same script won't work to hide on forum.. so I guess I need something special for iframe.
Furthermore, I've discovered another problem with the iframe, when viewing it, it also has stopped a phpbb extension script stop working, loaded thru the overall_footer_after event that does this, it's for a floating navigation bar (damn it you really should visit my site more!):
Code: Select all
<script type="text/javascript">
jQuery("document").ready(function($){
var nav = $('#nav-main');
$(window).on('scroll', function() {
if ($(this).scrollTop() > 180) {
nav.addClass('fixedtopbar');
} else {
nav.removeClass('fixedtopbar');
}
});
});
</script>
As you can see, it's another element edit, that does not work on iframe. Sorry.. lol I'm always finding the complicated tasks.
edit: also there are these errors:
http://prntscr.com/ilq0ci
Took a snapshot of what I want it to look like, that is after I can get the two elements to hide on iframe:
http://prntscr.com/ilq2xz
Well that looks cool toggle button, i just tried it and it works perfectly! But sadly, no that's not what I need. I need to hide divs in a forum template.
If you check out the link I left in last post, I want to hide the whole section where the moon and search forums box is.
Sorry if I was confusing, my scripts are working to hide elements on wordpress, but same script won't work to hide on forum.. so I guess I need something special for iframe.
Furthermore, I've discovered another problem with the iframe, when viewing it, it also has stopped a phpbb extension script stop working, loaded thru the overall_footer_after event that does this, it's for a floating navigation bar (damn it you really should visit my site more!):
[code]<script type="text/javascript">
jQuery("document").ready(function($){
var nav = $('#nav-main');
$(window).on('scroll', function() {
if ($(this).scrollTop() > 180) {
nav.addClass('fixedtopbar');
} else {
nav.removeClass('fixedtopbar');
}
});
});
</script>[/code]
As you can see, it's another element edit, that does not work on iframe. Sorry.. lol I'm always finding the complicated tasks.
edit: also there are these errors: http://prntscr.com/ilq0ci
Took a snapshot of what I want it to look like, that is after I can get the two elements to hide on iframe: http://prntscr.com/ilq2xz