Hard coded link in Blog content types

coolhandlukelsk's picture
coolhandlukelsk
Mon, 07/10/2017 - 10:13
#1
Hard coded link in Blog content types

Hi,

Quick and I hope a simple question..

On the Blog node page (for all blog items) I would like to change the image header.

Presently on blog posts this file is being called - which is obviously inccorect as this is an external domain and the path looks like it has been hard coded

http://chinhlc.com/md-avendor/sites/default/files/parallax-blog.jpg 

An example URL here 

http://build.calumlockie.com/node/327

Please can you tell me where I can ammend this and change the header image for all blog posts

Many thanks

Luke 

khoa's picture
khoa
Tue, 07/11/2017 - 05:49

Hi,

Please go to admin/appearance/settings/md_avendor, click on Pages -> Page Titles, you can change page title of nodes here. Just adding the NODE ID and upload the image.

Thanks!

coolhandlukelsk's picture
coolhandlukelsk
Thu, 07/13/2017 - 09:27

Hi,

Thankyou for this information but rther than doing this individually on a node by node basis  I would like to set the image header for all content of type Blog.   

Presently there is a missing image on all the blog pages (new and old) that point to http://chinhlc.com/md-avendor/sites/default/files/parallax-blog.jpg

Your advice is appreciated

Thanks

Luke 

coolhandlukelsk's picture
coolhandlukelsk
Thu, 07/13/2017 - 10:13

I ran a search in the database for this URL -  

http://chinhlc.com/md-avendor/sites/default/files/parallax-blog.jpg 

running this command 

SELECT * FROM `callumlockie_cl3`.`variable` WHERE (CONVERT(`name` USING utf8) LIKE '%http://chinhlc.com/md-avendor/sites/default/files/parallax-blog.jpg%' OR CONVERT(`value` USING utf8) LIKE '%http://chinhlc.com/md-avendor/sites/default/files/parallax-blog.jpg%')

And a result was returned from the varibles table

upon opening the table I could see theme_md_avendor_setting was being set and a blob was downloadible -  the below is the output of that file.

Please can you let me know where I can change the path or varible for http://chinhlc.com/md-avendor/sites/default/files/parallax-blog.jpg  (Having a broken image link on any website is bad for SEO)


Thanks


Luke 

