The easiest way to globally add a new Ditty is by using the Global Ditty settings located at Ditty > Settings > Global Ditty. You just need to know and add an html selector for an element that you want your Ditty to be place either in or before/after, and then select the Ditty you want to display. It will then show up automatically in that spot on your site without having to modify any theme files.y
If you still want to manually add a Ditty to your theme files, you can use the following code (set the ID to your Ditty’s ID):
<?php
if ( function_exists( 'ditty_render' ) ) {
$args = array(
'id' => 1912,
);
echo ditty_render( $args );
}
?>
You can also set a custom display (this is not currently being used by the Ditty) by using (and changing the display ID to the display you want to use:
<?php
if ( function_exists( 'ditty_render' ) ) {
$args = array(
'id' => 1912,
'display' => 2003
);
echo ditty_render( $args );
}
?>
Let me know if you have any further questions.