Jump to content


Photo
- - - - -
Open

Remove Pagelines Button From Top Admin Bar




  • Please log in to reply
16 replies to this topic

#1 basmati

basmati

    Super Member

  • Members
  • 227 posts
  • Framework Version:PageLines 2.4
  • 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

  • Moderators
  • 12,345 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

    Super Member

  • Members
  • 227 posts
  • Framework Version:PageLines 2.4
  • 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

  • Moderators
  • 12,345 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

    Super Member

  • Members
  • 227 posts
  • Framework Version:PageLines 2.4
  • Country: Country Flag

Posted 26 October 2012 - 05:36 PM

thanks catrina, but that changes nothing - strange :(

#6 catrina

catrina

    Advocate

  • Moderators
  • 12,345 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

    Super Member

  • Members
  • 227 posts
  • Framework Version:PageLines 2.4
  • 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

  • Moderators
  • 12,345 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

    Super Member

  • Members
  • 227 posts
  • Framework Version:PageLines 2.4
  • 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

  • Moderators
  • 12,345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 26 October 2012 - 06:32 PM

No problem

#11 basmati

basmati

    Super Member

  • Members
  • 227 posts
  • Framework Version:PageLines 2.4
  • 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

  • Moderators
  • 2,441 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

    Ninja

  • Moderators
  • 7,518 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



#14 Simon_P

Simon_P

    Messer

  • Administrators
  • 5,077 posts
  • LocationDevon
  • Framework Version:trunk
  • 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

    Super Member

  • Members
  • 227 posts
  • Framework Version:PageLines 2.4
  • 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
  • 5,077 posts
  • LocationDevon
  • Framework Version:trunk
  • 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

    Super Member

  • Members
  • 227 posts
  • Framework Version:PageLines 2.4
  • Country: Country Flag

Posted 29 November 2012 - 03:03 PM

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






Click to return to top of page in style!