pbs_iframe_header

This article was written for Page Builder Sandwich 5 or earlier. Page Builder Sandwich 6 is a new block builder, so some steps and screens here may differ. Getting started with version 6

pbs_iframe_header

Used within the iframe used by PBS to render its responsive view during editing. This is called right before the <head> tag closes and can be used to add scripts and styles.

Parameters

None.

Example

add_action( 'pbs_iframe_header', 'change_bg_color' );

function change_bg_color() {
	?>
	<style>
	body {
		background-color: hotpink;
	}
	</style>
	<?php
}