Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spectral
#39
I have a problem with the main site, the two.inc.php which seems to be designed for latest posts etc.
I like the alignment of picture: Right, then left, then right again etc.

I now would like to actually hyperlink the images and text to the apropriate Sites.
I tried this by inserting "<a href=/index.php?id=SiteXYZ/"

But when i do this, it destroys the alignment mentioned above.
With four pictures, two are on the right, and two on the left.
If i delete the href part, all is back to normal.

Any ideas? I am a Beginner in this and thought it would be simple.

My code is:
<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); }
/****************************************************
*
* @File: two.inc.php
* @Package: Spectral theme for GetSimple CMS
* @Action: Could be Latest Posts or Permanent Info
*
*****************************************************/
?>
        <section id="two" class="wrapper alt style2">
</section>                  
                   <section class="spotlight">
<div class="image"><a href=/index.php?id=ch4/><img src="<?php get_theme_url(); ?>/images/radl.JPG" alt="" /></div><div class="content">
<h2>4-Test<br />
</h2>
<p>Chi Test4</p>
</div>
</section>
</section>
                    <section class="spotlight">
<div class="image"><a href=/index.php?id=test3/><img src="<?php get_theme_url(); ?>/images/test3.jpg" alt="" /></div><div class="content">
<h2>3-Test3<br />
</h2>
<p>Test3</p>
</div>
</section>

    <section class="spotlight">
  <div class="image"><a href=/index.php?id=2/><img src="<?php get_theme_url(); ?>/images/test2.jpg" alt="" /></div><div class="content">
<h2>2-Test2<br />
</h2>
<p>Test2</p>
</div>
</section>
</section>
<section class="spotlight">
<div class="image"><a href=/index.php?id=1/><img src="<?php get_theme_url(); ?>/images/test1.jpg" alt="" /></div><div class="content">
<h2>1-Test1<br />
</h2>
<p>Test1</p>
</div>
</section>

</section>
Reply


Messages In This Thread
Spectral - by Timbow - 2016-09-06, 00:46:18
RE: Spectral - by Timbow - 2016-09-06, 23:09:56
RE: Spectral - by kazu2015 - 2016-09-13, 21:25:34
RE: Spectral - by kazu2015 - 2016-09-13, 21:59:47
RE: Spectral - by Timbow - 2016-09-13, 22:51:07
RE: Spectral - by kazu2015 - 2016-09-15, 01:46:43
RE: Spectral - by borg - 2016-10-05, 03:29:59
RE: Spectral - by Timbow - 2016-10-06, 01:04:48
RE: Spectral - by level.five - 2017-12-30, 08:13:14
RE: Spectral - by Timbow - 2017-12-30, 09:32:02
RE: Spectral - by level.five - 2017-12-30, 10:24:50
RE: Spectral - by kazu2015 - 2016-11-03, 21:27:11
RE: Spectral - by kazu2015 - 2016-11-04, 11:25:45
RE: Spectral - by Timbow - 2016-11-04, 23:14:43
RE: Spectral - by kazu2015 - 2016-11-04, 16:52:33
RE: Spectral - by Raeven - 2016-11-04, 22:56:29
RE: Spectral - by Timbow - 2016-11-04, 23:27:56
RE: Spectral - by kazu2015 - 2016-11-05, 00:17:01
RE: Spectral - by bgpress - 2016-12-21, 01:48:17
RE: Spectral - by Timbow - 2016-12-21, 03:46:42
RE: Spectral - by bgpress - 2016-12-21, 18:45:27
RE: Spectral - by Timbow - 2016-12-21, 21:59:04
RE: Spectral - by bgpress - 2016-12-21, 23:01:56
RE: Spectral - by Timbow - 2016-12-22, 05:36:10
RE: Spectral - by bgpress - 2016-12-22, 14:52:16
RE: Spectral - by intelex - 2017-08-25, 22:13:59
RE: Spectral - by Timbow - 2017-08-25, 22:33:15
RE: Spectral - by daveyz - 2017-08-27, 23:52:35
RE: Spectral - by Timbow - 2017-08-28, 00:54:21
RE: Spectral - by daveyz - 2017-08-28, 01:19:08
RE: Spectral - by daveyz - 2017-08-28, 05:56:56
RE: Spectral - by Timbow - 2017-08-28, 07:28:58
RE: Spectral - by daveyz - 2017-08-28, 09:56:59
RE: Spectral - by flynn - 2017-09-12, 18:13:17
RE: Spectral - by Timbow - 2017-09-12, 19:41:59
RE: Spectral - by flynn - 2017-09-12, 22:28:47
RE: Spectral - by davetest - 2018-01-07, 14:12:25
RE: Spectral - by Timbow - 2018-01-08, 08:56:33
RE: Spectral - by frostor - 2019-03-09, 11:32:13
RE: Spectral - by chafidz - 2019-12-05, 14:46:34
RE: Spectral - by Timbow - 2019-12-05, 21:03:47
RE: Spectral - by datiswous - 2019-12-06, 05:38:26
RE: Spectral - by Timbow - 2019-12-07, 08:02:26
RE: Spectral - by poorboy2 - 2020-01-26, 00:59:59
RE: Spectral - by poorboy2 - 2020-01-26, 03:38:39



Users browsing this thread: 1 Guest(s)