Close

Account

Documentation

Forum

Menu

Next
Prev

JNews Update 11.6.9

Here is an explanation of some updates in JNews version 11.6.9.

 

Display a scrollable table when adding the class “jnews-scrolling” to the table wrapper in a post


In some cases, you may need to add a table with many columns or long data. If you create such a table using the default WordPress Table Block without additional styling, the table layout may break due to excessive width or length.

JNews Table style without a scrolling effect

To resolve this issue, we have added additional styling for tables in the JNews theme, allowing table data to be scrollable on desktop devices. Previously, we only provided the option to make tables scrollable on mobile devices.

To enable scrolling for tables on both desktop and mobile devices, you need to add the class "jnews-scrolling" to the wrapper element of your table.

JNews Table style with a scrolling effect

 

Add an option to enable the View Counter on Custom Post Types


By default, JNews View Counter only works on the default post type (post).

In this update, we have added the View Counter on Custom Post Type option in the menu JNews > Customize Style > View Counter Setting, allowing JNews View Counter to work with your Custom Post Type.

Add an option to change the rendered image size on JNews Module, JNews Hero, and JNews Slider


In JNews post elements such as JNews – Module, JNews – Hero, or JNews – Slider, the thumbnail image used is a cropped version based on the required size for that specific element.

For example, JNews – Module 3 uses a 350x250 image for its post thumbnail. Sometimes, the image quality might appear less than ideal, or the featured image might have a different aspect ratio, causing it to be significantly cropped.

Default rendered image size is 350×250

To address this, we added the Rendered Image Size option, allowing you to select the image size to be rendered for that element.

For example, if you want a higher-resolution image with the same aspect ratio, you can choose jnews-750x536 or jnews-1040x815.

Rendered image changed to 730×536

If the image displayed does not change even after modifying the Rendered Image Size option, it could be due to WordPress’s responsive image feature.

Image rendered from responsive image source

You can enable the Disable Image Srcset option in JNews > Customize Style > Additional Option > Speed Optimization to bypass this.

Add an option to display Custom Post Types on the Author, Category, Tags, and Archives page


By default, on Category, Author, Tags, and Archive pages, only posts from the default post type (post) will be displayed. If you create a Custom Post Type, those custom posts will not appear in the post list on Category, Author, Tags, or Archive pages.

We have added the options Custom Post Type On Category Page, Custom Post Type On Author Page, and Custom Post Type On Other Archive to allow you to display Custom Post Types on your Category, Author, Tags, or Archive pages.

A Stories Post Type with Culture category

Before adding the Stories post type on the Custom Post Type On Category Page option

After adding the Stories post type on the Custom Post Type On Category Page option

Adding an option to disable synchronization of post view counts across multiple languages


By default, JNews synchronizes the view count for multilingual posts. The original post’s view count is the same as the translated post’s view count. Each time a visitor views a post in a specific language, the original post’s view count increases, and the translated post displays the same view count as the original post.

Since the view count was previously combined with the original post, this may have caused the original post to appear in the Popular Post widget even when users were browsing your website in a different language.

By disabling the Synchronize Multi-Language View Counter option on the JNews > Customize Style > View Counter Setting, the view count of translated posts will be separated from the original post.

 

Add Stripe Hosted Checkout to the JNews Paywall to add more payment options


We have added an option to use Stripe Hosted Payment to process payments in the JNews Paywall. By using Stripe Hosted Payment, you can access more payment methods besides credit cards. You can use all payment methods available on Stripe. Please refer to the following documentation to enable and manage active payment methods on your Stripe account.

To use Stripe Hosted Payment for JNews products, you can activate the Stripe Hosted option in the menu WooCommerce > Settings > Payments > Stripe (Credit Card).

Please note that if you enable the Stripe Hosted option, you need to add the checkout.session.completed event to your Stripe Webhooks.

Payment Method with Stripe Hosted Payment

Payment Method with Stripe Hosted Payment

Fix some social media networks not working on the JNews Social Counter widget


Previously, the JNews Social Counter element was unable to retrieve the follower count from several social media platforms due to updates in the API usage of those platforms, and some of them no longer provide an API to obtain the follower count.

Here are some social media platforms that require additional configuration for the JNews Social Counter to work properly on those platforms.

  • Instagram & TikTok
    To retrieve the follower count from Instagram and TikTok, you need to connect your Instagram and TikTok accounts through the menu JNews > Customize Style > Social, Like & View > Social Counter.
    Once you have successfully connected your accounts, the Instagram and TikTok follower counts in the JNews Social Counter element will automatically fetch the follower count from the linked accounts.
  • YouTube
    To retrieve the subscriber count from your YouTube account, you need to add your YouTube API Key in the YouTube API option under the menu JNews > Customize Style > Additional Option > Global API Key.

    After that, you also need to add your YouTube Channel ID in the YouTube Channel ID option of the JNews – Social Counter element. To find your YouTube Channel ID, you can refer to the following link.

However, some social media platforms like Twitter and Facebook no longer provide an API to retrieve the follower count. We offer the Follower Count option, allowing you to use a custom value in the JNews Social Counter element.

 

Fix cannot get thumbnail in JNews – RSS Block


In the previous version, the JNews – RSS Feeds element could only display post thumbnails if the RSS content structure contained the <media:thumbnail url="http://your-image-url.com"/> tag, as shown in the following example.

In this update, if the RSS content does not have the <media:thumbnail> tag, the system will look for the <media:content> or <enclosure> tags. If none of these tags are present, the first <img> tag found in the RSS content will be used as the thumbnail.