Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Beginner CSS help

    Hi Guys-

    I have a problem that I can't seem to figure out. I am pretty resourceful at finding information but alas- here I am.

    On the website listed below there is a category on the right titled "Metal working for autos, motorcycles and aircraft". If you click "go" on the image the link takes you to the correct area. However, if you click the image itself it takes you to a section of the website pertaining to "cooking" which is obviously not correct.

    www.artisanideas.com

    I am not very skilled with CSS but have dealt with it a little using FTP/Wordpress related stuff.

    By inspecting the element in Chrome I found the error in the code:

    <a href="category.jhtm?cid=15">

    15 is the category number of cooking and 36 is the category of metalworking, so i need to get to changing that.

    SO- I've found my problem but I don't know how to find it and fix it.

    I use Filezilla but I don't know how to find that line of code to change it as filezilla only allows you to search for filenames.

    In Chrome I think that it says it's in stylesheet2.css but that doesn't even have any href's in it.

    So confusing, hopefully someone can help me with this.

    Kind regards,

    S

  • #2
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    It is in an index file. If they are just a straight web page it is index.html or index.htm.

    If they use PHP then it is in index.php.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #3
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    ".jhtm" (which is the href document type) is Java HTML. Dynamo Server pages.

    We can't tell much without code. But I can tell you to look in the document that has this erroneous link, look for the <a href="category.jhtm?cid=15"></a> that is surrounding the incorrect image, and change it to the correct cid value.
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • #4
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    ACTUALLY, now that I think about it.. the link is probably being dynamically generated from a database.. so there is a possibility that the error lies not in the code, but in the database, itself.
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • #5
    New Coder
    Join Date
    Sep 2011
    Posts
    17
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by WolfShade View Post
    ACTUALLY, now that I think about it.. the link is probably being dynamically generated from a database.. so there is a possibility that the error lies not in the code, but in the database, itself.
    Agreed, i never used that shopping cart before but if it lets you make post on the home page for each cat. try remaking the cat and maybe the values will fix. I get bugs like these posting on wordpress where the link they gen points to a messed up page. but reposting the post fixes it.
    Last edited by hydrix; 03-06-2013 at 03:17 AM.

  • #6
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you for your responses-

    Normally, I would look for an index.html/index.php, etc file- The problem is all the index.html files are 0kb and everything else are files like these-

    quickview.css
    stylesheet.css
    stylesheet1.css
    stylesheet2.css

    I'm sure you get it. There are no <a href="category.jhtm?cid=15></a> style codes in sight.

    Interesting what you say about the links being generated. That would be less than ideal. How are we supposed to edit anything on our site ourselves? I guess that's the point so the company hosting can make their money. Problem is we already pay for their service but take days to get back to us regarding any issues.

    So far what I did was search for file names containing "index" in my database using Filezilla. That showed me 7 files named index.html in different path locations with zero data in them. Am I doing this the wrong way? If not, I appreciate your help either way.

    Scott

  • #7
    New Coder
    Join Date
    Sep 2011
    Posts
    17
    Thanks
    0
    Thanked 2 Times in 2 Posts
    the template files dont have to be called index. they are prob being included using php to build the page piece by peice from a template system. these files could have a number of names.

  • #8
    New Coder
    Join Date
    Feb 2013
    Posts
    37
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Hello,

    I've inspected the code of the page and it appears these sections are coded correctly, however there is an issue with the the META tag (see code below) where it is missing the end quote. That might be what is causing the issue, in some cases it will cause issues with links or other elements.

    Code:
    <meta name="keywords" content="Bladesmithing, bladesmith dvd, bladesmithing dvds, bladesmithing book, bladesmithing books, knifemaking, knifemaking dvd, knife making dvd,knifemaking book, knifemaking books, knife making book, books on knife making, blacksmithing dvds, blacksmith dvd, blacksmithing dvd, blacksmithing books, blacksmith dvds, dvd for blacksmiths, dvds for blacksmiths, books for blacksmiths, books on blacksmithing, Francis Whitaker, gun making dvd, gun building dvd, gun building dvds, gun making, gunmaking dvd, gun building, gun engraving, />

    I hope this helps.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •