File tree 2 files changed +27
-50
lines changed
2 files changed +27
-50
lines changed Original file line number Diff line number Diff line change @@ -596,6 +596,13 @@ nav a.flagNav{
596
596
597
597
.featuredSpeakers ul li {
598
598
position : relative;
599
+ margin-left : 0 ;
600
+ margin-right : 4.4% ;
601
+ margin-bottom : 20px ;
602
+ }
603
+
604
+ .featuredSpeakers ul li : nth-child (3n){
605
+ margin-right : 0 ;
599
606
}
600
607
601
608
a .speakerLink {
@@ -1139,22 +1146,10 @@ body.speakers a.speakerLink{
1139
1146
margin : 0 ;
1140
1147
}
1141
1148
1142
- .featuredSpeakers ul li + li + li {
1143
- display : none;
1144
- }
1145
-
1146
- .recentNews article + article + article {
1147
- display : none;
1148
- }
1149
-
1150
1149
.videoPicks a {
1151
1150
text-align : center;
1152
1151
}
1153
1152
1154
- .videoPicks a + a {
1155
- display : none;
1156
- }
1157
-
1158
1153
ul .row {
1159
1154
display : inline;
1160
1155
}
@@ -1373,45 +1368,32 @@ body.speakers a.speakerLink{
1373
1368
width : 31px ;
1374
1369
}
1375
1370
1376
- .featuredSpeakers {
1377
- text-align : center;
1378
- }
1379
-
1380
1371
.videoPicks a .videoPick {
1381
1372
width : 100% !important ;
1382
1373
margin : 0 auto;
1383
1374
}
1384
1375
1385
- .featuredSpeakers div .columns {
1386
- min-width : 100% ;
1387
- max-width : 100% ;
1388
- width : 100% ;
1389
- margin : 0 ;
1390
- }
1391
-
1392
- .featuredSpeakers ul li + li + li {
1393
- display : none;
1394
- }
1395
-
1396
- .featuredSpeakers ul li + li {
1397
- margin-top : 20px ;
1398
- }
1399
-
1400
- a .speakerLink {
1401
- width : 300px ;
1402
- margin : 0 auto;
1376
+ .featuredSpeakers .four {
1377
+ min-width : 47.8% ;
1378
+ max-width : 47.8% ;
1379
+ width : 47.8% ;
1380
+ float : left;
1403
1381
}
1404
1382
1405
- .recentNews article + article + article {
1406
- display : none;
1383
+ .featuredSpeakers ul li : nth-child (3n) {
1384
+ margin-right : 4.4 % ;
1407
1385
}
1408
1386
1409
- .videoPicks a + a {
1410
- display : none ;
1387
+ .featuredSpeakers ul li : nth-child (2n+2) {
1388
+ margin-right : 0 ;
1411
1389
}
1412
1390
1413
- .speakers ul .row {
1414
- text-align : center;
1391
+ .featuredSpeakers ul li a h3 {
1392
+ position : relative;
1393
+ left : 0 ;
1394
+ top : 0 ;
1395
+ color : # fff ;
1396
+ line-height : 40px ;
1415
1397
}
1416
1398
1417
1399
.video_wrapper {
Original file line number Diff line number Diff line change 23
23
'post_type ' => 'speakers ' ,
24
24
'taxonomy ' => 'tedxyycYear ' ,
25
25
'term ' => '2012 ' ,
26
- 'posts_per_page ' => 9 ,
26
+ 'posts_per_page ' => - 1 ,
27
27
'orderby ' => 'title ' ,
28
28
'order ' => 'ASC '
29
29
);
30
30
query_posts ($ args );
31
31
?>
32
32
33
33
<?php /* Start loop */ ?>
34
- <?php $ i = 0 ; ? >
34
+ <ul class="row clearfix" >
35
35
<?php while (have_posts ()) : the_post (); ?>
36
- <?php if ($ i %3 == 0 && $ i != 0 ) { echo '</ul> ' ; } ?>
37
- <?php if ($ i %3 == 0 ) { echo '<ul class="row clearfix"> ' ; } ?>
38
36
<li class="four columns">
39
37
<a href="<?php the_permalink (); ?> " class="speakerLink">
40
- <h3><?php the_title (); ?> </h3>
41
38
<?php the_post_thumbnail ('wide_thumb ' , array (
42
39
'alt ' => '' .get_the_title ().'' ,
43
40
'title ' => '' .get_the_title ().''
44
41
)); ?>
42
+ <h3><?php the_title (); ?> </h3>
45
43
</a>
46
44
</li>
47
- <?php
48
- $ i ++;
49
- endwhile ; // End the loop
50
- echo '</ul> ' ;
51
- ?>
45
+ <?php endwhile ; // End the loop ?>
46
+ </ul>
52
47
<?php wp_reset_query (); ?>
53
48
54
49
<a href="/speakers" class="sectionCTA row">view all the <span class="tedx">TEDx</span><span class="yyc">YYC</span> speakers</a>
You can’t perform that action at this time.
0 commit comments