Support » Networking WordPress » How can we remove child theme details on "Themes Screen"

  • Resolved marikamitsos


    Hello. My friend runs a multisite(subfolders).
    I have been asked to find a way so to remove/hide the child theme details for site Admins, on “Themes Screen”.
    What they see for his 2011 CHILD theme is:

    The 2011 CHILD theme is sophisticated, lightweight, and adaptable. Make it yours with a custom menu, header image, and background — then go further with available theme options for light or dark color scheme, custom link colors, and three layout choices.

    The template files are located in /themes/twentyeleven. The stylesheet files are located in /themes/twentyeleven-child. TwentyEleven Child uses templates from Twenty Eleven. Changes made to the templates will affect both themes.

    The First paragraph comes from the Child theme’s description. We want to keep this part.
    The Second paragraph we want to remove. Ideally have it shown ONLY to Super-admins, since admins canNOT edit the themes anyway.

    I have tried hiding it using css:
    div.themedetaildiv p { display:none; }
    div.themedetaildiv p code { display:none; }

    Unfortunately it gets to either hide too much or not enough.

    Any help is highly appreciated.
    Thank you in advance.

Viewing 1 replies (of 1 total)
  • I finally managed to work it out myself, after reading a similar question over at the Stackoverflow Site:

    div.themedetaildiv > p:nth-child(n+3) { display:none; }

    Which means: we go to the theme details and hide all paragraphs after the second one. The first one being the version number of the theme.

    Hope it helps someone else

Viewing 1 replies (of 1 total)
  • The topic ‘How can we remove child theme details on "Themes Screen"’ is closed to new replies.