a:85:{s:12:"default_logo";i:0;s:9:"logo_path";s:30:"public://calum-lockie-logo.gif";s:11:"logo_upload";s:0:"";s:15:"default_favicon";i:1;s:12:"favicon_path";s:0:"";s:14:"favicon_upload";s:0:"";s:11:"toggle_logo";i:0;s:11:"toggle_name";i:0;s:13:"toggle_slogan";i:0;s:24:"toggle_node_user_picture";i:1;s:27:"toggle_comment_user_picture";i:1;s:32:"toggle_comment_user_verification";i:1;s:16:"toggle_main_menu";i:0;s:21:"toggle_secondary_menu";i:0;s:13:"toggle_fvicon";i:1;s:11:"savedcolor1";s:0:"";s:11:"logo_normal";s:3:"144";s:11:"logo_retina";s:0:"";s:7:"favicon";s:68:"http://build.calumlockie.com/sites/all/themes/md_avendor/favicon.ico";s:9:"ios_57x57";s:0:"";s:9:"ios_72x72";s:0:"";s:11:"ios_114x114";s:0:"";s:11:"ios_144x144";s:0:"";s:14:"googlewebfonts";s:0:"";s:10:"typekit_id";s:0:"";s:10:"skin_color";s:13:"avendor-light";s:7:"preload";i:1;s:12:"header_fixed";i:1;s:11:"header_type";s:3:"one";s:11:"layout_type";s:4:"wide";s:14:"box_background";s:2:"70";s:15:"default_product";s:8:"col-md-4";s:12:"address_info";s:583:",,icon fontello icon-phone,||,font_icon|icon-glyph,||,,||,01327 361361,||,,,,,,,,,,,,icon fontello icon-mail-alt,||,font_icon|icon-glyph,||,mailto:[email protected],||,[email protected],||,,,,,,,,,,,,icon fontello icon-clock,||,awesome|icon-clock,||,,||,Monday - Friday: 09:00 - 18:00,||,,,,,,,,,,,icon fontello icon-location,||,font_icon|icon-glyph,||,,||,Calum Lockie Racing Little Preston House Little Preston Northamptonshire NN11 3TF United Kingdom,||,,,,,,,,,,,,icon fontello icon-mail-alt,||,font_icon|icon-glyph,||,mailto:[email protected],||,[email protected],||";s:12:"contact_decs";s:145:"<strong>Little Preston - Head Office</strong>

Our head office with ample free parking is situated a stones throw from the Silverstone circuit.";s:17:"maintenance_title";s:18:"Under Construction";s:23:"maintenance_description";s:19:"We will be back in:";s:16:"maintenance_time";s:12:"Sep 30, 2016";s:19:"maintenance_picture";s:1:"0";s:15:"not_found_title";s:23:"Oops... Page Not Found!";s:14:"not_found_body";s:90:"We're sorry, but the page you were looking for doesn't exist. You can try to search bellow";s:9:"type_data";s:956:"[{"name":"img-url","value":""},{"name":"article-title","value":""},{"name":"type","value":"article"},{"name":"img-url","value":"http://build.calumlockie.com/sites/default/files/CL-banner.jpg"},{"name":"blog-title","value":""},{"name":"type","value":"awecontent"},{"name":"img-url","value":"http://chinhlc.com/md-avendor/sites/default/files/parallax-blog.jpg"},{"name":"bulk_upload-title","value":"Our Blog"},{"name":"type","value":"blog"},{"name":"img-url","value":""},{"name":"page-title","value":""},{"name":"type","value":"page"},{"name":"img-url","value":""},{"name":"portfolio-title","value":""},{"name":"type","value":"portfolio"},{"name":"img-url","value":""},{"name":"shop_product-title","value":""},{"name":"type","value":"shop_product"},{"name":"img-url","value":""},{"name":"simplenews-title","value":""},{"name":"type","value":"shortcodes"},{"name":"img-url","value":"simplenews"},{"name":"webform-title","value":""},{"name":"type","value":""}]";s:10:"title_data";s:1655:"[{"name":"img-url","value":"http://build.calumlockie.com/sites/default/files/cl_blog_bg.jpg"},{"name":"page-url","value":"blog"},{"name":"title","value":"Our Blog"},{"name":"img-url","value":"http://chinhlc.com/md-avendor/sites/default/files/parallax-blog.jpg"},{"name":"page-url","value":"blog-fullwidth"},{"name":"title","value":"Blog Full Width"},{"name":"img-url","value":""},{"name":"page-url","value":"node/118"},{"name":"title","value":"<none>"},{"name":"img-url","value":""},{"name":"page-url","value":"node/119"},{"name":"title","value":"<none>"},{"name":"img-url","value":""},{"name":"page-url","value":"node/100"},{"name":"title","value":"<none>"},{"name":"img-url","value":""},{"name":"page-url","value":"node/102"},{"name":"title","value":"<none>"},{"name":"img-url","value":""},{"name":"page-url","value":"node/103"},{"name":"title","value":"<none>"},{"name":"img-url","value":""},{"name":"page-url","value":"node/104"},{"name":"title","value":"<none>"},{"name":"img-url","value":""},{"name":"page-url","value":"node/105"},{"name":"title","value":"<none>"},{"name":"img-url","value":""},{"name":"page-url","value":"node/101"},{"name":"title","value":"<none>"},{"name":"img-url","value":"http://chinhlc.com/md-avendor/sites/default/files/parallax-404.jpg"},{"name":"page-url","value":"page-404"},{"name":"title","value":"Not found"},{"name":"img-url","value":""},{"name":"page-url","value":"node/160"},{"name":"title","value":"<none>"},{"name":"img-url","value":""},{"name":"page-url","value":"node/161"},{"name":"title","value":"<none>"},{"name":"img-url","value":""},{"name":"page-url","value":"none/162"},{"name":"title","value":"<none>"}]";s:9:"text_font";s:11:"0|n4||px|-|";s:13:"ts_font_color";s:0:"";s:11:"tss_bgcolor";s:0:"";s:10:"tss_tcolor";s:0:"";s:15:"l_regular_color";s:0:"";s:12:"l_regular_st";i:0;s:12:"l_regular_hl";i:0;s:13:"l_regular_hlc";s:0:"";s:12:"l_regular_ts";a:3:{s:4:"bold";i:0;s:6:"italic";i:0;s:9:"underline";i:0;}s:16:"l_rollover_color";s:0:"";s:13:"l_rollover_st";i:0;s:13:"l_rollover_hl";i:0;s:14:"l_rollover_hlc";s:0:"";s:13:"l_rollover_ts";a:3:{s:4:"bold";i:0;s:6:"italic";i:0;s:9:"underline";i:0;}s:15:"l_visited_color";s:0:"";s:12:"l_visited_st";i:0;s:12:"l_visited_hl";i:0;s:13:"l_visited_hlc";s:0:"";s:12:"l_visited_ts";a:3:{s:4:"bold";i:0;s:6:"italic";i:0;s:9:"underline";i:0;}s:10:"l_on_color";s:0:"";s:7:"l_on_st";i:0;s:7:"l_on_hl";i:0;s:8:"l_on_hlc";s:0:"";s:7:"l_on_ts";a:3:{s:4:"bold";i:0;s:6:"italic";i:0;s:9:"underline";i:0;}s:25:"typo_heading_style_enable";i:0;s:21:"typo_heading_h1_style";s:11:"0|n4||px|-|";s:21:"typo_heading_h1_color";s:0:"";s:21:"typo_heading_h2_style";s:11:"0|n4||px|-|";s:21:"typo_heading_h2_color";s:0:"";s:21:"typo_heading_h3_style";s:11:"0|n4||px|-|";s:21:"typo_heading_h3_color";s:0:"";s:21:"typo_heading_h4_style";s:11:"0|n4||px|-|";s:21:"typo_heading_h4_color";s:0:"";s:21:"typo_heading_h5_style";s:11:"0|n4||px|-|";s:21:"typo_heading_h5_color";s:0:"";s:21:"typo_heading_h6_style";s:11:"0|n4||px|-|";s:21:"typo_heading_h6_color";s:0:"";s:11:"header_code";s:0:"";s:11:"footer_code";s:0:"";s:10:"custom_css";s:0:"";s:12:"restore_type";s:6:"upload";s:25:"restore_file_media_upload";s:0:"";s:17:"restore_from_file";s:43:"md-avendor-backup-2017-06-29-1498727124.txt";}

phuonght's picture
phuonght
Fri, 07/14/2017 - 00:08

Hi,

To change Header  image for content type BLOG, please follow image: https://prnt.sc/fvhks2

coolhandlukelsk's picture
coolhandlukelsk
Fri, 07/14/2017 - 08:06

Hello,

I have allready done this... This changes the image for the main /blog page but does not change the header image from the individual blog posts....  

eg  

Works

http://build.calumlockie.com/blog

Doesnt work 

http://build.calumlockie.com/node/327

The default file being served is pointing to a missing file on your server 

http://chinhlc.com/md-avendor/sites/default/files/parallax-blog.jpg net::ERR_NAME_NOT_RESOLVED

phuonght's picture
phuonght
Fri, 07/14/2017 - 23:50

Please send your source code and database to our developer's email [email protected], he will help you fix problem.

Thank you.

coolhandlukelsk's picture
coolhandlukelsk
Mon, 07/17/2017 - 07:11

Hi Phuonght,

Thanks for your update -  I have sent the files on to Trand as per your last update.

Cheers

Luke 

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.