Skip to content

Commit

Permalink
Create settings.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eldzis authored Sep 27, 2024
1 parent 61054d4 commit 532b504
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions documentation/settings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
title: Settings
layout: home
parent: Documentation
nav_order: 5
---

# Settings

Settings tab features various options for you to customize the plugin depending on your usage.

## Lazy load offset:

Setting is used to set your specified offset for lazy loaded ad placements for when the ad should load in depending on how many pixels it is away from the bottom of the users screen. Default value is **-400**, which means that the lazy loaded placements will load in when they are 400 pixels away from the bottom of the screen. A positive value would indicate the opposite, where the placement would load in when it crosses the positive threshold from the bottom of the screen, although this is **not** a suggested practice.

![alt_text](../images/settings-lazy-offset.png)


## Block class name:

Setting indicates what class will be used for <div> element to wrap the ad placement inside of it. Default is **stpd-wp-block**.

![alt_text](../images/settings-block-class.png)


## Ad placement label:

Ad placement label has a checkmark that if enabled will display a label above all ad placements to indicate that it is an ad placement. Default label is **Advertisement**. You may customize the label in the **Ad placement label name** field.

![alt_text](../images/settings-ad-label.png)


## Exclude paragraphs inside:

Is a setting for **Before paragraph** and **After paragraph** ad placement positions, you can enter comma separated values of html elements from which to exclude paragraph insertion like commonly blockquotes that may be used in a WordPress page. There is no default value for this setting and paragraph insertion will be done in all paragraphs inside of your page contents.

![alt_text](../images/settings-exclude-p.png)

0 comments on commit 532b504

Please sign in to comment.