codingerror
Member
Posted 5 months ago #
I was wondering how I would go about changing the footer of a site so it doesn't display administrator options to people viewing the site.. the site is redcarpettips.com the code for the footer is as follows..
[Code moderated as per the Forum Rules. Please use the pastebin]
i tried editing a piece of code and broke the whole site! I fixed it, but need a second opinion on this task, thanks!!
codingerror
Member
Posted 5 months ago #
bheadrick
Member
Posted 5 months ago #
are you sure the admin info is displayed to users not logged in? It isn't displayed in the theme demo.
It isn't clear in the code you pasted what was changed or removed, as I don't see the original code. If you want to hide something, you're better off by isolating the appropriate css selectors and applying display:none;
if you post (or message) a link to the site, I can provide further info.
codingerror
Member
Posted 5 months ago #
Hi! A link to the site is http://www.redcarpettips.com The footer has admin options for people not logged in.. Although they can't access them.. I don't have the original code.. :( thanks for your reply!
bheadrick
Member
Posted 5 months ago #
I've seen something like this after installing buddypress. I'm thinking it's probably a plugin that's causing this. Start by disabling plugins one by one until it goes away. Alternatively, you could just put this in your style.css:
#wpadminbar{display:none;} if you don't mind not having an adminbar when you're signed in.
Alternatively, this might work if you put it in your functions.php
/* Disable the WordPress Admin Bar for all but admins. */
if (!current_user_can('administrator')):
show_admin_bar(false);
endif;
codingerror
Member
Posted 5 months ago #
Wow!! the css mod worked like a charm!! Thank you SO much for your awesome advice!! Finally marked that off the to-do list.. :)