• Hello,

    Maybe if I do my best to describe my problem it will make it easier for the community to help me. So here it goes.

    The problem we are having is that the blog section on our website has a double comments box.

    What I mean is that quite literally, we have one comments box stacked on top of another.

    Keep in mind that our blog is merely part of our website, and the blog is not a blog site that stands alone.

    So you go to our homepage:

    http://www.unival-med.com/

    And then from our menu at the top you’d click the purple link that says “blog”.

    It then takes you to our blog page where the blog posts are listed by date. There is only one post there because we’ve avoided using the blog until we can fix the double comments issue:
    http://www.unival-med.com/?page_id=1546

    When you click the “Read More” button under the blog post it takes you to the post where you can see it has a double comments box.

    Take a look:

    http://www.unival-med.com/?p=1168

    Now I’m pretty sure it’s a coding issue within one of the theme templates, but I checked the most likely areas and I couldn’t solve the double comments box issue.

    I tried looking at the admin/theme-options.php:

    <?php
    
    add_action('init','of_options');
    
    if (!function_exists('of_options')) {
    function of_options(){
    
    // VARIABLES
    $themename = get_theme_data(STYLESHEETPATH . '/style.css');
    $themename = $themename['Name'];
    $shortname = "vulcan";
    
    // Populate OptionsFramework option in array for use in theme
    global $of_options;
    $of_options = get_option('of_options');
    
    $GLOBALS['template_path'] = OF_DIRECTORY;
    
    //Access the WordPress Categories via an Array
    $of_categories = array();
    $of_categories_obj = get_categories('hide_empty=0');
    foreach ($of_categories_obj as $of_cat) {
      $of_categories[$of_cat->cat_ID] = $of_cat->cat_name;
    }
    //$categories_tmp = array_unshift($of_categories, "Select a category:");    
    
    $of_slide_categories = array();
    $slideshow_categories = get_categories('taxonomy=slideshow_category&orderby=ID&title_li=&hide_empty=0');
    foreach ($slideshow_categories as $slide_category) {
      $of_slide_categories[$slide_category->cat_ID] = $slide_category->cat_name;
    }
    
    $of_product_categories = array();
    $product_categories = get_categories('taxonomy=product_category&orderby=ID&title_li=&hide_empty=0');
    foreach ($product_categories as $product_category) {
      $of_product_categories[$product_category->cat_ID] = $product_category->cat_name;
    }
    
    //Access the WordPress Pages via an Array
    $of_pages = array();
    $of_pages_obj = get_pages('parent=0');
    foreach ($of_pages_obj as $of_page) {
      $of_pages[$of_page->ID] = $of_page->post_title;
    }
    //$of_pages_tmp = array_unshift($of_pages, "Select a page:");       
    
    // Image Alignment radio box
    $options_thumb_align = array("alignleft" => "Left","alignright" => "Right","aligncenter" => "Center"); 
    
    // Image Links to Options
    $options_image_link_to = array("image" => "The Image","post" => "The Post"); 
    
    //Testing
    $options_select = array("one","two","three","four","five");
    $options_radio = array("one" => "One","two" => "Two","three" => "Three","four" => "Four","five" => "Five"); 
    
    //Stylesheets Reader
    $alt_stylesheet_path = OF_FILEPATH . '/styles/';
    $alt_stylesheets = array();
    
    if ( is_dir($alt_stylesheet_path) ) {
        if ($alt_stylesheet_dir = opendir($alt_stylesheet_path) ) {
            while ( ($alt_stylesheet_file = readdir($alt_stylesheet_dir)) !== false ) {
                if(stristr($alt_stylesheet_file, ".css") !== false) {
                    $alt_stylesheets[] = $alt_stylesheet_file;
                }
            }
        }
    }
    
    /* Get Cufon fonts into a drop-down list */
    $cufonts = array();
    if(is_dir(TEMPLATEPATH . "/js/fonts/")) {
    	if($open_dirs = opendir(TEMPLATEPATH . "/js/fonts")) {
    		while(($cufontfonts = readdir($open_dirs)) !== false) {
    			if(stristr($cufontfonts, ".js") !== false) {
    				$cufonts[] = $cufontfonts;
    			}
    		}
    	}
    }
    $cufonts_dropdown = $cufonts;
    
    //More Options
    $uploads_arr = wp_upload_dir();
    $all_uploads_path = $uploads_arr['path'];
    $all_uploads = get_option('of_uploads');
    $other_entries = array("Select a number:","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19");
    $body_repeat = array("no-repeat","repeat-x","repeat-y","repeat");
    $body_pos = array("top left","top center","top right","center left","center center","center right","bottom left","bottom center","bottom right");
    
    $slide_effects = array("fade","cover","uncover","scrollUp","scrollDown","scrollRight","scrollLeft","scrollHorz","scrollVert");
    // Set the Options Array
    $options = array();
    
    $options[] = array( "name" => "General Settings",
                        "icon" => "general",
                        "type" => "heading");
    
    $options[] = array( "type" => "info",
                        "std" => "General settings for your site that will be used in general pages");
    
    $options[] = array( "name" => "Custom Logo",
    					"desc" => "Upload your site logo, recommended size is 134x46px",
    					"id" => $shortname."_logo",
    					"std" => "",
    					"type" => "upload");
    
    $options[] = array( "name" => "Custom Favicon",
    					"desc" => "Upload a 16px x 16px Png/Gif image that will represent your website's favicon.",
    					"id" => $shortname."_custom_favicon",
    					"std" => "",
    					"type" => "upload"); 
    
    $options[] = array( "name" => "Tracking Code",
    					"desc" => "Paste your Google Analytics (or other) tracking code here. This will be added into the footer template of your theme.",
    					"id" => $shortname."_ga_code",
    					"std" => "",
    					"type" => "textarea");                       
    
    $options[] = array( "name" => "404 Text",
    					"desc" => "Enter your 404 (Page Not Found) Text here.",
    					"id" => $shortname."_404_text",
    					"std" => "",
    					"type" => "textarea");         
    
    $options[] = array( "name" => "Footer Logo",
    					"desc" => "Upload your footer logo site, recommended size is 132x46px",
    					"id" => $shortname."_footer_logo",
    					"std" => "",
    					"type" => "upload");
    
    $options[] = array( "name" => "Footer Text",
    					"desc" => "Enter your site copyright here.",
    					"id" => $shortname."_footer_text",
    					"std" => "",
    					"type" => "textarea");                                                
    
    $options[] = array( "name" => "Pages & Categories",
                        "icon" => "page_cat",
                        "type" => "heading");
    
    $options[] = array( "name" => "Your About page",
    					"desc" => "Select your about page.",
    					"id" => $shortname."_about_pid",
    					"std" => "",
    					"type" => "select",
    					"options" => $of_pages);
    
    $options[] = array( "name" => "Your Services page",
    					"desc" => "Select your Services page.",
    					"id" => $shortname."_services_pid",
    					"std" => "",
    					"type" => "select",
    					"options" => $of_pages);
    
    $options[] = array( "name" => "Services page Order",
    					"desc" => "Select your order parameter for your services page tems.",
    					"id" => $shortname."_services_order",
    					"std" => "",
    					"type" => "select",
    					"options" => array("author","date","title","modified","menu_order","parent","ID","rand"));				
    
    $options[] = array( "name" => "Your Contact page",
    					"desc" => "Select your contact page.",
    					"id" => $shortname."_contact_pid",
    					"std" => "",
    					"type" => "select",
    					"options" => $of_pages);
    
    $options[] = array( "name" => "Your Testimonial Category",
    					"desc" => "Select your Testimonial category.",
    					"id" => $shortname."_testimonial_cid",
    					"std" => "",
    					"type" => "select",
    					"options" => $of_categories);
    
    $options[] = array( "name" => "Your Client Category",
    					"desc" => "Select your Client category.",
    					"id" => $shortname."_client_cid",
    					"std" => "",
    					"type" => "select",
    					"options" => $of_categories);
    
    $options[] = array( "name" => "Your Team Category",
    					"desc" => "Select your Team category.",
    					"id" => $shortname."_team_cid",
    					"std" => "",
    					"type" => "select",
    					"options" => $of_categories);
    
    $options[] = array( "name" => "Homepage Settings",
                        "icon" => "homepage",
                        "type" => "heading");
    
    $options[] = array( "type" => "info",
                        "std" => "Site Slogan setting for your site");
    
    $options[] = array( "name" => "Site Slogan",
    					"desc" => "Enter your brief site slogan here",
    					"id" => $shortname."_site_slogan",
    					"std" => "",
    					"type" => "textarea");
    
    $options[] = array( "type" => "info",
                        "std" => "3 columns Site features for homepage");
    
    $options[] = array( "name" => "Title for Homepage features box #1",
    					"desc" => "Enter your title for homepage features box #1",
    					"id" => $shortname."_homebox_title1",
    					"std" => "",
    					"type" => "text");
    
    $options[] = array( "name" => "Custom URL for Homepage features box #1",
    					"desc" => "Enter your custom URL for homepage features box #1",
    					"id" => $shortname."_homebox_desturl1",
    					"std" => "",
    					"type" => "text"); 
    
    $options[] = array( "name" => "Icon for Homepage features box #1",
    					"desc" => "Upload your icon for homepage features box #1, recommended size 68x64px, if you have a bigger size, image will be resized automatically",
    					"id" => $shortname."_homebox_image1",
    					"std" => "",
    					"type" => "upload");
    
    $options[] = array( "name" => "Short Description for Homepage features box #1",
    					"desc" => "Enter your brief short description for homepage features box #1",
    					"id" => $shortname."_homebox_desc1",
    					"std" => "",
    					"type" => "textarea");  
    
    $options[] = array( "name" => "Title for Homepage features box #2",
    					"desc" => "Enter your title for homepage features box #2",
    					"id" => $shortname."_homebox_title2",
    					"std" => "",
    					"type" => "text");
    
    $options[] = array( "name" => "Custom URL for Homepage features box #2",
    					"desc" => "Enter your custom URL for homepage features box #2",
    					"id" => $shortname."_homebox_desturl2",
    					"std" => "",
    					"type" => "text"); 
    
    $options[] = array( "name" => "Icon for Homepage features box #2",
    					"desc" => "Upload your icon for homepage features box #2, recommended size 68x64px, if you have a bigger size, image will be resized automatically",
    					"id" => $shortname."_homebox_image2",
    					"std" => "",
    					"type" => "upload");
    
    $options[] = array( "name" => "Short Description for Homepage features box #2",
    					"desc" => "Enter your brief short description for homepage features box #2",
    					"id" => $shortname."_homebox_desc2",
    					"std" => "",
    					"type" => "textarea");  
    
    $options[] = array( "name" => "Title for Homepage features box #3",
    					"desc" => "Enter your title for homepage features box #3",
    					"id" => $shortname."_homebox_title3",
    					"std" => "",
    					"type" => "text");
    
    $options[] = array( "name" => "Custom URL for Homepage features box #3",
    					"desc" => "Enter your custom URL for homepage features box #3",
    					"id" => $shortname."_homebox_desturl3",
    					"std" => "",
    					"type" => "text"); 
    
    $options[] = array( "name" => "Icon for Homepage features box #3",
    					"desc" => "Upload your icon for homepage features box #3, recommended size 68x64px, if you have a bigger size, image will be resized automatically",
    					"id" => $shortname."_homebox_image3",
    					"std" => "",
    					"type" => "upload");
    
    $options[] = array( "name" => "Short Description for Homepage features box #3",
    					"desc" => "Enter your brief short description for homepage features box #3",
    					"id" => $shortname."_homebox_desc3",
    					"std" => "",
    					"type" => "textarea");  
    
    $options[] = array( "type" => "info",
                        "std" => "Homepage Contact Info Section");
    
    $options[] = array( "name" => "Text Button",
    					"desc" => "Enter your text button here",
    					"id" => $shortname."_contactbox_text",
    					"std" => "",
    					"type" => "text");
    
    $options[] = array( "name" => "Contact info Link",
    					"desc" => "Enter custom URL for contact info link",
    					"id" => $shortname."_contactbox_link",
    					"std" => "",
    					"type" => "text");	          
    
    $options[] = array( "name" => "Icon/Image for Contact Info",
    					"desc" => "upload your icon or image for your quote box section, recommended size 63x56px, if you have a bigger size, image will be resized automatically",
    					"id" => $shortname."_contactbox_image",
    					"std" => "",
    					"type" => "upload");
    
    $options[] = 	array(	"name" => "Welcome Title",
    			"desc" => "Enter Your Welcome title here.",
                "id" => $shortname."_welcome_title",
                "type" => "text");
    
    $options[] = 	array(	"name" => "Website Description, will be displayed below 3 columns box",
    			"desc" => "Enter your <strong>Site Description</strong> here",
    			     "std" => "",
                "id" => $shortname."_site_desc",
                "type" => "textarea");    
    
    $options[] = array( "name" => "Slideshow Setting",
                        "icon" => "slideshow",
                        "type" => "heading");
    
    $options[] = array( "name" => "Slideshow Items Order",
    					"desc" => "Select your order parameter for slideshow items.",
    					"id" => $shortname."_slideshow_order",
    					"std" => "",
    					"type" => "select",
    					"options" => array("author","date","title","modified","menu_order","parent","ID","rand"));				                                                    
    
    $options[] = array( "name" => "Slide Speed",
    					"desc" => "Please enter your slideshow speed, eg. 3000",
    					"id" => $shortname."_slideshow_speed",
    					"std" => "3000",
    					"type" => "text");
    
    $options[]	= array(	"name" => "Transition Types",
        			"desc" => "Please select transition types for your slideshow translation effect.",
        			"id" => $shortname."_slide_transition",
        			"type" => "select",
              "options" => $slide_effects);
    
    $options[] = array( "name" => "Portfolio Options",
              "icon" => "portfolio",
    					"type" => "heading");
    
    $options[] = array( "name" => "Your Portfolio page",
    					"desc" => "Select your contact page.",
    					"id" => $shortname."_portfolio_page",
    					"std" => "",
    					"type" => "select",
    					"options" => $of_pages);
    
    $options[] = array( "name" => "Portfolio Items Order",
    					"desc" => "Select your order parameter for portfolio items.",
    					"id" => $shortname."_portfolio_order",
    					"std" => "",
    					"type" => "select",
    					"options" => array("author","date","title","modified","menu_order","parent","ID","rand"));				                                                    
    
    $options[] = 	array(	"name" => "Portfolio Page Heading",
    			"desc" => "Enter the text Heading for Portfolio page.",
                "id" => $shortname."_porto_heading",
                "type" => "text");
    
    $options[] = 	array(	"name" => "Portfolio Page Description",
    			"desc" => "Will be displayed in Portfolio page content.",
                "id" => $shortname."_porto_text",
                "std" => "",
                "type" => "textarea");
    
    $options[] = 	array(	"name" => "Number of posts per page to display in Portfolio Page",
    			"desc" => "Fill the number of post to display in Portfolio Page alternative.",
    			"id" => $shortname."_porto_num",
    			"std" => "",
    			"type" => "text");
    
    $options[] =   array(	"name" => "Display Portfolio items as two columns?",
              "desc" => "please check this option if you want to display your portfolio itesm in two columns.",
                "id" => $shortname."_portfolio_2col",
                "std" => "",
                "type" => "checkbox");  
    
    $options[] = array( "name" => "Blog Options",
              "icon" => "blog",
    					"type" => "heading"); 	   
    
    $options[] = array( "name" => "Blog Categories",
    					"desc" => "Please check the categories that you want to include in Blog page.",
    					"id" => $shortname."_blog_cats_include",
    					"std" => "",
    					"type" => "multicheck",
    					"options" => $of_categories);				  
    
    $options[] = 	array(	"name" => "Number of posts to display in Blog Page",
    			"desc" => "Select the number of post to display in Blog Page.",
    			"id" => $shortname."_blog_num",
    			"std" => "",
    			"type" => "text");
    
    $options[] = 	array(	"name" => "Number of Words",
    			"desc" => "Enter the number of words for Blog Excerpt.",
                "id" => $shortname."_blogtext",
                "type" => "text");
    
    $options[] = 	array(	"name" => "Read More text",
    			"desc" => "Enter the text for read more (eg : Read More, Continue Reading).",
                "id" => $shortname."_readmoretext",
                "type" => "text");
    $options[] =   array(	"name" => "Disable Author Box in single post?",
        "desc" => "check this option if you want to disable Author Box in Single Post",
        "id" => $shortname."_disable_authorbox",
        "std" => "false",
        "type" => "checkbox");
    
    $options[] = array( "name" => "Styling Options",
              "icon" => "styling",
    					"type" => "heading");
    
    $options[] = array( "name" => "Cufon Font",
    					"desc" => "Select your default cufon font.",
    					"id" => $shortname."_cufon_fonts",
    					"std" => "",
    					"type" => "select",
    					"options" => $cufonts);
    
    $url_bgcolor =  get_bloginfo('stylesheet_directory') . '/admin/images/bgcolor/';
    $options[] = array( "name" => "Predefined Skins",
    					"desc" => "Please select of one of predefined skins as your default skin.",
    					"id" => $shortname."_style",
    					"std" => "",
    					"type" => "images",
    					"options" => array(
    						'green.css' => $url_bgcolor . 'green.png',
    						'blue.css' => $url_bgcolor . 'blue.png',
    						'purple.css' => $url_bgcolor . 'purple.png',
                'orange.css' => $url_bgcolor . 'orange.png',
                'default.css' => $url_bgcolor . 'dark.png'
                ));
    
    $options[] = array( "name" => "Body Text Typograpy",
    					"desc" => "Please set this option if you want to use your custom styling for body text paragraph",
    					"id" => $shortname."_custom_body_text",
    					"std" => array('size' => '12','unit' => 'px','face' => 'Tahoma, Arial, verdana','color' => '#a5a6a6'),
    					"type" => "typography");
    
    $options[] = array( "name" => "Custom CSS",
              "desc" => "Quickly add some CSS to your theme by adding it to this block.",
              "id" => $shortname."_custom_css",
              "std" => "",
              "type" => "textarea");
    
    $options[] = array( "name" => "Contact Info",
              "icon" => "contact",
    					"type" => "heading");      
    
    $options[] = array( "name" => "Google Map API Key",
    					"desc" => "Please add your google map API key here, if you dont have one, you can signup at <a href='http://code.google.com/intl/en-US/apis/maps/signup.html'>http://code.google.com/intl/en-US/apis/maps/signup.html</a>",
    					"id" => $shortname."_google_map_key",
    					"std" => "",
    					"type" => "textarea");
    
    $options[] = 	array(	"name" => "Latitude",
    			"desc" => "Enter your latitude here, for quick search your latitude, please visit <a href='http://universimmedia.pagesperso-orange.fr/geo/loc.htm'>http://universimmedia.pagesperso-orange.fr/geo/loc.htm</a>",
    			"id" => $shortname."_info_latitude",
    			"type" => "text");
    
    $options[] = 	array(	"name" => "Longitude",
    			"desc" => "Enter your longitude here, for quick search your longitude, <a href='http://universimmedia.pagesperso-orange.fr/geo/loc.htm'>http://universimmedia.pagesperso-orange.fr/geo/loc.htm</a>",
    			"id" => $shortname."_info_longitude",
    			"type" => "text");
    
    $options[] =	array(	"name" => "Address",
    			"desc" => "Please enter your office address here.",
    			"id" => $shortname."_info_address",
    			"type" => "textarea");
    
    $options[] = 	array(	"name" => "Phone",
    			"desc" => "Enter your phone number here.",
    			"id" => $shortname."_info_phone",
    			"type" => "text");
    
    $options[] = 	array(	"name" => "Faximile",
    			"desc" => "Enter your Faximile number here.",
    			"id" => $shortname."_info_fax",
    			"type" => "text");
    
    $options[] = 	array(	"name" => "Email Address",
    			"desc" => "Enter the Email address from your company here.",
    			"id" => $shortname."_info_email",
    			"type" => "text");
    
    $options[] = 	array(	"name" => "Twitter ID",
    			"desc" => "Enter your twitter ID here.",
    			"id" => $shortname."_twitter_id",
    			"type" => "text");
    
    $options[] = 	array(	"name" => "Sucess Message",
    			"desc" => "Please enter the success message for contact form when email successfully sent.",
    			"id" => $shortname."_success_msg",
          "type" => "textarea");		
    
    update_option('of_template',$options);
    update_option('of_themename',$themename);
    update_option('of_shortname',$shortname);
    
    }
    }
    ?>

    And the functions.php:

    <?php
    
    /*-----------------------------------------------------------------------------------*/
    
    /* Options Framework Functions
    
    /*-----------------------------------------------------------------------------------*/
    
    /* Set the file path based on whether the Options Framework is in a parent theme or child theme */
    
    if ( STYLESHEETPATH == TEMPLATEPATH ) {
    
    	define('OF_FILEPATH', TEMPLATEPATH);
    
    	define('OF_DIRECTORY', get_bloginfo('template_directory'));
    
    } else {
    
    	define('OF_FILEPATH', STYLESHEETPATH);
    
    	define('OF_DIRECTORY', get_bloginfo('stylesheet_directory'));
    
    }
    
    /* These files build out the options interface.  Likely won't need to edit these. */
    
    require_once (OF_FILEPATH . '/admin/admin-functions.php');		// Custom functions and plugins
    
    require_once (OF_FILEPATH . '/admin/admin-interface.php');		// Admin Interfaces (options,framework, seo)
    
    /* These files build out the theme specific options and associated functions. */
    
    require_once (OF_FILEPATH . '/admin/theme-options.php'); 		// Options panel settings and custom settings
    
    require_once (OF_FILEPATH . '/functions/theme-functions.php'); 	// Theme actions based on options settings
    
    require_once (OF_FILEPATH . '/functions/metabox.php'); 	
    
    require_once (OF_FILEPATH . '/functions/post-types.php'); 	
    
    require_once (OF_FILEPATH . '/functions/theme-widgets.php'); 	
    
    require_once (OF_FILEPATH . '/functions/shortcodes.php');
    
    require_once (OF_FILEPATH . '/admin/tinymce/shortcodes-generator.php');
    
    // Load static framework options pages 
    
    $functions_path = OF_FILEPATH . '/admin/';
    
    function optionsframework_add_admin() {
    
        global $query_string;
    
        $themename =  get_option('of_themename');      
    
        $shortname =  get_option('of_shortname'); 
    
        if ( isset($_REQUEST['page']) && $_REQUEST['page'] == 'optionsframework' ) {
    
    		if (isset($_REQUEST['of_save']) && 'reset' == $_REQUEST['of_save']) {
    
    			$options =  get_option('of_template'); 
    
    			of_reset_options($options,'optionsframework');
    
    			header("Location: admin.php?page=optionsframework&reset=true");
    
    			die;
    
    		}
    
        }
    
        //$of_page = add_submenu_page('themes.php', $themename, 'Theme Options', 'edit_theme_options', 'optionsframework','optionsframework_options_page'); // Default
    
        $of_page = add_menu_page($themename." Options", $themename, 'edit_themes', 'optionsframework', 'optionsframework_options_page');
    
    	// Add framework functionaily to the head individually
    
    	add_action("admin_print_scripts-$of_page", 'of_load_only');
    
    	add_action("admin_print_styles-$of_page",'of_style_only');
    
    } 
    
    add_action('admin_menu', 'optionsframework_add_admin');
    
    ?>

    The only thing that improved the looks of our blog was when I went in and messed with the actual comments.php:

    <?php // Do not delete these lines
    
    // thanks to Jeremy at http://clarktech.no-ip.com for the tips
    
    	if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    
    		die (__('Please do not load this page directly. Thanks!','vulcan'));
    
    if (function_exists('post_password_required')) 
    
    	{
    
    	if ( post_password_required() ) 
    
    		{
    
    		echo '<p class="nocomments">'.__('This post is password protected. Enter the password to view comments.','vulcan').'</p>';
    
    		return;
    
    		}
    
    	} else 
    
    	{
    
    	if (!empty($post->post_password)) 
    
    		{ // if there's a password
    
    			if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) 
    
    			{  // and it doesn't match the cookie  ?>
    
    				<p class="nocomments"><?php echo __('This post is password protected. Enter the password to view comments.','vulcan');?></p>
    
    				<?php return;
    
    			}
    
    		}
    
    	}
    
    if (function_exists('wp_list_comments')):
    
    //WP 2.7 Comment Loop
    
    if ( have_comments() ) : ?>
    
    	<?php if ( ! empty($comments_by_type['comment']) ) :
    
    	$count = count($comments_by_type['comment']);
    
    	($count !== 1) ? $txt = __("Comments for this entry",'vulcan') : $txt = __("Comment for this entry",'vulcan'); ?>
    
      	<h3 class="comment-entry"><?php echo $count . " " . $txt; ?></h3>
    
      	<div id="comment">
    
      		<?php wp_list_comments('type=comment&callback=mytheme_comment'); ?>
    
      	</div>
    
    	<?php endif; ?>
    
    	<div class="navigation">
    
    		<div class="alignleft"><?php previous_comments_link() ?></div>
    
    		<div class="alignright"><?php next_comments_link() ?></div>
    
    		<div class="cleared"></div>
    
    	</div>
    
    	<?php if ( ! empty($comments_by_type['pings']) ) :
    
    	$countp = count($comments_by_type['pings']);
    
    	($countp !== 1) ? $txtp = __("Trackbacks / Pingbacks for this entry",'vulcan') : $txtp = __("Trackback or Pingback for this entry",'vulcan'); ?>
    
    	<h3 id="titlecomment"><?php echo $countp . " " . $txtp; ?></h3>
    
    	<div id="comment">
    
    	<?php wp_list_comments('type=pings&callback=mytheme_ping'); ?>
    
    	</div>
    
    	<?php endif; ?>
    
    <?php else : // this is displayed if there are no comments so far ?>
    
    	<?php if ('open' == $post->comment_status) :
    
    		// If comments are open, but there are no comments.
    
    	else : ?><p class="nocomments"><?php echo __('Comments are closed.','vulcan');?></p>
    
    	<?php endif;
    
    endif;
    
    endif;
    
    ?>
    
    <?php if ('open' == $post->comment_status) : ?>
    
    <div class="clr"></div>
    
    <div class="related-comment-title"><h3><?php echo __('Leave a comment','vulcan');?></h3></div><br />
    
    <div id="comment-form">
    
    <div id="commentFormArea">                           
    
    <?php if (function_exists('cancel_comment_reply_link')) { 
    
    //2.7 comment loop code ?>
    
    <div id="cancel-comment-reply">
    
    	<small><?php cancel_comment_reply_link();?></small>
    
    </div>
    
    <?php } ?>
    
    <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    
    <p><?php echo __('You must be ','vulcan');?><a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>"><?php echo __('logged in','vulcan');?></a><?php echo __(' to post a comment','vulcan');?>.</p>
    
    <?php else : ?>
    
    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="cForm">
    
    <fieldset>
    
    <?php if ( $user_ID ) : ?>
    
    <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink());?>" title="Log out of this account">Logout &raquo;</a></p>
    
    <?php else : ?>
    
          <input type="text" size="25" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>"  tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> class="input-comment" />
    
          <label for="posName" class="label-comment"><?php echo __('Name ','vulcan');?><?php if ($req) echo "<span>".__('(required)','vulcan')."</span>"; ?></label><br /><br />
    
    			<input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> class="input-comment" />
    
    			<label for="email" class="label-comment"><?php echo __('Mail ','vulcan');?><?php if ($req) echo "<span>".__('(required)')."</span>"; ?></label><br /><br />
    
          <input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>"  tabindex="3" class="input-comment" />
    
          <label for="url"  class="label-comment"><?php echo __('Website','vulcan');?></label><br /><br />
    
      <?php endif; ?>
    
    			<textarea name="comment" id="comment" cols="80" rows="10" tabindex="4" class="textarea-comment" ></textarea><br /><br />
    
    			<!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->
    
          <input name="submit" type="submit" id="submit" tabindex="5" value=""  class="input-submit-comment"  />
    
        <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    
        <?php if (function_exists('cancel_comment_reply_link')) { 
    
        //2.7 comment loop code ?>
    
         <?php comment_id_fields(); ?>
    
        <?php } ?>
    
      <?php do_action('comment_form', $post->ID); ?>
    
      </fieldset>
    
    </form>
    
    <?php endif; // If registration required and not logged in ?>
    
    <?php endif; // if you delete this the sky will fall on your head ?>
    
    </div>
    
    </div>

    I deleted the comments.php and ALL of the comments boxes went away. I would like for it to just have one comments box though.

    Does anyone have an idea what could cause this problem? Or does anyone at least know where I can look to try and change the coding to get the one comments box look I’m after?

    Keep in mind I didn’t build this site, I was just given the job of managing the site and I’m trying to piece together the site’s WordPress history via old emails. I’d have built the site differently if it were my project from the beginning.

    Any help you could give me would be much appreciated. I am not a WordPress or coding expert, but I’d really like to impress by boss by fixing this issue.

    Thanks again,

    -David

