Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7747863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:38:09+00:00 2026-06-01T10:38:09+00:00

I have a wp-network installed with users that can create pages in each site.

  • 0

I have a wp-network installed with users that can create pages in each site.

Each of those pages get a place in the primary menu, and only one user have permission to create all this menu.

I want to create a user only to be able to edit the content of the pages, but not the title.

How can I disable the title of the page to be edited from the admin menu for a specific user, or (far better) for a capability?

I thought only a possibility, that’s editing admin css to hide the title textbox, but I have two problems:

  1. I don’t like to css-hide things.
    1. I don’t know where is the admin css.
    2. I know php, but don’t know how to add a css hide to an element for a capability.

How do I want it to be

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:38:11+00:00Added an answer on June 1, 2026 at 10:38 am

    You should definitely use CSS to hide the div#titlediv. You’ll want the title to show in the markup so the form submission, validation, etc continues to operate smoothly.

    Some elements you’ll need to know to implement this solution:

    1. current_user_can() is a boolean function that tests if the current logged in user has a capability or role.
    2. You can add style in line via the admin_head action, or using wp_enqueue_style if you’d like to store it in a separate CSS file.

    Here is a code snippet that will do the job, place it where you find fit, functions.php in your theme works. I’d put it inside a network activated plugin if you’re using different themes in your network:

    <?php
    
    add_action('admin_head', 'maybe_modify_admin_css');
    
    function maybe_modify_admin_css() {
    
        if (current_user_can('specific_capability')) {
            ?>
            <style>
                div#titlediv {
                    display: none;
                }
            </style>
            <?php
        }
    }
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My company has a large customer that has many regions/sites/offices. Each location can have
I've installed ArchLinux with VB on MacOS. I have network problems, I cannot resolve
I have a network of blogs that I want to be able to do
I have a social network type site (member site) I store a lot of
I have an interesting challenge that I'm wondering if anyone here can give me
We have a site hosted in IIS6 that we built using the .NET 1.1
I have an application that is deployed via ClickOnce to a network share. I
I have a Visual Studio project that gets installed to about half of the
I have a network software which uses UDP to communicate with other instances of
I'm designing an application which will have a network interface for feeding out large

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.