apparently from what i can gather jquery is inside wordpress anyway but spectrum theme has an external file which it loads which also includes the ‘sizzle’ library. any idea what he is using this for ?
according to instructions i found
i tried to remove the script line :
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery-min.js"></script>
and then replace that with:
<?php wp_enqueue_script('jquery');?>
and then replace all the $ signs in the script with jQuery
the script is thus :
jQuery(document).ready(function(){jQuery('#header .pageList a').animate({'opacity':.3});
jQuery('#header .pageList a').hover(function(){jQuery(this).stop().animate({'opacity':1})},function(){jQuery(this).stop().animate({'opacity':.3})});
jQuery('input[type="text"], textarea').focus(function(){jQuery(this).addClass('fieldFocus')});
jQuery('input[type="text"], textarea').blur(function(){jQuery(this).removeClass('fieldFocus')});
jQuery('#searchBox button, #commentForm button').hover(function(){jQuery(this).addClass('hoverBtn')},function(){jQuery(this).removeClass('hoverBtn')});
jQuery('div.depth-1, div.depth-2').hover(function(){jQuery(this).find('.replyLink').slideDown('slow')},function(){jQuery(this).find('.replyLink').slideUp('slow')});
jQuery('div.pingback').find('.replyLink').remove();
var leftFold='<div class="leftFold"></div>';
var rightFold='<div class="rightFold"></div>';
var edge='<div class="edge"></div>';
var pointer='<div class="pointer"></div>';jQuery('#content .mainTitle, #content .subTitle, #tagCloud .subTitle').each(function(){jQuery(this).append(leftFold)});
jQuery('#content .mainTitle, #sidebar .sidebarTitle').each(function(){jQuery(this).append(edge)});jQuery('#tagCloud .subTitle, #sidebar .sidebarTitle').each(function(){jQuery(this).append(rightFold)});
jQuery('#commentList div.comment').each(function(){jQuery(this).append(pointer)});jQuery('.subTitle h4').wrap('<div class="subTitleBorder"></div>');
jQuery('#tagCloud li:last').each(function(){jQuery(this).addClass('last')});jQuery('#sidebar .sidebarBox').each(function(){jQuery(this).find('li:last').addClass('last')});
jQuery('#widgetList .sidebarBox').each(function(){jQuery(this).find('li:first').addClass('first')});
jQuery.each(jQuery('#tagCloud ul li'),function(e){if(e>-1&e<=7){jQuery(this).addClass('tagSize-1')}if(e>7&e<=16){jQuery(this).addClass('tagSize-2')}if(e>16&e<=26){jQuery(this).addClass('tagSize-3')}if(e>26&e<=35){jQuery(this).addClass('tagSize-4')}if(e>35&e<=47){jQuery(this).addClass('tagSize-5')}});
var divider='<li class="divider"></li>';jQuery('#tagCloud .tagSize-2:first, #tagCloud .tagSize-3:first, #tagCloud .tagSize-4:first, #tagCloud .tagSize-5:first').before(divider);jQuery('#tagCloud .tagSize-5:last').after(divider);});
this also did nothing…
any ideas much appreciated…
1. please show me how to reverse the comment list order. the default is old to new, but I want it new to old. I think I must edit the comments.php of the theme but I didn’t find the correct part for this in it.
2. what I should remove from the footer.php to be able to remove the tag listing and page listing in it? mine was very long and I removed some parts of the code but it seems that it’s not enough and it shows some bits and parts in it not wanted. I just wanted to let untouched the links to creator and wordpress.
3. why the gallery shows odd images format? it’s the same gallery and it’s the same settings but the older uploaded pictures have different thumbs compapred to the new pictures uploaded in the same gallery. see an example here: https://mrcacadu.ro/funny-strip-of-the-odd-day/ ,and explain why is this happening.
thank you,
mr.cacadu
<?php
ini_set('display_errors','1');
ini_set('display_startup_errors','1');
error_reporting (E_ALL);
header( 'Location: ../../index.php' ) ;
?>
However I’m getting the dreaded Errors Already Sent warning:
Warning: Cannot modify header information – headers already sent by (output started at /home/chubby/public_html/askchubbygirl/wp-content/themes/spectrum/header.php:6) in /home/chubby/public_html/askchubbygirl/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 5
The entire contents of my header.php page is as follows. I’ve made a couple edits, namely adding the custom meta tags, adding the twittercode.php include at the bottom and hardcoding a URL to a different style sheet. I can’t find any issues with whitespace on line six of this file, though. Help please?:
<?php
/**
* @package WordPress
* @subpackage Spectrum
*/?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml"<?php language_attributes(); ?>> <head profile="https://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php wp_title('«', true, 'right'); ?><?php bloginfo('name'); ?></title>
<link rel="stylesheet" href="https://76.74.228.103/~chubby/wp-content/themes/spectrum/style.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/ie.css" type="text/css" media="screen" />
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery-min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/spectrum-min.js"></script>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
<meta name="keywords" content="amanda, nogle, mandee, chubby, girl, comics, comic, strip, comics by email, comics sherpa, belly dancing, fairchild, michaela, speech therapist, therapy center, animal rescue, dog trainer, counsellor, colourist, philosopher, physician, max, edmond, mrs myew, pets, belly dancing, work, office, exercise, workout" />
<meta name="description" content="Official website for the Chubby Girl comic strip by ManDee Nogle." />
</head>
<body <?php body_class(); ?>>
<div id="header">
<div id="logo">
<h1>
<a href="../index.php"><img src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>" /></a>
</h1>
</div>
<div id="subscribe">
<a href="<?php bloginfo('rss2_url'); ?>" title="Subscribe to <?php bloginfo('name'); ?> RSS">Subscribe to <?php bloginfo('name'); ?> RSS</a>
</div>
<div class="pageList">
<ul>
<?php wp_list_pages('title_li=&depth=1'); ?>
</ul>
</div>
</div>
<div id="mainWrap">
<div id="main">
<div id="siteDescription">
<?php include "../twittercode.php"; ?></div>
<div id="content">
]]>