Home page post line height
Support Area › Forums › Foundation › Home page post line height
- This topic has 18 replies, 2 voices, and was last updated 11 years, 10 months ago by Teresa Bembury.
-
AuthorPosts
-
June 2, 2012 at 21:24 #6258Teresa BemburyParticipant
Bill
Perhaps firstly I appreciate your patience.
I’m almost done with my site, after I figure out how to change the donation graphbar color ( i see you have a forum on it so I won’t bother you on that),AND FIX
TWO design styles that are driving me mad. I spent quite some time trying to figure which css style it was to make the follow changes.
1st: Homepage side bar. I want the text out of the box. I want the Headline text a color, background white, and paragraph text black.
2. My home page post (on right/bottom) There are GIANT GAPS in line height btw heading, post data info and where post copy begin. I tried not to bother you about this, but I havent figure it out so maybe you can advise.
My site: http://powerfulparentsllc.org/
Much MUCH thanks.
June 5, 2012 at 11:23 #6286Bill RobbinsModeratorTeresa,
Sorry for the delay. My wife and I have been out of town celebrating our anniversary and I haven’t quite caught up just yet.
Home Page Sidebar
Here are the styles that you’ll need to change the home page widgets:#top-sidebar .widget.shadow-little, #home-widgets .widget.shadow-little { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; color: #000; } .home h4.widgettitle { background: transparent; color: #000; }
That should take out the box (it’s a shadow) and then make the title background transparent and set the text color (except for links) to black.
Gaps
It looks like there is an empty paragraph at the start of the home page posts that’s causing too much space to be there. Check inside your posts and make sure they start at the top of the content box.
If you run into any other trouble, please feel free to ask.
Thanks,
BillJune 6, 2012 at 09:45 #6304Teresa BemburyParticipantWelcome back – I’m sure you deserve a trip or two or three. I did wonder if you sleep? 🙂
Your service is amazing.June 6, 2012 at 09:57 #6305Teresa BemburyParticipantoh and Thank you
June 6, 2012 at 16:35 #6312Bill RobbinsModeratorThanks Teresa. As a dad of three small boys sleep doesn’t happen nearly as often as I’d like it too.
If you need anything else, just let me know,
BillJune 7, 2012 at 07:21 #6325Teresa BemburyParticipantBill, 3 boys LOL, a lot of energy.. I can imagine 🙂
So as I never really want to bother you with things I should try to figure out. But I’m still haven’t figure this one out. I’m still having the big gap in line height that I mentioned in my previous post. You suggested to check paragraph space, which I did and all was perfect. Is it a padding somewhere? Any other suggestion?
See below I copied and paste original concern.
My home page post (on right/bottom) There are GIANT GAPS in line height btw heading, post data info and where post copy begin. I
My site: http://powerfulparentsllc.org/
A million thanks
June 7, 2012 at 09:06 #6326Bill RobbinsModeratorTheresa,
Enough energy to run a small city.
I did trace the source of the extra paragraph and released an update to the theme that will take care of it. If you’d like to make the change manually you can. Here’s what to do:
- Go to the Appearance section and select edit to open up the theme editor.
- From the list of files on your right, choose functions.php
- Look for this spot:
function the_content_limit($max_char, $more_link_text = 'Read More', $stripteaser = 0, $more_file = '') { $content = get_the_content($more_link_text, $stripteaser, $more_file); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); if (strlen($_GET['p']) > 0) { echo "
"; echo $content; echo " "."Read More"; echo "
"; } else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) { $content = substr($content, 0, $espacio); $content = $content; echo ""; echo $content; echo "..."; echo " ".$more_link_text.""; echo "
"; } else { echo ""; echo $content; echo "
"; } } - Replace that with this:
- Save your changes.
See if that doesn’t resolve the issue. If you still have trouble, let me know,
BillJune 7, 2012 at 09:33 #6329Teresa BemburyParticipantI love messing with PHP, it is something I inevitably will learn.
Thank you. I’ll let you know.June 7, 2012 at 09:49 #6330Bill RobbinsModeratorMessing with PHP is how I got started in this whole thing. Have fun.
June 7, 2012 at 10:00 #6332Teresa BemburyParticipantBill,
I pasted the new php and got “Parse error: syntax error, unexpected ‘;’ in /home/content/45/9406745/html/wp-content/themes/foundation/functions.php on line 248”,So I paste back original php and am getting same message. I wish WP had a revert to save. Help .
Thanks.
June 7, 2012 at 10:02 #6333Teresa BemburyParticipantBelow is copy and paste of entire functionsphp
__( ‘Primary Navigation’, ‘organizedthemes’ ),
) );//Add home link in navigation builder
function organizedthemes_add_home( $args ) {
$args[‘show_home’] = true;
return $args;
}add_filter( ‘wp_page_menu_args’, ‘organizedthemes_add_home’ );
// include required files
include(TEMPLATEPATH.”/includes/body-tag.php”);
include(TEMPLATEPATH.”/includes/custom-css.php”);
include(TEMPLATEPATH.”/includes/post-templates.php”);
include(TEMPLATEPATH.”/includes/gallery-functions.php”);
include(TEMPLATEPATH.”/includes/comment-functions.php”);
include(TEMPLATEPATH.”/includes/custom-post-types.php”);
include(TEMPLATEPATH.”/includes/custom-meta-boxes/foundation.php”);
include(TEMPLATEPATH.”/includes/widget-video.php”);
include(TEMPLATEPATH.”/includes/widget-mailchimp.php”);
include(TEMPLATEPATH.”/includes/widget-donate.php”);
include(TEMPLATEPATH.”/includes/widget-featured-page.php”);
include(TEMPLATEPATH.”/includes/widget-facebook-like-box.php”);// Add CSS to Visual Editor
add_editor_style(‘editor-style.css’);// Add body class to Visual Editor to match class used live
function mytheme_mce_settings( $initArray ){
$initArray[‘body_class’] = ‘post’;
return $initArray;
}
add_filter( ‘tiny_mce_before_init’, ‘mytheme_mce_settings’ );// Featured Images
add_theme_support(‘post-thumbnails’);
add_image_size(‘slide’, 630, 420, true);
add_image_size(‘single’, 960, 350, true);
add_image_size(‘staff-full’, 400, 400, true);
add_image_size(‘facebook-slide’, 500, 333, true);
add_image_size(‘home-thumbnail’, 300, 200, true);
add_image_size(‘staff-thumbnail’, 200, 200, true);
add_image_size(‘sponsor-thumbnail’, 290, 290, true);// Remove WP Generator and other items from header for security and SEO reasons
remove_action(‘wp_head’, ‘rsd_link’);
remove_action(‘wp_head’, ‘wlwmanifest_link’);
remove_action(‘wp_head’, ‘index_rel_link’);
remove_action(‘wp_head’, ‘wp_generator’);// Define Theme Content Width
if ( ! isset( $content_width ) ) $content_width = 630;// Tripm Excerpt . . .
function trim_excerpt($text) {
return rtrim($text,'[…]’);
}
add_filter(‘get_the_excerpt’, ‘trim_excerpt’);// Remove default css for wp-pagenavi
add_action( ‘wp_print_styles’, ‘my_deregister_styles’, 100 );function my_deregister_styles() {
wp_deregister_style( ‘wp-pagenavi’ );
}// Register Widgets
add_action( ‘init’, ‘organizedthemes_sidebars’ );function organizedthemes_sidebars() {
register_sidebar( array(
‘name’ => __(‘Home Top’, ‘organizedthemes’),
‘id’ => ‘home_top’,
‘description’ => __(‘This sidebar to the right of the slideshow on the home page.’, ‘organizedthemes’),
‘before_widget’ => ‘‘,
‘after_widget’ => ‘‘,
‘before_title’ => ‘‘,
‘after_title’ => ‘‘
) );
register_sidebar( array(
‘name’ => __(‘Home Bottom’, ‘organizedthemes’),
‘id’ => ‘home_bottom’,
‘description’ => __(‘This area is for the bottom of the homepage’, ‘organizedthemes’),
‘before_widget’ => ‘‘,
‘after_widget’ => ‘‘,
‘before_title’ => ‘‘,
‘after_title’ => ‘‘
) );
register_sidebar( array(
‘name’ => __(‘Default Sidebar’, ‘organizedthemes’),
‘id’ => ‘sidebar_default’,
‘description’ => __(‘This sidebar will be used on all inside pages unless one of the more specific ones below is active.’, ‘organizedthemes’),
‘before_widget’ => ‘‘,
‘after_widget’ => ‘‘,
‘before_title’ => ‘‘,
‘after_title’ => ‘‘
) );
register_sidebar( array(
‘name’ => __(‘Post Sidebar’, ‘organizedthemes’),
‘id’ => ‘post_sidebar’,
‘description’ => __(‘Sidebar on all posts and archives’, ‘organizedthemes’),
‘before_widget’ => ‘‘,
‘after_widget’ => ‘‘,
‘before_title’ => ‘‘,
‘after_title’ => ‘‘
) );
register_sidebar( array(
‘name’ => __(‘Page Sidebar’, ‘organizedthemes’),
‘id’ => ‘page_sidebar’,
‘description’ => __(‘Sidebar on all pages’, ‘organizedthemes’),
‘before_widget’ => ‘‘,
‘after_widget’ => ‘‘,
‘before_title’ => ‘‘,
‘after_title’ => ‘‘
) );
register_sidebar( array(
‘name’ => __(‘Staff Sidebar’, ‘organizedthemes’),
‘id’ => ‘staff_sidebar’,
‘description’ => __(‘Sidebar on the staff page’, ‘organizedthemes’),
‘before_widget’ => ‘‘,
‘after_widget’ => ‘‘,
‘before_title’ => ‘‘,
‘after_title’ => ‘‘
) );
register_sidebar( array(
‘name’ => __(‘Press Sidebar’, ‘organizedthemes’),
‘id’ => ‘press_sidebar’,
‘description’ => __(‘Sidebar on the press posts and category’, ‘organizedthemes’),
‘before_widget’ => ‘‘,
‘after_widget’ => ‘‘,
‘before_title’ => ‘‘,
‘after_title’ => ‘‘
) );register_sidebar( array(
‘name’ => __(‘Category Sidebar’, ‘organizedthemes’),
‘id’ => ‘sidebar_category’,
‘description’ => __(‘Sidebar for category archives’, ‘organizedthemes’),
‘before_widget’ => ‘‘,
‘after_widget’ => ‘‘,
‘before_title’ => ‘‘,
‘after_title’ => ‘‘
) );
register_sidebar( array(
‘name’ => __(‘Sponsor Sidebar’, ‘organizedthemes’),
‘id’ => ‘sponsor_sidebar’,
‘description’ => __(‘Sidebar for the sponsor section’, ‘organizedthemes’),
‘before_widget’ => ‘‘,
‘after_widget’ => ‘‘,
‘before_title’ => ‘‘,
‘after_title’ => ‘‘
) );
register_sidebar( array(
‘name’ => __(‘Facebook–Full Width’, ‘organizedthemes’),
‘id’ => ‘facebook_full’,
‘description’ => __(‘Widget area on Facebook page that is full-width’, ‘organizedthemes’),
‘before_widget’ => ‘‘,
‘after_widget’ => ‘‘,
‘before_title’ => ‘‘,
‘after_title’ => ‘‘
) );
register_sidebar( array(
‘name’ => __(‘Facebook–Half Width’, ‘organizedthemes’),
‘id’ => ‘facebook_sidebar’,
‘description’ => __(‘Widget area on Facebook page that is half-width’, ‘organizedthemes’),
‘before_widget’ => ‘‘,
‘after_widget’ => ‘‘,
‘before_title’ => ‘‘,
‘after_title’ => ‘‘
) );
}// remove inline styling from recent comments widget
function twentyten_remove_recent_comments_style() {
global $wp_widget_factory;
remove_action( ‘wp_head’, array( $wp_widget_factory->widgets[‘WP_Widget_Recent_Comments’], ‘recent_comments_style’ ) );
}
add_action( ‘widgets_init’, ‘twentyten_remove_recent_comments_style’ );// disable calendar and recent comments widgets
function unregister_default_wp_widgets() {
unregister_widget(‘WP_Widget_Calendar’);
}
add_action(‘widgets_init’, ‘unregister_default_wp_widgets’, 1);// Flush rewrite rules on theme activation
function organizedthemes_flush_rewrite() {
global $pagenow, $wp_rewrite;if ( ‘themes.php’ == $pagenow && isset( $_GET[‘activated’] ) )
$wp_rewrite->flush_rules();
}add_action( ‘load-themes.php’, ‘organizedthemes_flush_rewrite’ );
// Include Content Limit function
function the_content_limit($max_char, $more_link_text = ‘Read More’, $stripteaser = 0, $more_file = ”) {$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters(‘the_content’, $content);
$content = str_replace(‘]]>’, ‘]]>’, $content);if (strlen($_GET[‘p’]) > 0) {
echo ““;
echo $content;
echo ” “.”Read More“;
echo ““;
}else if ((strlen($content)>$max_char) && ($espacio = strpos($content, ” “, $max_char ))) {
$content = substr($content, 0, $espacio);
$content = $content;
echo ““;
echo $content;
echo “…”;
echo ” “.$more_link_text.”“;
echo ““;
}else {
echo ““;
echo $content;
echo ““;
}
}// options framework
if ( !function_exists( ‘optionsframework_init’ ) ) {
define( ‘OPTIONS_FRAMEWORK_DIRECTORY’, get_template_directory_uri() . ‘/admin/’ );
require_once dirname( __FILE__ ) . ‘/admin/options-framework.php’;
}// Override default textarea sanitization to allow iframes
add_action(‘admin_init’,’optionscheck_change_santiziation’, 100);
function optionscheck_change_santiziation() {
remove_filter( ‘of_sanitize_textarea’, ‘of_sanitize_textarea’ );
add_filter( ‘of_sanitize_textarea’, ‘of_sanitize_textarea_custom’ );
}function of_sanitize_textarea_custom($input) {
global $allowedtags;
$of_custom_allowedtags[“iframe”] = array(
“src” => array(),
“type” => array(),
“allowfullscreen” => array(),
“allowscriptaccess” => array(),
“height” => array(),
“width” => array()
);$of_custom_allowedtagss[“object”] = array(
“height” => array(),
“width” => array()
);$of_custom_allowedtagss[“param”] = array(
“name” => array(),
“value” => array()
);$of_custom_allowedtags[“embed”] = array(
“src” => array(),
“type” => array(),
“allowfullscreen” => array(),
“allowscriptaccess” => array(),
“height” => array(),
“width” => array()
);$of_custom_allowedtags = array_merge($of_custom_allowedtags, $allowedtags);
$output = wp_kses( $input, $of_custom_allowedtags);
return $output;
}// include organized themes gallery
if(of_get_option(‘gallery_include’) == ‘yes’) {
include(TEMPLATEPATH.”/includes/ot-gallery/ot-gallery.php”);
}// include press trends
if(of_get_option(‘presstrends’) == ‘yes’) {
include(TEMPLATEPATH.”/includes/press-trends.php”);
}// load jigoshop functions
include(TEMPLATEPATH.”/includes/jigoshop.php”);
?>June 7, 2012 at 10:07 #6335Bill RobbinsModeratorHere’s what the full file would look like:
June 7, 2012 at 10:13 #6336Teresa BemburyParticipantBelow is copy and paste of entire functionsphp
__( \’Primary Navigation\’, \’organizedthemes\’ ),
) );//Add home link in navigation builder
function organizedthemes_add_home( $args ) {
$args[\’show_home\’] = true;
return $args;
}add_filter( \’wp_page_menu_args\’, \’organizedthemes_add_home\’ );
// include required files
include(TEMPLATEPATH.\”/includes/body-tag.php\”);
include(TEMPLATEPATH.\”/includes/custom-css.php\”);
include(TEMPLATEPATH.\”/includes/post-templates.php\”);
include(TEMPLATEPATH.\”/includes/gallery-functions.php\”);
include(TEMPLATEPATH.\”/includes/comment-functions.php\”);
include(TEMPLATEPATH.\”/includes/custom-post-types.php\”);
include(TEMPLATEPATH.\”/includes/custom-meta-boxes/foundation.php\”);
include(TEMPLATEPATH.\”/includes/widget-video.php\”);
include(TEMPLATEPATH.\”/includes/widget-mailchimp.php\”);
include(TEMPLATEPATH.\”/includes/widget-donate.php\”);
include(TEMPLATEPATH.\”/includes/widget-featured-page.php\”);
include(TEMPLATEPATH.\”/includes/widget-facebook-like-box.php\”);// Add CSS to Visual Editor
add_editor_style(\’editor-style.css\’);// Add body class to Visual Editor to match class used live
function mytheme_mce_settings( $initArray ){
$initArray[\’body_class\’] = \’post\’;
return $initArray;
}
add_filter( \’tiny_mce_before_init\’, \’mytheme_mce_settings\’ );// Featured Images
add_theme_support(\’post-thumbnails\’);
add_image_size(\’slide\’, 630, 420, true);
add_image_size(\’single\’, 960, 350, true);
add_image_size(\’staff-full\’, 400, 400, true);
add_image_size(\’facebook-slide\’, 500, 333, true);
add_image_size(\’home-thumbnail\’, 300, 200, true);
add_image_size(\’staff-thumbnail\’, 200, 200, true);
add_image_size(\’sponsor-thumbnail\’, 290, 290, true);// Remove WP Generator and other items from header for security and SEO reasons
remove_action(\’wp_head\’, \’rsd_link\’);
remove_action(\’wp_head\’, \’wlwmanifest_link\’);
remove_action(\’wp_head\’, \’index_rel_link\’);
remove_action(\’wp_head\’, \’wp_generator\’);// Define Theme Content Width
if ( ! isset( $content_width ) ) $content_width = 630;// Tripm Excerpt . . .
function trim_excerpt($text) {
return rtrim($text,\'[…]\’);
}
add_filter(\’get_the_excerpt\’, \’trim_excerpt\’);// Remove default css for wp-pagenavi
add_action( \’wp_print_styles\’, \’my_deregister_styles\’, 100 );function my_deregister_styles() {
wp_deregister_style( \’wp-pagenavi\’ );
}// Register Widgets
add_action( \’init\’, \’organizedthemes_sidebars\’ );function organizedthemes_sidebars() {
register_sidebar( array(
\’name\’ => __(\’Home Top\’, \’organizedthemes\’),
\’id\’ => \’home_top\’,
\’description\’ => __(\’This sidebar to the right of the slideshow on the home page.\’, \’organizedthemes\’),
\’before_widget\’ => \’\’,
\’after_widget\’ => \’\’,
\’before_title\’ => \’\’,
\’after_title\’ => \’\’
) );
register_sidebar( array(
\’name\’ => __(\’Home Bottom\’, \’organizedthemes\’),
\’id\’ => \’home_bottom\’,
\’description\’ => __(\’This area is for the bottom of the homepage\’, \’organizedthemes\’),
\’before_widget\’ => \’\’,
\’after_widget\’ => \’\’,
\’before_title\’ => \’\’,
\’after_title\’ => \’\’
) );
register_sidebar( array(
\’name\’ => __(\’Default Sidebar\’, \’organizedthemes\’),
\’id\’ => \’sidebar_default\’,
\’description\’ => __(\’This sidebar will be used on all inside pages unless one of the more specific ones below is active.\’, \’organizedthemes\’),
\’before_widget\’ => \’\’,
\’after_widget\’ => \’\’,
\’before_title\’ => \’\’,
\’after_title\’ => \’\’
) );
register_sidebar( array(
\’name\’ => __(\’Post Sidebar\’, \’organizedthemes\’),
\’id\’ => \’post_sidebar\’,
\’description\’ => __(\’Sidebar on all posts and archives\’, \’organizedthemes\’),
\’before_widget\’ => \’\’,
\’after_widget\’ => \’\’,
\’before_title\’ => \’\’,
\’after_title\’ => \’\’
) );
register_sidebar( array(
\’name\’ => __(\’Page Sidebar\’, \’organizedthemes\’),
\’id\’ => \’page_sidebar\’,
\’description\’ => __(\’Sidebar on all pages\’, \’organizedthemes\’),
\’before_widget\’ => \’\’,
\’after_widget\’ => \’\’,
\’before_title\’ => \’\’,
\’after_title\’ => \’\’
) );
register_sidebar( array(
\’name\’ => __(\’Staff Sidebar\’, \’organizedthemes\’),
\’id\’ => \’staff_sidebar\’,
\’description\’ => __(\’Sidebar on the staff page\’, \’organizedthemes\’),
\’before_widget\’ => \’\’,
\’after_widget\’ => \’\’,
\’before_title\’ => \’\’,
\’after_title\’ => \’\’
) );
register_sidebar( array(
\’name\’ => __(\’Press Sidebar\’, \’organizedthemes\’),
\’id\’ => \’press_sidebar\’,
\’description\’ => __(\’Sidebar on the press posts and category\’, \’organizedthemes\’),
\’before_widget\’ => \’\’,
\’after_widget\’ => \’\’,
\’before_title\’ => \’\’,
\’after_title\’ => \’\’
) );register_sidebar( array(
\’name\’ => __(\’Category Sidebar\’, \’organizedthemes\’),
\’id\’ => \’sidebar_category\’,
\’description\’ => __(\’Sidebar for category archives\’, \’organizedthemes\’),
\’before_widget\’ => \’\’,
\’after_widget\’ => \’\’,
\’before_title\’ => \’\’,
\’after_title\’ => \’\’
) );
register_sidebar( array(
\’name\’ => __(\’Sponsor Sidebar\’, \’organizedthemes\’),
\’id\’ => \’sponsor_sidebar\’,
\’description\’ => __(\’Sidebar for the sponsor section\’, \’organizedthemes\’),
\’before_widget\’ => \’\’,
\’after_widget\’ => \’\’,
\’before_title\’ => \’\’,
\’after_title\’ => \’\’
) );
register_sidebar( array(
\’name\’ => __(\’Facebook–Full Width\’, \’organizedthemes\’),
\’id\’ => \’facebook_full\’,
\’description\’ => __(\’Widget area on Facebook page that is full-width\’, \’organizedthemes\’),
\’before_widget\’ => \’\’,
\’after_widget\’ => \’\’,
\’before_title\’ => \’\’,
\’after_title\’ => \’\’
) );
register_sidebar( array(
\’name\’ => __(\’Facebook–Half Width\’, \’organizedthemes\’),
\’id\’ => \’facebook_sidebar\’,
\’description\’ => __(\’Widget area on Facebook page that is half-width\’, \’organizedthemes\’),
\’before_widget\’ => \’\’,
\’after_widget\’ => \’\’,
\’before_title\’ => \’\’,
\’after_title\’ => \’\’
) );
}// remove inline styling from recent comments widget
function twentyten_remove_recent_comments_style() {
global $wp_widget_factory;
remove_action( \’wp_head\’, array( $wp_widget_factory->widgets[\’WP_Widget_Recent_Comments\’], \’recent_comments_style\’ ) );
}
add_action( \’widgets_init\’, \’twentyten_remove_recent_comments_style\’ );// disable calendar and recent comments widgets
function unregister_default_wp_widgets() {
unregister_widget(\’WP_Widget_Calendar\’);
}
add_action(\’widgets_init\’, \’unregister_default_wp_widgets\’, 1);// Flush rewrite rules on theme activation
function organizedthemes_flush_rewrite() {
global $pagenow, $wp_rewrite;if ( \’themes.php\’ == $pagenow && isset( $_GET[\’activated\’] ) )
$wp_rewrite->flush_rules();
}add_action( \’load-themes.php\’, \’organizedthemes_flush_rewrite\’ );
// Include Content Limit function
function the_content_limit($max_char, $more_link_text = \’Read More\’, $stripteaser = 0, $more_file = \’\’) {$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters(\’the_content\’, $content);
$content = str_replace(\’]]>\’, \’]]>\’, $content);if (strlen($_GET[\’p\’]) > 0) {
echo \”\”;
echo $content;
echo \” \”.\”Read More\”;
echo \”\”;
}else if ((strlen($content)>$max_char) && ($espacio = strpos($content, \” \”, $max_char ))) {
$content = substr($content, 0, $espacio);
$content = $content;
echo \”\”;
echo $content;
echo \”…\”;
echo \” \”.$more_link_text.\”\”;
echo \”\”;
}else {
echo \”\”;
echo $content;
echo \”\”;
}
}// options framework
if ( !function_exists( \’optionsframework_init\’ ) ) {
define( \’OPTIONS_FRAMEWORK_DIRECTORY\’, get_template_directory_uri() . \’/admin/\’ );
require_once dirname( __FILE__ ) . \’/admin/options-framework.php\’;
}// Override default textarea sanitization to allow iframes
add_action(\’admin_init\’,\’optionscheck_change_santiziation\’, 100);
function optionscheck_change_santiziation() {
remove_filter( \’of_sanitize_textarea\’, \’of_sanitize_textarea\’ );
add_filter( \’of_sanitize_textarea\’, \’of_sanitize_textarea_custom\’ );
}function of_sanitize_textarea_custom($input) {
global $allowedtags;
$of_custom_allowedtags[\”iframe\”] = array(
\”src\” => array(),
\”type\” => array(),
\”allowfullscreen\” => array(),
\”allowscriptaccess\” => array(),
\”height\” => array(),
\”width\” => array()
);$of_custom_allowedtagss[\”object\”] = array(
\”height\” => array(),
\”width\” => array()
);$of_custom_allowedtagss[\”param\”] = array(
\”name\” => array(),
\”value\” => array()
);$of_custom_allowedtags[\”embed\”] = array(
\”src\” => array(),
\”type\” => array(),
\”allowfullscreen\” => array(),
\”allowscriptaccess\” => array(),
\”height\” => array(),
\”width\” => array()
);$of_custom_allowedtags = array_merge($of_custom_allowedtags, $allowedtags);
$output = wp_kses( $input, $of_custom_allowedtags);
return $output;
}// include organized themes gallery
if(of_get_option(\’gallery_include\’) == \’yes\’) {
include(TEMPLATEPATH.\”/includes/ot-gallery/ot-gallery.php\”);
}// include press trends
if(of_get_option(\’presstrends\’) == \’yes\’) {
include(TEMPLATEPATH.\”/includes/press-trends.php\”);
}// load jigoshop functions
include(TEMPLATEPATH.\”/includes/jigoshop.php\”);
?>June 7, 2012 at 10:18 #6338Teresa BemburyParticipantThanks.. So I’m I little nervous, since my first action didn’t turn out so well, even after I pasted back the original code.
Should I copy and paste entire functions.php code 🙂 or go back to culprit section
June 7, 2012 at 10:20 #6340Teresa BemburyParticipantActually, I copied and paste the culprit area again, and am still getting message
Parse error: syntax error, unexpected ‘;’ in /home/content/45/9406745/html/wp-content/themes/foundation/functions.php on line 248.Which affects entire site. Help.
Oh excuse the redundant email on code. I think I pressed the reply button twice.
June 7, 2012 at 10:22 #6341Bill RobbinsModeratorI’d copy the whole code from the last post. I tested it here before I posted it so it should work. You can also download the theme update. It has the updated code in a separate file to make things a bit less cluttered.
If you have trouble, let me know.
June 7, 2012 at 11:41 #6342Teresa BemburyParticipantBill
HI Bill, I wasn’t getting into my website (and even WPloggin) because of parse error, so
I went into GoDaddy host backup files and reverted my site back to yesterdays version. I think I’ll leave that section alone until I understand php better. My client didn’t complain…
When you can let me know what you think?June 7, 2012 at 14:25 #6345Bill RobbinsModeratorTeresa,
Here’s probably the easiest, most certain way. Download the theme update and unzip the file. Delete the style.css file that inside the theme folder. Next use a FTP program to upload the new theme files to the wp-content/themes/foundation folder and override the existing files.
That will update the theme and keep the changes you made to the style.css file intact.
If you need help or would like me to tackle that for you, I’d be glad to.
Bill
June 9, 2012 at 06:33 #6357Teresa BemburyParticipantHi Bill, I was away from web focus for couple of days… I just want to say thank you.. for your extraordinary patience. I haven’t uploaded the new theme yet, so I do it today.
-
AuthorPosts
- The topic ‘Home page post line height’ is closed to new replies.