0

In the "Cog" wheel settings menu, how can I remove the item "Change the look" for everyone? I tried the following CSS with no success:

#ctl00_PlaceHolderMain_Customization_RptControls_Theme {
    display:none;
}

I can hide it by ID, but the ID changes depending on where you are, so this is no good

#mpl_0_7_Anchor {
    display:none;
}

jQuery would even be acceptable but I have no success targeting the span element:

$("span:contains('Change the look')").hide();

Am I close?

2 Answers 2

1

You could use the CSS "ends-with" functionality [attribute$=value] (documented here).

Something like this (if the element is a div ):

div[id$="PlaceHolderMain_Customization_RptControls_Theme"] {
    display:none;
}
0

Another way using jQuery

$('[Title="Select a style which defines the fonts and colors for this site."]').hide();
2
  • This would only work in an english site though! Commented Mar 17, 2015 at 14:51
  • That doesn't work. It's not the Title of the element. Also tried $('[Title="Change the look"]').hide(); and $('[Title="Change the look"]').parent().hide(); Commented Mar 17, 2015 at 14:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.