Skip to content

getBlogSettings()

The getBlogSettings method is used to get a BlogSettings object that represents settings for blog in the storefront.

Returned value

The BlogSettings object.

Example

source
{% set blogSettings = ObjectApi.getBlogSettings() %}
{% if blogSettings.getIsCommentsEnabled() %}
    <h4>Comments Enabled</h4>
{% endif %}
output
<h4>Comments Enabled</h4>