简体   繁体   中英

How to hide the facebox header for that particular facebox?

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

Try to use:

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

instead of:

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM