css – Cannot hide block with jQuery

This seems to be a trivial CSS question and should be asked on SO, but I think there are many subtleties in here that it’s better to ask in here.

I add a CSS class to a block and use jQuery to hide it. It’s simple, but it doesn’t work. How do I debug this?

<script>$("hidetab").css("display", "none");</script>

Hide played videos on YouTube

I have subscribed to some channels on YouTube and when I click on subscription I get an overview of all videos of all my channels. There are also videos that have already been played. Is there a view that only shows new, unplayed videos? Using an add-on or something similar?

ajax – Hide Load More Button When Finished

I’ve tried just about every code on here under the sun and for some reason my load more button is not hiding when there are no more posts to show. I’m using a custom post type and a custom loop to show professionals and when all are shown, the button still appears and you’re able to click it just nothing loads. Does anyone know why my JS code below isn’t working?

add_action( 'wp_footer', 'my_action_javascript' ); 

function my_action_javascript() { ?>
    <script type="text/javascript" >
    $(document).ready(function($) {
    var page = 2;
    var post_count = $('#professionals-container').data('count');
var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";
    $('#load_more').click(function() {
        var data = {
            'action': 'my_action',
            'page': page

        $.post(ajaxurl, data, function(response) {

            if (post_count == page) {


    </script> <?php

8 – Table view: “Hide Empty Column” checkbox doesn’t seem to work

I’ve created a view, formatted as a table.

I’m trying to hide empty columns – so, in the table settings, I’ve checked the “Hide Empty Column” checkbox for most of the table columns.

However, this doesn’t seem to have any effect – these columns are still included in the rendered table, with empty <td>s.

I expect this checkbox to hide the column entirely when all data cells contain an empty value. Am I understanding this correctly?

This certainly seems to be how it worked in Drupal 7. (I’m converting an existing D7 site to D8 – and this is how the table columns were hidden on the D7 site.)

Is there anything I should check which might be preventing this from working as expected?


Hide “Server information” in cPanel

Quote Originally Posted by serverman12
View Post

I want to hide the “Server information” link in client’s cPanel: https://ibb.co/J5NcG0H

How can i do this?, for the users cannot see technical information.

Thank you very much.

Why do you want to hide that information?

Feature Manager -> Packages -> Edit Feature List -> Uncheck Server Status Viewer -> Save.

sharepoint online – Application Customizer to hide Save button

I am trying to create application customizer to hide save and cancel button from Newform.aspx in Modern UI , i tried writing below code but everything getting hide instead of Save button noticed html is getting display:none

    enter code here  

      public onInit(): Promise<void> {
        var Libraryurl = this.context.pageContext.list.title;  

        Log.info(LOG_SOURCE, `Initialized ${strings.Title}`);
       // this.context.placeholderProvider.changedEvent.add(this, this._renderPlaceHolders);  

        let message: string = this.properties.testMessage;
        if (!message) {
          message = '(No properties were provided.)';

        //Dialog.alert(`Hello from ${strings.Title}:nn${message}`);  
        // code to hide button
            let newbutton: any = document.getElementsByName("Save")(0) || document.documentElement;  
           // let newbutton2: any = document.getElementsByName("Cancel")(1) || document.documentElement; 
            //let newbutton3: any = document.getElementsByName("Edit columns")(2) || document.documentElement;  

            newbutton.style.display = "none"; 
            //newbutton2.style.display = "none"; 
            return Promise.resolve();

            //newbutton3.style.display = "none"; 

       // this._renderPlaceHolders();

        //return Promise.resolve();

enter image description here

sharepoint online – How to hide “Share”, “Copy Link”, “Copy to” buttons in my site?

I’m using SharePoint Online modern UI.

And, I want to hide Quick edit, Sync, Export to Excel, PowerApps, Automate, Share, Copy Link, Copy to from my site.

Please check below picture.
this is my question

I found the easy solution about PowerApps, Automate, Sync buttons in below URLs.

But I can’t find solution other buttons.
I don’t want to use SPFX if possible, but is there no choice to use SPFX?

html – SharePoint master page hide ribbon from readers

Good day, I try to change my html for Sharepoint master page to hide s4-ribbonrow from readers. I wrote

<div id="ms-designer-ribbon">

 <!--MS:<SharePoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl" runat="server" Permissions="ViewPages">-->
     <style type="text/css">

                <!--SID:02 {Ribbon}-->         


But it didn’t work. The readers can view s4-ribbonrow. Maybe I do something wrong?
I saw this post What permissions should I use for my SPSecurityTrimmedControl to only give access to admins?
It didn’t help too.
Would be grateful for any help.

8 – How can I hide field labels on a custom content type’s form display?

In Drupal 7, it was possible to set a field’s label to “Hidden” on the “Manage Display” tab. Since the settings on this tab affect both the form display and the regular display, it was possible to hide a field’s label on the node create/edit form.

But Drupal 8, of course, has introduced the concept of a “form display”, which is configured separately from the regular display. And the form display page doesn’t offer any settings to control the placement or display of field labels.

I did find this blog post, which says that it can be done by implementing hook_form_FORM_ID_alter(). But I tried this, and the $form array that Drupal passes to my function doesn’t have a key named keys. The closest thing I can find in the array is $form('field_first_name')('widget')(0)('#title_display') (which has a value of “before”) – but changing this value to “invisible” (as shown in the blog post) doesn’t seem to affect anything.

I’ve also tried setting $form('field_first_name')('widget')(0)('#title') = null, but that doesn’t help either.

I realize that I could resort to hiding the label with CSS – but that isn’t a very elegant solution. Any ideas?


dnd 5e – How can my PCs discover an NPC’s class if they are trying to hide it?

Class is a game mechanic, not an identification 1

As explained very well in this answer, there is no such thing within the game as a “class”. It is just a tool to help players design their character, a set of rules by which the game is played, and a label for quickly describing concepts.

There can be no in-game tool to reveal such a thing. It would be like giving a player a “Ring of Dice Determination” which let’s the character know that someone is using plastic dice, metal dice, or an electronic dice rolling app. Or a divination spell to know someone’s Dexterity score.

More to your point, saying that “the characters not know at first that the BBEG is a multiclass wizard-warlock” has no bearing. I may be a good cook, but I would never call myself a “multiclass developer/chef”. The characters can figure out motives and backgrounds, but they can’t grasp “class”

1 Now it is possible that within any given campaign, certain classes must perform a specific action or set of actions. Such as, all Wizards need to go to designated schools to learn. Or Fighters go through gladiatorial training. It still doesn’t tell anyone what “class” you are, only that you’re trained a certain way.