Digital experiences for all disciplines
Forum Replies Created
-
Posted in: We hit Power Elite.
-
Cheers, no rush so next update will be great. Thanks.
This could be a solution to the problem, offer this as an alternative and have a separate zip file with the xml files? Will try it on Heart Internet.
Heads up on this, I have tried this on Heart Internet & Site5, Site5 has no problems but the demo content installer just won’t work on Heart Internet (get the same error as mentioned in this thread). Tried everything so just think there must be something on Heart stopping it so the problems definitely lie with the hosting company. I have attached the php info from Hearts server setup which may help. Noticed that allow_url_fopen is On but allow_url_include is Off. Not sure if this may cause any problems.
This is what i’ve done which works fine but I have to remove the code from sf-shortcodes.php, not a problem as it only takes a minute but wonder if there is a way of removing/overriding the parent function in the child for future updated, i’ve tried using various remove/add filters but not succeeded!!
This is the code I have in my child functions…
function themeit_mce_buttons_2( $buttons ) { array_unshift( $buttons, 'styleselect' ); return $buttons; } add_filter( 'mce_buttons_2', 'themeit_mce_buttons_2' ); function themeit_tiny_mce_before_init( $settings ) { $style_formats = array( array( 'title' => 'Intro Text', 'inline' => 'span', 'classes' => 'introtext' ), array( 'title' => 'Title', 'inline' => 'span', 'classes' => 'title' ), array( 'title' => 'Impact Text', 'selector' => 'p', 'classes' => 'impact-text' ), array( 'title' => 'Impact Text Large', 'selector' => 'p', 'classes' => 'impact-text-large' ) ); $settings['style_formats'] = json_encode( $style_formats ); return $settings; } add_filter( 'tiny_mce_before_init', 'themeit_tiny_mce_before_init' ); function custom_excerpt_length( $length ) { return 16; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
-
Posted in: We hit Power Elite.