Wordpress and Webdesign Forum go41 » WordPress Code Snippets

  1. omerkhan01
    Member

    Here is my site click here

    You will see a banner on the left which says Maaximum Dating Mastery. I want that to turn into a hyperlink to link to the sales page for that service.

    Here is what I did

    <div id="datingimg">
    <img src="http://www.maaximumseduction.com/dating.jpg" height="230" width="139">
    </div>

    I created a hyperlink out of it and as a test want to link it to Ibm.com . It doesn't click or link.

    ALso if you go to one of my posts such as this one You will see that it says the date it was published and no comment What file do I go to remove that. I don't want it to show.

    Please advise!

    Posted 1 year ago #
  2. I think it's the z-index value, if you remove it the image will link again - but will stay above your site in case of small screen resulution.

    You might have to think about what is more important as hidden text under the image can be scrolled to be seen.

    Additionally your html markup is getting worse, really.
    Check your site here:

    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.maaximumseduction.com%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator%2F1.1

    Posted 1 year ago #
  3. omerkhan01
    Member

    Admin, I changed the Z index from -1 to 1 and it works.

    Secondly, what does that mean that my HTML Markup is getting worse? How does that affect my site and its SEO or does it? How can I fix my HTML Markup? Do I have to go into my site and fix each error manually or is there a service I can use to automate this process.

    Lastly, I asked you how to remove the date/comment string from my post pages.

    Please advise. THanks and Happy New Year!

    Posted 1 year ago #
  4. Hi Omar, Admin and joern is here the same as I am the admin...

    This z-index problem was hard to find because a site with so many validation errors is hard to analyze.

    No idea how much this affects SEO, but it will do I guess.

    To fix errors you will have to go into your site and do it onen by one. But a site does not have to be errorfree, very hard to do this.

    Most errors in arthemia come from the code for timthumb, all the & (ampersand) have to be replaced by the html encoded & a m p ;
    sample from featured image code:

    echo $values[0]; ?>&w=100&h=65&zc=1&q=100"

    EDIT: & should read '& amp;' without the space after '& '

    With that only you will have hundreds of errors less I guess.

    The date/comment string of the link given: I think this is single.php, just one post of services category.

    close to the top of this file you find:

    <h2 class="title"><?php the_title(); ?></h2>
    
    	<div id="stats">
    <span><?php the_time('j F Y') ?></span>
    <span><?php if(function_exists('the_views')) { the_views(); } ?></span>
    <span><?php comments_number('No Comment', 'One Comment', '% Comments' );?></span></div>
    
    	<div class="entry clearfloat">

    The three lines starting with span show the time, the views (plugin required) and the comment status.

    You can remove any of this lines or even the complete div id="stats"

    Why does it show no title? don't you have php the_title(); inside the h2 tag or do you give no title to a post when writing it?

    Don't get grey hair about these issues :-)

    Posted 1 year ago #
  5. digipham
    Member

    If your site has so many errors with HTML, it will be affected badly in SEO. Then you can use W3c to check and fix your site.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Join us! or log in (lost password?):