mccormicky
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Replacing Text Title with a Logo ImageTry:
In style.css
(change height & width to fit your logo image)#header{you've got header css already I am sure} h1#logo{width:200px;height:65px;border:0; background: url(images/logo.jpg) top left no-repeat;text-indent: -9999px;} #header h1#logo a {height: 100%;display: block;}html to add to header.php:
<h1 id="logo"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>Forum: Themes and Templates
In reply to: Best way to make WP sidebar widgets appear on all pages?Make sure every template includes
<? php get_sidebar();?>index.php
page.php
single.php
archives.php
etc.Forum: Themes and Templates
In reply to: How is this possible?Firefox is sometimes nicer when it comes to bad markup.
There are serious issues with your html check it out.
There are unclosed ul tags, too many closed or left open div tags and you didn’t close the body tag. You need to clean stuff up!
Forum: Themes and Templates
In reply to: Can somebody help me?There is usually a minimum of 1 “wrapper” or container kind of div.
Since your container div is what most people name the “content” div(the wrapper div for post and entry) there is nothing holding the rest of your blocks in place.
Then you are floating the container div to the left and when ever you float you usually have to clear that float,unless you have enough content in all your pages in text or images for .entry to “push” the footer down…although this will usually still result in a maverick footer floating around where you don’t want it. It’s just easier to contain everything in one big div. That’s why it is called #container.
I would add div id=”wrapper” right after the body tag in header.php & add clear:both to the footer css. Then close the wrapper div in footer.php right after the closing div tag for #footer.
in header.php<body>
<div id="wrapper">…header stuff like menu and etc.
Don’t close the wrapper div in header.php.
Do that in footer.php.
Optional CSS:
#wrapper{width:xxx;height:auto;margin:0 auto;/*centers if you want is centered*/}#footer { clear:both; padding : 10px; margin-top : 2em; width : 100%; text-align : center; }then:
<div id="footer"> J tech </div> </div><!--closes the wrapper div -->Good luck!
Forum: Fixing WordPress
In reply to: HTTPS A SINGLE STATIC PAGE?I am successfully securing just one page on a website:
https://www.chillyo.com/shop/check-out/
with a private SSL certificate.
I secured this page by pasting /shop/check-out/ in the Additional URLs box of Admin SSL plugin options page.
You can get this plugin here:
http://wordpress.org/extend/plugins/admin-ssl-secure-admin/This plugin is awesome please donate!
Forum: Fixing WordPress
In reply to: problem with nifty cube and wordpressCould be the spaces in the name of the directory AID INDIA.
It isn’t a good idea to have spaces in the name of any file or folder. Best to name it aid_india,aid-india or aidindia.Secondly, you are calling other JS libraries such as mootools before the nifty.js and this can be causing the problem. Try removing the mootools.js, see if your search box rounds.
Did you know you shouldn’t use an id 2x in one document? nifty.js may not be able to even find the element because you have 2 named the same: li#search and div#search
–a big no no.It matters what order you call different JS libraries and some simply will not work together.
troubleshoot by renaming the elements to be rounded a different id name.
cut the other js
call the script src right above the function
take the spaces out of your directory.
good luck.Forum: Fixing WordPress
In reply to: problem with nifty cube and wordpressHere are 3 troubleshooters:
Open the niftycube.js file.See where it says href?- make sure this is right in your file.
Sometimes you have to put in the link to the nifty.css style sheet.function AddCss(){ niftyCss=true; var l=CreateEl("link"); l.setAttribute("type","text/css"); l.setAttribute("rel","stylesheet"); l.setAttribute("href","<?php bloginfo('stylesheet_directory'); ?>/Niftycube/niftyCorners.css"); l.setAttribute("media","screen"); document.getElementsByTagName("head")[0].appendChild(l); }Try adding padding to the divs you want to round,too.
View your page source to make sure you have the link to the javascript right.function AddCss(){ niftyCss=true; var l=CreateEl("link"); l.setAttribute("type","text/css"); l.setAttribute("rel","stylesheet"); l.setAttribute("href","<?php bloginfo('stylesheet_directory'); ?>/Niftycube/niftyCorners.css"); l.setAttribute("media","screen"); document.getElementsByTagName("head")[0].appendChild(l); }Forum: Fixing WordPress
In reply to: HTTPS A SINGLE STATIC PAGE?diced:this information is just odd.there is no line in canonical.php(I think this is what you mean by cononial)Host_name or Server_Name on line 48 in the referenced file.
here is the block I believe you are talking about:if ( !$requested_url ) { // build the URL in the address bar $requested_url = ( !empty($_SERVER['HTTPS'] ) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; $requested_url .= $_SERVER['HTTP_HOST']; $requested_url .= $_SERVER['REQUEST_URI'];So where in this would I make your changes?
Forum: Plugins
In reply to: can some one write a plugin for events ?@mccormicky u did not say it’s enough to rename and cutomize the archive.php and the wordpress will do the rest … tzz tzz any way 10x for the idea
I don’t ever rename files if I want a category template. creating a category in Manage> Categories >Add new
then getting the idand then creating a template by copying index.php into a new blank text file then naming it category-1234.php
and then uploading it to your theme folder will make wordpress use this template to show only posts for the events category if your category id is 1234.
which it won’t be.
Unless I am psychic!
Then each time you write a post about an event and you select the Events category, WordPress will look for category-1234.php to show these posts. Only Events category posts will be shown.Forum: Fixing WordPress
In reply to: trying to use Template tags and the loopSorry can’t seem to get the post title code to show.
Forum: Fixing WordPress
In reply to: trying to use Template tags and the loopThis is code for example only if you copy it from here with the ‘ included it won’t work.Don’t copy any ‘
if your wordpress is installed at /blog
try ‘<?php
/* Short and sweet */
define(‘WP_USE_THEMES’, false);
require(‘./blog/wordpress/wp-blog-header.php’);
?>’I assume you aren’t using wordpress to “run” the home page so I assume you need to use false. then try this code in the file that runs the home page for your website at http://dhsdrama.com/ Post this before the loop:
call header
‘<php get_header.php();?>’
‘<div id=”content”>’
‘<?php
$limit = get_option(‘posts_per_page’);
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
query_posts(‘showposts=’ . $limit . ‘&paged=’ . $paged);
$wp_query->is_archive = true; $wp_query->is_home = false;
?>’
This is where the loop starts:
‘<?php if (have_posts()) : while (have_posts()) : the_post(); ?>’
‘<div class=”post”>’
this outputs the post title
‘<h2 id=”‘post-‘<?php the_ID(); ?>'”>”‘” rel=”bookmark” title=”Permanent Link to ‘<?php the_title(); ?>'”>”<?php the_title(); ?>’‘</h2>’this gets the Post time, author and category
‘Posted on <?php the_time(‘F jS, Y’) ?> by <?php the_author() ?> in <?php the_category(‘, ‘) ?>’
finally the loopif you want an excerpt to show
‘<div class=”entry”>’
‘<?php the_excerpt() ?>’if you want all content to show
‘<?php the_content() ?>’
you probably have some html divs to close before closing the loop so close them here or else the divs break
ie ‘</div>’
& ‘</div>’
then close the loop-sorry this is older code you can find newer ending loop code in the codex but this should still work
‘<?php endwhile; ?>’
‘<?php else : ?>’
‘<?php endif; ?>’
then close the main div the one that wraps all the main content on the page:
</div>
then get the footer
‘<?php get_footer(); ?>’I hope this works out for you.You should definitely read up on the codex and google using wp_blog_header.php in non wordpress page.
Forum: Plugins
In reply to: WordPress E-Commerce: a word of warningI also disagree.It’s very easy to customize and is only time consuming in the way that anything is time consuming when it comes to getting things to look the way you want them to look.If you are a CSS expert or even if you only have basic CSS skills all you have to do is view the source, note the div id names and open the shop’s theme css file and get cracking. If you love WordPress you know that you must create your own WP themes if delivering to a paying client and isn’t that time consuming?
Why do people bash this plugin? It’s FREE and it works. I am using it on 4 different websites that generate sales.My clients are happy they did not have to shell out more than 35 dollars for an ecommerce solution that works.Even better it is easy for my clients to add products to their sites so I don’t have to do it for them.Forum: Plugins
In reply to: [Plugin: WP e-Commerce] Single Product Pages 404thanks for mentioning my post!
Forum: Plugins
In reply to: [Plugin: WP e-Commerce] Search Engine Optimization Suicide301 redirect from the product url to the relevant category. Why are you deleting products at all when all you have to do is untick the categories they are assigned to hide them from the product pages? Deleting is not good.Tell your friends.
As for SEO suicide…I use this plugin and my addons and edits and have 9 breakout(sitelinks) links in the Google. 9. That is emphatically not SEO suicide.
If used in conjunction with a plugin like All in One SEO pack and a better title tag code single product display pages still do not get a meta description but they will get a unique title.
You can get the titles code here
If you leave the products page all in one seo title blank this one title won’t be used for all products-the product name will.I’m working out how to get meta descriptions for single products but it’s going to take me a while as I am not really a coder I just push code around.
Forum: Plugins
In reply to: [Plugin: WP e-Commerce] awesome WP e-Commerce siteCool but I couldn’t get any other page to load even after waiting for 30 seconds.