Skip to content

Instantly share code, notes, and snippets.

@atwellpub
Created March 26, 2014 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atwellpub/9776695 to your computer and use it in GitHub Desktop.
Save atwellpub/9776695 to your computer and use it in GitHub Desktop.
Breeze theme fix for landing pages
<?php
function unisphere_portfolio_preset_content( $content ) {
global $post, $unisphere_options;
if ( $post->post_content == '' && $post->post_type == 'portfolio' ) {
$default_content = $unisphere_options['portfolio_default_text'];
} else {
$default_content = $content;
}
return $default_content;
}
add_filter('the_editor_content', 'unisphere_portfolio_preset_content');
@atwellpub
Copy link
Author

This function starts at about line 76 in /breeze/library/misc.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment