Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: General Image question regarding search results

  1. #11
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Currently its shown as
    Code:
    <a href="javascript:" onclick="replaceMainImage('m-images/photos/FIAT004.png', 'Fiat004','<b>£35.00</b>
    By adding a ALT tag it would then be shown as
    <a href="javascript:" onclick="replaceMainImage('m-images/photos/FIAT004.png alt="Fiat 1 Button Key', 'Fiat004','<b>£35.00</b>

    And scripts etc would be untouched,just making sure this is the correct way in adding the extra alt section before i start ?

    Thanks

  2. #12
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    It isn't an img tag so Google will have a hard time making the association, if at all. Google will not click your link, parse the JavaScript, run the function, build the markup and then interpret it as a dynamic image on the fly. For Google to read and understand an img from markup, it needs to see an <img> element in the markup (HTML not JavaScript).
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #13
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Ok
    So im a little confused but understand what you are saying,i understand the link will not be clicked hence why im asking where i need to make the edit.
    If currently i have an image named FIAT004
    And the code on the page for it is as follows.
    Code:
    <li><a href="javascript:" onclick="replaceMainImage('m-images/photos/FIAT004.png', 'Fiat004','<b>£35.00</b><br>Chip Will Require Programming<br>Key Will Require Cutting<br><scan class=keychipColor>+ Virgin Chip & Uncut Key</scan><br><b>UK Recorded £2.50</b><br><b>International Signed For £10.00<br></b><b>Posted From The UK</b><br><scan class=drColor>The Remote Doctor</scan>')">One button key remote</a></li>
    Please advise what/where i need to edit etc so i can continue with this.

  4. #14
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    There is no benefit in adding an alt attribute on the client-side via JavaScript - Google will not see it in the context of an <img> tag. You will be better off focusing your energies on making changes that Google can see and understand, such as rename files with descriptive keywords.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  5. #15
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Ok
    Tomorrow i will start to rename all images.
    I will keep the initial file name Fiat004 etc but add extra text.
    Is Fiat004 one button key ok or should i add fiat again like so ?

    Fiat004 Fiat one button key

    The whole point of doing this is for search engines etc so dont want to do it twice .

    Many thanks again.
    Last edited by theremotedr; 01-15-2016 at 08:03 PM.

  6. #16
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    Quote Originally Posted by Beverleyh View Post
    Hmmm, this isn't a great idea because it will have a negative impact on page performance - All the images will download in the background, even though they will not be seen.

    .
    .
    Yes, I agree that it will slow down the page loading marginally. However, it will achieve what the OP asked for with very little intervention in the source code.

  7. #17
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Quote Originally Posted by styxlawyer View Post
    However, it will achieve what the OP asked for with very little intervention in the source code.
    Not necessarily. Gary Illyes from Google stated this a similar online discussion in late-July 2015;
    Hiding the content with a display:none might backfire on you. We are giving hidden content way less weight in ranking.
    https://www.seroundtable.com/google-...one-20626.html

    theremotedr - if it were me I'd name them 'fiat004-fiat-one-button-key.jpg' so you still get the benefit of your part number for organisation purposes in the backend.
    Last edited by Beverleyh; 01-16-2016 at 01:24 PM. Reason: Reference link added
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  8. The Following User Says Thank You to Beverleyh For This Useful Post:

    Ripsaw (01-16-2016)

  9. #18
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    So do you advise me to do this.

    I will keep the initial file name Fiat004 etc but add extra text.
    Is Fiat004 one button key ok or should i add fiat again like so ?

    Fiat004 Fiat one button key.png

    The whole point of doing this is for search engines etc so dont want to do it twice .

  10. #19
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Please refer to my previous post regarding suggested naming convention.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

Similar Threads

  1. customising a maps with search results
    By jelly46 in forum Other
    Replies: 0
    Last Post: 11-08-2011, 12:53 AM
  2. Replies: 0
    Last Post: 12-28-2009, 09:14 AM
  3. Show search results on same page
    By lindsaycb in forum PHP
    Replies: 10
    Last Post: 08-18-2009, 10:08 PM
  4. PHP code to retrieve search results
    By GeordieD in forum PHP
    Replies: 1
    Last Post: 01-16-2009, 10:02 PM
  5. Replies: 0
    Last Post: 04-06-2008, 07:57 PM

Bookmarks

Posting Permissions

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