hzlzh
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: HELP! .htaccess rewrite looplol~~~Er~~~you can login into your WordPress admin panel and clikc
settings -> permalink
and pressSave changes
button. I think it may help.Forum: Fixing WordPress
In reply to: Custom Default Avatar Image Not ShowingDid you try this? (I paste it from the post i mentioned.)
2. Then paste the following code in there add_filter( 'avatar_defaults', 'newgravatar' ); function newgravatar ($avatar_defaults) { $myavatar = get_bloginfo('template_directory') . '/images/gravataricon.gif'; $avatar_defaults[$myavatar] = "WPBeginner"; return $avatar_defaults; } You need to understand the variables in the code above. ‘/images/gravataricon.gif’ is the location of the image file. It must be saved under the theme folder that you are using. Change WPBeginner to the name that you want to give your Gravatar and you should be all set.
Forum: Fixing WordPress
In reply to: display recent post's "excerpts" in meta description of home pageYou need to add some items into you
header.php
with the code shown infacebook development center
then facebook can get those items (title, thumbnail, excerpts, etc) and display it.
check thisand you can do some test here by just typing you post link into the box.
Forum: Fixing WordPress
In reply to: Plugins can′t work on custom template pages?!Yes that’s the way I suppose you to do.
Forum: Fixing WordPress
In reply to: HELP! .htaccess rewrite loopFirst do a backup.
Then you can try to leave only the code below in your.htaccess
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
Forum: Fixing WordPress
In reply to: Plugins can′t work on custom template pages?!Try to create new template files just paste the code from
page.php
tonew-page-template.php
and then use it as a test.Forum: Fixing WordPress
In reply to: Custom Default Avatar Image Not Showing@missyjknox:
That’s weird. I can achieve that by follow that tutorial and put those code into myfunction.php
.Forum: Fixing WordPress
In reply to: Editing "custom menu" label when creating "page"?I think you need to do some code work with your theme files, check this
You can use a cut function before the page title listing.
Forum: Fixing WordPress
In reply to: How to use 2 different css file?Why not just paste it and put it into your theme
header.php
?
like this below:<link href="https://s.www.ads-software.com/style/style1.css" type="text/css" rel="stylesheet" /> <link href="https://s.www.ads-software.com/style/style2.css" type="text/css" rel="stylesheet" />
Forum: Fixing WordPress
In reply to: Custom Default Avatar Image Not ShowingI want to know the purpose why you did this
filter
here.Do you want to Local(cache) the avatar images yourself in your host. or do you just want to change the Dir? just like the blog post below->
then i think you can make it by following that post.
Forum: Fixing WordPress
In reply to: Manually import Theme Unit Test DataI’m happy you solve it,BTW, there is a default access of WP files
755
once you install a new WP site, so you needn’t change it to777
unless some plugins requirement.Forum: Fixing WordPress
In reply to: Custom Default Avatar Image Not ShowingThen do you know that right link which it should be?
try what Ctrl-C mentioned first.
Forum: Fixing WordPress
In reply to: Home Page not showing in IEThat’s great. You are welcome.
Forum: Fixing WordPress
In reply to: Manually import Theme Unit Test DataCan you get access to you Mysql Database?
A best and easy way to import
test-data.2011-01-17.xml
is to install the pluginwordpress-importer
.
So try to download it hereand move it to your FTP dir
wp-content/plugins/
Then you can import this test data into your Dev site.
—-
If you still need some manual way, you can try to install another WP site in your localhost and import data successfully, and then export the Mysql(.sql) backup, and import it to your Dev site’s Mysql DB.Forum: Fixing WordPress
In reply to: Home Page not showing in IEHave a backup of your post text before any steps. ??