How to delete "Upload a file" button?

Hi, I’m struggling to delete “Upload a file” button on “Add photo” of BPAP.

I’ve already tried several ways to delete suspicious code but all of them didn’t work.

Could anybody, please, teach me how I can delete “Upload a file”??

thanks,

  • digitsoft
    • The Crimson Coder

    I haven’t tried this, but it’s what I’d try first.

    1. Backup and then edit /buddypress-activity-plus/js/external/fileuploader.js

    2. Remove line 489:

    '<div class="qq-upload-button">Upload a file</div>' +

    LMK if that does it for you…

  • Timothy
    • Chief Pigeon

    I have just tested on my install and the CSS worked fine. Can you put that on there again and then please provide me a link so I can see what is happening.

    You could also try:

    .qq-uploader {
    display: none !important;
    }

    Once I have a link if you leave the CSS there I can see if it is being overridden.

    I believe in the option digitsoft gave, you could clear out the whole function there, but I haven’t tested that option, because using CSS means you can keep it in a child theme which would be my preference.

    Take care.

  • shinta833
    • New Recruit

    Thanks very much for your suggestion, but it did not work for me again.

    this is all I customized of CSS.

    **************************************************************************************

    .bpfb_controls_container .qq-uploader { position:relative; width: 100%;}

    .bpfb_controls_container .qq-upload-button {

    display:block; /* or inline-block */

    width: 105px; padding: 7px 0; text-align:center;

    background:#880000; border-bottom:1px solid #ddd;color:#fff;

    }

    .bpfb_controls_container .qq-upload-button-hover {background:#cc0000;}

    .bpfb_controls_container .qq-upload-button-focus {outline:1px dotted black;}

    .bpfb_controls_container .qq-upload-drop-area {

    position:absolute; top:0; left:0; width:100%; height:100%; min-height: 70px; z-index:2;

    background:#FF9797; text-align:center;

    }

    .bpfb_controls_container .qq-upload-drop-area span {

    display:block; position:absolute; top: 50%; width:100%; margin-top:-8px; font-size:16px;

    }

    .bpfb_controls_container .qq-upload-drop-area-active {background:#FF7171;}

    .bpfb_controls_container .qq-upload-list {margin:15px 35px; padding:0; list-style:disc;}

    .bpfb_controls_container .qq-upload-list li { margin:0; padding:0; line-height:15px; font-size:12px;}

    .bpfb_controls_container .qq-upload-file, .bpfb_controls_container .qq-upload-spinner, .bpfb_controls_container .qq-upload-size, .bpfb_controls_container .qq-upload-cancel, .bpfb_controls_container .qq-upload-failed-text {

    margin-right: 7px;

    }

    .bpfb_controls_container .qq-upload-file {}

    .bpfb_controls_container .qq-upload-spinner {display:inline-block; background: url(“loading.gif”:wink:; width:15px; height:15px; vertical-align:text-bottom;}

    .bpfb_controls_container .qq-upload-size,.bpfb_controls_container .qq-upload-cancel {font-size:11px;}

    .bpfb_controls_container .qq-upload-failed-text {display:none;}

    .bpfb_controls_container .qq-upload-fail .qq-upload-failed-text {display:inline;}

    .qq-uploader {

    display: none !important;

    }

    }

    ******************************************************************************

    Could you please, again, tell me about my fault of customizing?

    Thanks

  • Timothy
    • Chief Pigeon

    I need to see your site so I can see where it is and why its being overridden.

    Once I have a link if you leave the CSS there I can see if it is being overridden.

    Can you put that on there again and then please provide me a link so I can see what is happening.

    Also what is the extra curly bracket for in your CSS?

    Thanks