Storefront Blog Excerpts

説明

This plugin changes the post content area on the blog archive page to show the excerpt instead of the full content. Users will also be able to modify the size of the featured image.

This plugin is built to work with the Storefront Theme. This plugin is fully compatible with the Storefront Blog Customizer premium plugin by Woothemes.

使い方:

  1. Once the plugin is activated, it will automatically enable the blog excerpt, replacing the content block on the archive pages (blog, tags, category and date archives).
  2. To modify the settings, login to your WordPress dashboard.
  3. Navigate to Customize page under Appearance.
  4. Find the Blog Excerpt section. This should be located after the Layout section.
  5. In this section you will be able to modify the following properties:
    • Excerpt word count – default value is 55
    • Excerpt word end – default value is … hellip
    • Read more button text – default value is “Read more”
    • Featured image size – default value is “full”

Note: If featured value is set to thumbnail, the image will be assigned with the class “alignleft”, which means it will float to the left side, with a right margin for spacing.

スクリーンショット

  • new section called "Blog Excerpt" is added on the customizer
  • The Storefront blog excerpt plugin in action. The read more button is added below the excerpt.
  • A sample of a featured image where the image size is set to thumbnail in the customizer.

インストール

WordPress ダッシュボードからのインストール:

  1. WordPress ダッシュボードにログインします。
  2. プラグイン画面に移動し、新規追加を選択して「プラグインを新規追加」ページに移動します。
  3. In the right side, enter “Storefront Blog Excerpt” in the search input bar, and hit your enter key.
  4. インストールリンクをクリックし、プラグインがダウンロードされるのを待ってください。完了したらプラグインを有効化します。

FTP からのインストール:

  • Extract the zip file, login using your ftp client, and upload the storefront-blog-excerpt folder to your /wp-content/plugins/ directory
  • WordPress ダッシュボードにログインします。
  • go to plugins and activate “Storefront Blog Exvcerpt” plugin.

FAQ

Will this plugin work for themes other than Storefront?

Unfortunately no. This plugin was designed to work for the Storefront theme, utilizing Storefront’s action hooks and filters. Activating the plugin while using a different theme will trigger a warning.

I’ve activated the plugin, where can I access the settings?

The settings for this plugin can be found in the Customize page under Appearance. In that page, find the section named “Blog Excerpt”.

Is it possible for users to create custom excerpts?

Users may create custom excerpts using WordPress default excerpt field. If you’re not seeing it when editing a post, you’ll just have to enable it via the screen options. Note that your custom excerpt will also be trimmed in respect with the word count you’ve set on the customizer.

Instead of floating to the left, I want the thumbnail image to float to the right with a left margin. How do I do that?

To do this, you’ll just have to apply the following code on your theme’s (preferably a child theme) functions.php file.

add_filter( 'woa_sf_blog_excerpt_image_float', woa_excerpt_thumbnail_float);
function woa_excerpt_thumbnail_float() {
    return 'alignright';
}

評価

2020年7月29日
Now the readers are forced to look at the page that it is on so they can leave comments. In the past, they would read an article and not know that they could comment. Thank you so much... Also makes the page nice and clean
2020年2月22日
There are probably a dozen plugins that do what this one does, except this one doesn't require you to go in and edit all your posts. I use storefront, and I have a blog.I want people to be able to see a bunch of blog posts instead of getting bogged down in the first long-winded writing they come across. This does it, by itself, and doesn't break anything else.
2019年1月7日
I've only had this installed for a couple of minutes and already I had to give a five-star review. As soon as you activate the plugin, it automatically changes the blog feed. Of course, you can configure it however you'd like, but it looks great on a mobile device with the pre-set adjustments. After spending almost all of yesterday trying to get a plugin to work (for a totally different purpose), this was a huge relief. Thank you!
12件のレビューをすべて表示

貢献者と開発者

Storefront Blog Excerpts はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Storefront Blog Excerpts” は2ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Storefront Blog Excerpts” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.2.0

  • fixed code for php8 compatibility

1.1.4

  • replaced TEMPLATEPATH with get_template_directory()

1.1.3

  • Tested with WP version 4.9.1, WooCommerce 3.2.6 and Storefront 2.2.5
  • Blog excerpt thumbnail image now has a permalink.

1.1.2

  • tested with WP version 4.7.3, WooCommerce 2.6.14 and Storefront 2.1.8

1.1.1

  • fixed – empty

<

p> tags are added before and after the excerpt.
* made the “Read more” button translatable

1.1.0

  • added support for shortcodes on the excerpt as requested (here)[https://wordpress.org/support/topic/filter-the_excerpt-not-applied?replies=2]

1.0.0

  • プラグインをリリース