How to hide the facebox header for that particular facebox?

61 views Asked by At

how can i hide the particular header for the facebox, without disturbing the default method

function creatappstack(){
    jQuery.facebox({
        ajax: 'CreateAppStack.action'
    });
    if($('#pop_title').html("")){
        $("#pop_title").parent().css('display','none'); 
    }

}

the above code is not working

2

There are 2 answers

2
Felix On

Try to use:

if($('#pop_title').html() == ""){

instead of:

if($('#pop_title').html("")){
0
Barry Meijer On

If you are using the iFrame version of the Likebox (facebox) you can add this to the SRC url:

&header=false

If you are using another version, say the HTML5 version, you can use the attribute data-header. Like so:

data-header="false"

It is almost impossible to fix this through jQuery or JavaScript, because the like box will always be iFramed and the contents are hosted by Facebook. More information about the like box and his settings, you can find here: https://developers.facebook.com/docs/plugins/like-box-for-pages