Jump to content


Photo
- - - - -

Remove Pagelines Button From Top Admin Bar



  • Please log in to reply
23 replies to this topic

#1 basmati

basmati

    Advocate

  • Members
  • 264 posts
  • Framework Version:PageLines Framework (always the latest)
  • Country: Country Flag

Posted 26 October 2012 - 04:57 PM

how can i remove the PageLines Button from the top admin bar in the backend?

#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 26 October 2012 - 05:16 PM

Can you please take a screenshot and point out which one you're referring to?

#3 basmati

basmati

    Advocate

  • Members
  • 264 posts
  • Framework Version:PageLines Framework (always the latest)
  • Country: Country Flag

Posted 26 October 2012 - 05:29 PM

Can you please take a screenshot and point out which one you're referring to?


Usually i have a plugin for admin menu but i just can't get rid of that item.


Please Login or Register to see this Hidden Content


that did not work!

Attached Files



#4 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 26 October 2012 - 05:34 PM

Please try this CSS:

Please Login or Register to see this Hidden Content



#5 basmati

basmati

    Advocate

  • Members
  • 264 posts
  • Framework Version:PageLines Framework (always the latest)
  • Country: Country Flag

Posted 26 October 2012 - 05:36 PM

thanks catrina, but that changes nothing - strange :(

#6 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 26 October 2012 - 05:51 PM

What is your reason for wanting to remove that link from the admin bar? (To prevent access?)

#7 basmati

basmati

    Advocate

  • Members
  • 264 posts
  • Framework Version:PageLines Framework (always the latest)
  • Country: Country Flag

Posted 26 October 2012 - 05:59 PM

yes, preventing access for people without any knowledge.

i use a plugin user access manager - but this works only on the left side of the wordpress admin, not on the top quicklinks wordpress admin menu.

now access to pagelines via quicklinks is not possible though, but the menu still appears.

once there was a working function for PlatformPro ....

#8 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 26 October 2012 - 06:04 PM

I would advise continuing working with the CSS (the selector may need to be more specific). For example:

Please Login or Register to see this Hidden Content



#9 basmati

basmati

    Advocate

  • Members
  • 264 posts
  • Framework Version:PageLines Framework (always the latest)
  • Country: Country Flag

Posted 26 October 2012 - 06:12 PM

have to finish for today, i'll try that later ... thanks so far!

#10 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 26 October 2012 - 06:32 PM

No problem

#11 basmati

basmati

    Advocate

  • Members
  • 264 posts
  • Framework Version:PageLines Framework (always the latest)
  • Country: Country Flag

Posted 27 November 2012 - 09:25 AM

new idea:
in wp its easy to use a function for the admin bar items:

Please Login or Register to see this Hidden Content


is there a way to remove pagelines item?

#12 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 28 November 2012 - 05:54 AM

I've just used this in my test site and it's hidden the button, do you have any caching plugins which could be preventing the changes showing instantly? Screenshot -

Please Login or Register to see this Hidden Content



Please Login or Register to see this Hidden Content


or try

Please Login or Register to see this Hidden Content



#13 Danny

Danny

    Is Awesome!

  • Moderators
  • 17636 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 28 November 2012 - 09:29 AM

Hi,

Add this to your functions.php file in either your child theme or PageLines Customisation plugin.


Please Login or Register to see this Hidden Content


  • basmati likes this

#14 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 28 November 2012 - 02:00 PM

The menus are only visible to users with the edit_theme_options role. Unless all your visiters are Administrators?



#15 basmati

basmati

    Advocate

  • Members
  • 264 posts
  • Framework Version:PageLines Framework (always the latest)
  • Country: Country Flag

Posted 29 November 2012 - 08:39 AM

@james b: that was the first thing i tried. but i found no way - the css display none is not working - flushed the cache and everything. display none works in firebug but not within the child theme css.

 

@simon: it's visible for editors - but when they click on it they would have no access to the settings tab and thats confusing for clients.

 

@danny thanks - thats it!

 

solved!



#16 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 29 November 2012 - 11:42 AM   Best Answer

Please Login or Register to see this Hidden Content

Please Login or Register to see this Hidden Content

 

no it isnt ;) 



#17 basmati

basmati

    Advocate

  • Members
  • 264 posts
  • Framework Version:PageLines Framework (always the latest)
  • Country: Country Flag

Posted 29 November 2012 - 03:03 PM

ok - must have confused my own admin modifications... :abe:



#18 dario

dario

    Super Member

  • Members

  • 146 posts
  • LocationMinneapolis
  • Framework Version:DMS 2
  • Country: Country Flag

Posted 03 June 2013 - 04:26 PM

Please Login or Register to see this Hidden Content

This works great, but what about the Admin Menu bar > Edit Meta menu item, which leads here:

website/wp-admin/admin.php?page=pagelines_special#blog_page

 

None of the following work:

$wp_admin_bar->remove_menu('edit_meta');

$wp_admin_bar->remove_menu('pl_meta');

$wp_admin_bar->remove_menu('pl_edit_meta');

 

On a side note, how does one go about finding the menu item names (slugs?) to add into code such as this?

I know how to find the slug for a post or page but not Admin menu or Dashboard menu items.

 

Firebug, Chrome Dev nor Safari Dev seems to show them.



#19 greenfly

greenfly

    Advocate

  • Members

  • 3268 posts
  • LocationManchester, England
  • Framework Version:latest
  • Country: Country Flag

Posted 03 June 2013 - 06:47 PM

Hello Dario 

 

Please could you create your own topic for this as this topic has been answered 



#20 dario

dario

    Super Member

  • Members

  • 146 posts
  • LocationMinneapolis
  • Framework Version:DMS 2
  • Country: Country Flag

Posted 03 June 2013 - 06:50 PM

No problem Martin.

Would you like to remove my question from this topic?

 

Regardless, I answered both of my questions on my own so I guess there's no need to repost.