Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter fonzarelli

    (@fonzarelli)

    That worked – Many thanks!!

    Thread Starter fonzarelli

    (@fonzarelli)

    I would be more than happy to…the plug-in works great.

    Thread Starter fonzarelli

    (@fonzarelli)

    You’re a star! I am extremely grateful for all your help…you were absolutely right about the issue you mentioned.

    I had a developer friend of mine who had a look at the code behind the theme. The wp_head() and wp_footer() calls were missing…also some of the JS files had been renamed (probably for testing purposes), but the changes were not reverted after the testing had been completed.

    The wp_footer() call was placed where you suggested, however the wp_head() call had to be made further up and we commented out the version of the JQuery library call just beneath it to get it all working. I guess the wp_head() call is not placed where it’s supposed to be, but everything is working, including features in other plug-ins that previously didn’t work…Thanks again!

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Visual Data </title>
    
    <link href="<?php bloginfo('template_url');?>/CSS/user-style2.css" type="text/css" rel="stylesheet" />
    
    <link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
    <link href="<?php bloginfo('template_url');?>/CSS/user-style.css" rel="stylesheet" type="text/css" />
    
    <?php wp_head(); ?>
    
    <!--script src="<?php bloginfo('template_url');?>/js/jquery-1.7.1.min.js" type="text/javascript"></script -->
    <script src="<?php bloginfo('template_url');?>/js/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
    <script src="<?php bloginfo('template_url');?>/js/allinone_carousel.js" type="text/javascript"></script>
    
    <!--[if IE]><script src="<?php bloginfo('template_url');?>/js/excanvas.compiled.js" type="text/javascript"></script><![endif]-->
    <!-- must have -->
    <script src="<?php bloginfo('template_url');?>/js/prototype.js" type="text/javascript"></script>
    <script src="<?php bloginfo('template_url');?>/js/scriptaculous.js" type="text/javascript"></script>
    <script src="<?php bloginfo('template_url');?>/js/lightbox.js" type="text/javascript"></script>
    
    <!-- must have -->
    <script type="text/javascript">
    function clearText(field){
        if (field.defaultValue == field.value) field.value = '';
    
        else if (field.value == '') field.value = field.defaultValue;
    }
    </script>
    
    <link href='http://fonts.googleapis.com/css?family=Oswald:400,300,700' rel='stylesheet' type='text/css'>
    
    <script src="<?php bloginfo('template_url');?>/src/skdslider.js"></script>
    <link href="<?php bloginfo('template_url');?>/src/skdslider.css" rel="stylesheet">
    <script type="text/javascript">
    		jQuery(document).ready(function(){
    			jQuery('#demo').skdslider({'delay':5000, 'fadeSpeed': 2000,'showNextPrev':true,'showPlayButton':true,'autoStart':false});
    		});
    </script><link rel="stylesheet" href="<?php bloginfo('template_url');?>/CSS/style.css" media="screen">
    <link rel='stylesheet' id='tablepress-default-css' href='http://www.visualdataindustrial.com/wp-content/tablepress-combined.min.css?ver=2' type='text/css' media='all'/>
    </style>
    
    </head>
    <body>
    
    <div id="header-bg">
    
    	<div id="header-inner">
    
        	<div id="header">
    
            	<div class="main-menu">
    
                	<?php wp_nav_menu( array( 'theme_location' => 'header_menu','container' => '','menu_id' => '' ,'menu_class' => '' ) ); ?>
    
                </div>
    
                 <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("header area") ) : ?><?php endif; ?>
    
            </div>
    
        </div>
    
        <div id="demo" class="skdslider">
    <ul>
    <li>
    <img src="wp-content/uploads/2013/11/Control-Room.jpg" />
    <!--Slider Description example-->
     <div class="slide-desc">
    		<h2>Surveillance Solutions</h2>
    		<p>When it comes to surveillance, we've got you covered.</p>
      </div>
    </li>
    <li>
    <img src="wp-content/uploads/2013/11/University-Campus.jpg" alt="img" />
    <!--Slider Description example-->
     <div class="slide-desc">
    		<h2>University Surveillance</h2>
    		<p>We provide camera systems for university campuses.</p>
      </div>
    </li>
    <li>
    <img src="wp-content/uploads/2013/11/Server.jpg" alt="img" />
    <!--Slider Description example-->
     <div class="slide-desc">
    		<h2>Storage Servers</h2>
    		<p>We offer top-of-the line video storage servers.</p>
      </div>
    </li>
    <li>
    <img src="wp-content/uploads/2013/11/Camera.jpg" alt="img" />
    <!--Slider Description example-->
     <div class="slide-desc">
    		<h2>City Wide Surveillance</h2>
    		<p>Demo description here. Demo description here. Demo description here. Demo description here. Demo description here.</p>
      </div>
    </li>
    <li>
    <img src="wp-content/uploads/2013/11/Shopping-Mall.jpg" alt="img" />
    <!--Slider Description example-->
     <div class="slide-desc">
    		<h2>Retail Settings</h2>
    		<p>Our surveillance solutions are perfect for the retail setting.</p>
      </div>
    </li>
    </ul>
    </div>
    
    </div>
    Thread Starter fonzarelli

    (@fonzarelli)

    Many thanks and apologies for not laying out the code correctly in my previous post.

    If the home page appears in the following manner, in your opinion, do you think there is a major issue that needs to be addressed with the theme?

    http://www.visual-data.com/

    Thread Starter fonzarelli

    (@fonzarelli)

    Hi there,

    Just as you suggested, the codex site explains adding the following in the header.php file, just before </head> tag:

    <?php
     ...
        /* Always have wp_head() just before the closing </head>
         * tag of your theme, or you will break many plugins, which
         * generally use this hook to add elements to <head> such
         * as styles, scripts, and meta tags.
         */
        wp_head();
     ?>

    and in the footer.php file, just before </body> tag:

    <?php
       /* Always have wp_footer() just before the closing </body>
        * tag of your theme, or you will break many plugins, which
        * generally use this hook to reference JavaScript files.
        */
        wp_footer();
    ?>

    I also commented out the following in the header.php file:

    <!--script src="<?php bloginfo('template_url');?>/js/jquery-1.7.1.min.js" type="text/javascript"></script>-->
    <!--script src="<?php bloginfo('template_url');?>/js/jquery-ui-1.8.16.custom.mins.js" type="text/javascript"></script>-->

    Which, just brings back the following error:

    Parse error: syntax error, unexpected ‘.’ in /home/allegro_feroz/visual-data.com/wp-content/themes/vd/header.php on line 51

    I guess there is more to it than just including the wp_head() and wp_footer() calls? Sorry if I sound like a beginner in this, because I pretty much am…

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Thread Starter fonzarelli

    (@fonzarelli)

    Many thanks for getting back to me.

    The hard-coded line for TablePress css was to fix an issue with the table format when it would appear on the front-end. The table would appear with no borders and there were alignment issues with the data in the columns. After adding the line, it fixed the format issue.

    The whole theme is customized to the client’s requirements, however I had no idea it was this badly coded, and getting hold of the developers will be very difficult…it would be near impossible to start over at this point.

    Would you explicitly need to state for the theme to use the version of JQuery that comes with WordPress, or is it automatically picked up?

    Thread Starter fonzarelli

    (@fonzarelli)

    The TablePress plug-in is now visible in the admin section after applying the 3.6.1 update.

    Thanks again!

    Thread Starter fonzarelli

    (@fonzarelli)

    I’m applying the update manually, so it’s taking a little time…will let you know as soon as I’m done.

    Thread Starter fonzarelli

    (@fonzarelli)

    Many thanks for your super fast response.

    I wasn’t sure what RC1 stood for in the release archive. Looks like the link below was the wrong one:

    http://ww.wp.xz.cn/download/release-archive/

    Thanks again!

    Thread Starter fonzarelli

    (@fonzarelli)

    P.S. could this be a caching issue, since I’ve applied a WordPress update and it still thinks I’m using an older version?

Viewing 10 replies - 1 through 10 (of 10 total)