toddcpg on "hide greeting and logout"

ساخت وبلاگ

I want to hide the greeting and logout link to users that are logged into the site.

here is a link to see a snapshot of my issue.
http://www.tiikoni.com/tis/view/?id=289a88f

You can hide it using CSS. You need to find out what the classes that are used are and then add

display: none;

to the css for those classes.

For example if the class is named userbox your css would look like this:

.userbox {
display: none;
}

Thank you for responding.

I had tried that.... I was able to remove the logout button that way.. but there is no class around the "Hi useame".

<div class="entry-content"> Hi center-admin<br/> <a class="btn" href="http://cpginteractive.com/centerstar/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fcpginteractive.com%2Fcenterstar&_wpnonce=d257585203">Logout</a><div class="et_pb_section et_pb_fullwidth_section et_pb_section_0 et_pb_with_background et_section_regular"> <div class="et_pb_module et_pb_slider et_pb_slider_no_arrows et_pb_slider_no_pagination et_slider_auto et_slider_speed_4000 et_slider_auto_ignore_hover et_pb_slider_no_shadow et_pb_fullwidth_slider_0"> <div class="et_pb_slides">

hmm. What theme are you using? Some themes store that in the header while others put it in the page.php. I want to look so that I can give you specific instructions how to fix it. It will require creating a child theme.

i am using the divi theme.

Oh. I am pretty sure they put this in the header file.

Can you please share the code for the header.php file.

Share code using pastebin.com

http://pastebin.com/fs2J6Lnu

I think it has something to do with the plugin. "Simple User Registration". I think it might be something they are adding in.

I do not think so. Let me take a look at the code and get back to you.

Is this the plugin you are referring to? https://wordpress.org/plugins/wp-registration/

yes that is it.

We have a simple site that we only want our clients to see. They all see that same thing. If they would have to request access using the form from that plugin, and then we get an email to approve or deny them access.

Could you provide me a link to your website so I can see it for myself?

Also, do I understand correctly that you do not want visitors to be able to sign up at all?

http://cpginteractive.com/centerstar/

[ REDACTED ]

I made it so that you can only see the login page.

The Plugin development said it was not their issue.

thank you for your help on this.

You did not answer my question though. Did you want to make it so visitors can not signup at all?

yes and no.

They have to fill in the registration form and then an email is sent to the admin. The admin will approve or deny the user access from there.

So yes they can sign up for access, but that does not mean they get access.

Okay, unfortunately, I am at a stand still with this. I looked at the plugin and I do not see how that could be adding this code. In my experience, this code that generates the text you are trying to hide is in the theme.

Can you share the code for page.php using pastebin. That may have the code I am looking for in it.

Thanks.

It is very strange. The plugin developer send it is not his plugin that is causing the issue and the theme developer is saying that it is not them and the plugin.

http://pastebin.com/hfvpbsFn

I just did a test it is the plugin.. it is adding that in there.

I might have to find a new plugin to do what i want.

The thing is by default WordPress offers the function of displaying a message that says "Hi useame". That is why I say it is the theme but I can not find the code in any of the files you have shared. I have also reviewed the plugin code and do not see how the plugin could be adding that text. Wish I could help further.

Maybe someone else here will be able to help better than myself.

Good luck in finding a fix!

toddcpg
Member
Posted 9 minutes ago #

thank you for your time trying to help me out.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 251 تاريخ : سه شنبه 28 ارديبهشت 1395 ساعت: 23:03