Advertisement:

Author Topic: add specifik image in search page for a city  (Read 1162 times)

johannesstromberg

  • Newbie
  • *
  • Posts: 30
add specifik image in search page for a city
« on: December 16, 2014, 01:22:09 pm »
hello

i want to add a specifik image in search page for a specifik city
Someone who know how to do it?

http://s29.postimg.org/7siooberr/image.jpg



« Last Edit: January 06, 2015, 10:46:52 pm by johannesstromberg »

johannesstromberg

  • Newbie
  • *
  • Posts: 30
Re: add specifik image in search page for a region
« Reply #1 on: January 06, 2015, 10:46:17 pm »
Someone? :)

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: add specifik image in search page for a city
« Reply #2 on: January 06, 2015, 11:50:09 pm »
Hi,

Look in your Modern search.php for this block:

Code: [Select]
                        <div class="inner">
                            <h1>
                                <strong><?php echo search_title(); ?></strong>
                            </h1>

Insert below:

Code: [Select]
<?php if (Params::getParam('sCity') == 'Norbottens') { ?>
                                <div>
                                    <img src="http://yourdomain.com/path-to-your-image" />
                                </div>
                            <?php ?>

Replace that fake image URL with your actual one and you should get the basics.

Regards

johannesstromberg

  • Newbie
  • *
  • Posts: 30
Re: add specifik image in search page for a city
« Reply #3 on: January 07, 2015, 05:02:53 am »
Thank you so much!  :)

Hi,

Look in your Modern search.php for this block:

Code: [Select]
                        <div class="inner">
                            <h1>
                                <strong><?php echo search_title(); ?></strong>
                            </h1>

Insert below:

Code: [Select]
<?php if (Params::getParam('sCity') == 'Norbottens') { ?>
                                <div>
                                    <img src="http://yourdomain.com/path-to-your-image" />
                                </div>
                            <?php ?>

Replace that fake image URL with your actual one and you should get the basics.

Regards

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: add specifik image in search page for a city
« Reply #4 on: January 07, 2015, 01:00:09 pm »
You're welcome. :)

Please add [SOLVED] to the title of this thread.

Regards