WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How can we remove child theme details on "Themes Screen" (2 posts)

  1. marikamitsos
    Member
    Posted 1 year ago #

    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".
    Meaning,
    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; }
    or
    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.

  2. marikamitsos
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic