Gallery是一款极其漂亮的图片主题,按以下几个步骤安装它:
- Download the latest version of Thematic.
- Download the latest version of the Gallery WordPress theme.
- Unzip and upload both themes to your “wp-content/themes/” directory.
- In WordPress, go to “Appearance > Themes” and activate the “Gallery” theme.
- To change the number of items displayed on the home page, go to
“Settings > Reading” and change “Blog pages show at most” to 28 (4
rows) or 35 (5 rows) or more for the LazyLoad plugin to work its magic. LazyLoader will automatically delay loading of thumbnails that are out of the user’s view.
怎么添加Gallery的内容
以下几个步骤:
- Create a thumbnail for each entry sized 125×125
- Create a full-sized image for each entry sized 500×375
- Upload both images to /wp-content/uploads or use the image uploader in WordPress to upload the images to the same folder
- Next, create a custom field called “thumbnail” and enter the
location of the thumbnail file, for example
“/wp-content/uploads/design-name-125×125.jpg” - You will need to create another custom field called “full-image” and enter the location of the full-size image in that field.
- You may also enter custom fields for “web-url” and “designer” if you want to add additional information to each entry.
怎么设置“星星评级”
- Install the WP-Post Ratings plugin from WordPress.org. Activate both the plugin and the widgets.
- To switch the type of images to transparent .PNGs, open wp-content/plugins/wp-postratings/wp-postratings.php in a text editor and change the following lines (should be near the top of the document):### Define Image Extension
define(’RATINGS_IMG_EXT’, ‘gif’);
//define(’RATINGS_IMG_EXT’, ‘png’);to match this:### Define Image Extension
//define(’RATINGS_IMG_EXT’, ‘gif’);
define(’RATINGS_IMG_EXT’, ‘png’); - 到plugins/wp-postratings/images文件夹下,将stars(png)改为stars.
- In your WordPress admin panel, click the Ratings > Options link on the left sidebar.
- The transparent .PNG stars should be selected by default.
- Under ‘Ratings AJAX Style’ change ‘Show Loading Image With Text’ to ‘No’ and ‘Show Fading In And Fading Out Of Ratings’ to ‘No.’
- Click ‘Save Changes.’
- Now click the ‘Ratings Templates’ on the left sidebar.
- Replace the text in the ‘Ratings Vote Text’ box with the following code:%RATINGS_IMAGES_VOTE%
- Replace the text in the ‘Ratings Voted Text’ with the following code:%RATINGS_IMAGES%
- Click the ‘Save’ button.
- You should now see your star ratings show on the gallery single pages next to the title of the gallery item.
页面询问添加widget
- Make sure you activated the WP-Post Ratings widgets when you activated the plugin.
- In your WordPress Admin, click Widgets on the sidebar.
- From the drop-down box under ‘Current Widgets’ select ‘1st Subsidiary Aside’ and click ‘Show.’
- Drag the widgets you’d like to see shown in this area from left to right (Highest Rated, Most Rated, Recent Comments, etc.)
- Click ‘Save.’
- You should now see your widgets in the footer.
