andyfang
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to Call Name of WordPress Site?I was hoping I could just add that to the adminbar.php file and avoid creating a function.
The result of that was “is your site”. ??
Forum: Fixing WordPress
In reply to: How to Call Name of WordPress Site?I placed the code right above this one:
if ( is_admin() ) { // Add an option to visit the site. $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'view-site', 'title' => __( $title . ' is your site' ), 'href' => home_url( '/' ), ) );
and it’s still displaying “https://mysite.com is your site”
At least we have improvement. ??
Forum: Fixing WordPress
In reply to: How to Call Name of WordPress Site?The code is showing:
mysite.com is your site
and what I wanted was:
Mysite is your site
(the actual site name, not the URL)
Thanks a lot anyways though, I really do appreciate your time to help me. Hopefully this can get solved!
Forum: Fixing WordPress
In reply to: How to Call Name of WordPress Site?I’m sure this is possible, just need to know how. ??
Forum: Fixing WordPress
In reply to: How to Call Name of WordPress Site?Yes, I’m trying to change the admin bar text. I’m running on a regular installation.
Forum: Fixing WordPress
In reply to: How to Call Name of WordPress Site?First off I appreciate you trying to help me.
However after adding the code I’m not getting anything except:
is your site
Not
SITENAME is your site
After wrapping them in double quotes I’m getting the literal code instead.
Forum: Fixing WordPress
In reply to: How to Call Name of WordPress Site?When using this code:
if ( is_admin() ) { // Add an option to visit the site. $wp_admin_bar->add_menu( array( 'parent' => 'site-name', 'id' => 'view-site', 'title' => __( "bloginfo('name') is your site" ), 'href' => home_url( '/' ), ) );
I’m just getting:
bloginfo(‘name’) is your site
How do I get the actual site name?
Forum: Fixing WordPress
In reply to: Disable Title Separater for Homepage?Here’s the header.php:
[ Redacted ]
Forum: Fixing WordPress
In reply to: Disable Title Separater for Homepage?There’s an abundance of themes that we support here: https://www.ads-software.com/themes/ , try switching to one of those.
Yes but how does that solve my problem? I’m simply asking what conditional code to put…
Forum: Fixing WordPress
In reply to: Disable Title Separater for Homepage?I don’t see that theme here:
https://www.ads-software.com/themes/
If it’s from someplace else, you’ll have to ask whoever you got it from.
Yes it’s from somewhere else but it shouldn’t have anything to do with PHP code. I know you can place conditional code but need guidance as to what code.
Forum: Fixing WordPress
In reply to: Disable Title Separater for Homepage?CloudHost WordPress theme.
Forum: Fixing WordPress
In reply to: Disable Title Separater for Homepage?I was thinking of adding a code in the header.php file but not sure what to add.
Forum: Reviews
In reply to: [WP Super Cache] Perfect and much better than W3 Total cacheNo, but you should.
* Capitalize first letter and add a “?” if you’re asking a question.
Forum: Reviews
In reply to: [WP Super Cache] Perfect and much better than W3 Total cacheWell it looks pretty sketchy when a member with 1 post writes a good review with bad grammar and then explains why he has only one post…
anyway, we’re not discouraging other authors.
We’re simply telling them that their plugin is very glitchy. W3 is overrated tbh.
Forum: Reviews
In reply to: [WP Super Cache] Perfect and much better than W3 Total cacheI agree. The instant I deactivated W3 my site loaded 5X faster.