Viewing 7 replies - 1 through 7 (of 7 total)
  • look in your single.php, see if there’s two tags for the comment form.

    Thread Starter David A. Gomez

    (@david-a-gomez)

    deepbevel,

    First, thanks for the response.

    Could you give me an example of what the tag for the comment form would look like?

    I just want to make sure what I need to look for and/or change. I don’t want to crash the site again.

    Thanks,

    -David

    <?php comments_template(); ?>
    Thread Starter David A. Gomez

    (@david-a-gomez)

    deepbevel, and everyone else

    I took a look in our single.php and I did not find a tag that exactly matches the one deepbevel suggested that I look for.

    I found two that are similar, but they don’t match exactly. I will now show the two tags I did find. They are:

    <?php
    if (in_category($blog_include)) {
    
                            comments_template('', true); 
    
                          }  
    
                          ?>

    And the other is:

    <?php
      $withcomments = "1";
      comments_template();
    ?>

    For completeness I’ll list the whole single.php in case there is something I missed:

    <?php get_header();?>
            <!-- BEGIN OF PAGE TITLE -->
    <?php
      $blog_cats_include = get_option('vulcan_blog_cats_include');
      $team_cat = get_option('vulcan_team_cid');
      $client_cat = get_option('vulcan_client_cid');
    ?>
            <?php if (have_posts()) : ?>
            <div id="page-title">
            	<div id="page-title-inner">
                    <div class="title">
    <h1>
                      <?php
                        if(is_array($blog_cats_include)) {
                          $blog_include = implode(",",$blog_cats_include);
                        }
                        $porto_cat = get_option('vulcan_portfolio_cid');
                        if (in_category($blog_include)) {
                          echo __('Disability Determination Services','vulcan');
                        } else if (in_category($team_cat)) {
                          echo __('Disability Determination Services','vulcan');
                        } else if (in_category($client_cat)) {
                          echo __('Disability Determination Services','vulcan');
                        }
                      ?>
                    </h1>
                    </div>
                </div>
            </div>
            <!-- END OF PAGE TITLE -->
            <!-- BEGIN OF CONTENT -->
            <div id="content">
            	<div id="content-left">
                    <div class="maincontent">
                    <?php
                      while (have_posts()) : the_post();
                      $video_image_link = get_post_meta($post->ID, '_video_image_link', true );
                      $thumb_image = get_post_meta($post->ID, '_thumb_image', true );
                    ?>
                        <!-- begin of blog post  -->
                        <?php if (in_category($blog_include)) : ?>
                        <div class="left-head">
                            <div class="date"><?php the_time('d');?></div>
                            <div class="month"><?php the_time('M');?></div>
                        </div>
                        <?php endif;?>
                        <div class="right-head">
                           <h3><?php the_title();?></h3>
                           <?php if (in_category($blog_include)) : ?>
                           <div class="post-info"><?php echo __('posted by ','vulcan');?>: <?php the_author_posts_link();?>   |   category : <?php the_category(',');?>   |   <?php echo __('comments ','vulcan');?>: <?php comments_popup_link(__('0 Comment','vulcan'),__('1 Comment','vulcan'),__('% Comments','vulcan'));?></div>
                           <?php endif; ?>
                        </div>
                        <div class="blog-posted">
                          <?php if (in_category($blog_include)) {
                            if ($video_image_link) {
                              if (is_youtube($video_image_link)) { ?>
                                <div class="movie_container"><a>"  rel="youtube"></a></div>
                              <?php
                              } else if (is_vimeo($video_image_link)) { ?>
                                <div class="movie_container"><a>"  rel="vimeo"></a></div>
                              <?php
                              } else if (is_quicktime($video_image_link)) {
                                ?>
                                <div class="movie_container"><a>"  rel="quicktime"></a></div>
                                <?php
                              } else if (is_flash($video_image_link)) { ?>
                                <div class="movie_container"><a>"  rel="flash"></a></div>
                                <?php
                              }
                            }  else { ?>
                              <div class="blog-box">
                                <?php if (function_exists('has_post_thumbnail') && has_post_thumbnail()) {?>
                                  <img src="<?php bloginfo('template_directory');?>/timthumb.php?src=<?php echo thumb_url();?>&h=129&w=223&zc=1" alt=""/>
                                <?php } else {
                                  if ($thumb_image) { ?>
                                  <img src="<?php bloginfo('template_directory');?>/timthumb.php?src=<?php echo $thumb_image;?>&h=129&w=223&zc=1" alt=""/>
                                <?php }
                                  }
                                ?>
                              </div>
                              <?php
                              }
                            } else if (in_category($team_cat)) { ?>
                                <?php if (function_exists('has_post_thumbnail') && has_post_thumbnail()) {?>
                                  <img src="<?php bloginfo('template_directory');?>/timthumb.php?src=<?php echo thumb_url();?>&h=60&w=60&zc=1" alt="" class="imgleft border" />
                                <?php } else {
                                  if ($thumb_image) { ?>
                                  <img src="<?php bloginfo('template_directory');?>/timthumb.php?src=<?php echo $thumb_image;?>&h=60&w=60&zc=1" alt="" class="imgleft border" />
                                <?php }
                                  }
                                ?>
                            <?php } else if (in_category($client_cat)) { ?>
                                <?php if (function_exists('has_post_thumbnail') && has_post_thumbnail()) {?>
                                  <img src="<?php bloginfo('template_directory');?>/timthumb.php?src=<?php echo thumb_url();?>&h=60&w=60&zc=1" alt="" class="imgleft border" />
                                <?php } else {
                                  if ($thumb_image) { ?>
                                  <img src="<?php bloginfo('template_directory');?>/timthumb.php?src=<?php echo $thumb_image;?>&h=60&w=60&zc=1" alt="" class="imgleft border" />
                                <?php }
                                  }
                              }
                            ?>
                          <?php the_content();?>
                          <div class="clr"></div>
                          <?php
                          $disable_authorbox = get_option('vulcan_disable_authorbox');
                          if ($disable_authorbox == false) :
                          ?>
                            <div class="author">
                            <?php if (function_exists('get_avatar')) {
                              echo get_avatar(get_the_author_meta('user_email'), '70');
                            } else {?>
                            <img src="<?php bloginfo('template_directory');?>/images/author.jpg" alt="" class="imgleft authorpic" />
                            <?php } ?>
                            <h5>About <?php the_author();?></h5>
                            <?php the_author_meta('description'); ?>
                            </div>
                          <?php endif; ?>
                          <div class="clr"></div>
                          <?php
                          if (in_category($blog_include)) {
                            comments_template('', true);
                          }
                          ?>
                               <?php
      $withcomments = "1";
      comments_template();
    ?>
                        </div>
                    <?php endwhile;?>
                    </div>
                </div>
                <?php endif;?>
              <?php get_sidebar();?>
            </div>
            <!-- END OF CONTENT -->
            <?php get_footer();?>

    These are the only two lines of code in the single.php that resemble a tag for the comments form.

    Could having both of these lines of code in our single.php be causing our blog to have a double comments box?

    And if these lines of code aren’t causing the double comments box, what template or theme file should I look in next?

    Thanks for trying to help a WordPress Novice.

    -David

    I’ve not seen a single.php template like this, is this a premium theme? If so it’s going to be difficult to work with.
    This forum gives support for open source themes.

    Have you tried to contact the theme author?

    Thread Starter David A. Gomez

    (@david-a-gomez)

    I believe that this is a custom theme that a marketing firm built for our company before I was employed here.

    Do you recommend that I take my question into a different forum?

    Should I go to the person, or persons that built our template?

    Thanks again.

    -David

    Should I go to the person, or persons that built our template?

    That would be your best course of action, yes.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Double comments box on our blog’ is closed to new replies.