0

我创建了一个视图,显示一些链接到我在http://quaaoutlodge.com/gallery上的画廊的预告片。您注意到图像顶部的“阅读更多”链接,我想摆脱它们,但不确定如何。任何帮助或帮助将不胜感激!

谢谢你,罗恩

编辑:

我的 node.tpl.php 中的预告片实现如下所示:

<?php if (!$teaser): ?>
  <div class="clearfix">
    <?php print render($content['comments']); ?>
  </div>
<?php endif; ?>
4

2 回答 2

1

node.css路径中

http://quaaoutlodge.com/sites/all/themes/marinelli/css/node.css

搜索span.teaser-readmore并添加display: none;如下

.teaser-meta span.teaser-readmore{
    position: absolute;
    display: none;
    right:0px;
    top:0px;
    padding-left: 23px;
}

更新

你能试试这个吗node.tpl.php

<?php 
if($teaser){
      print l(t('Read more'), 'node/' . $nid, array('attributes' => array('class' => t('node-readmore-link')))); 
  } 
?>
should be

<?php
if($teaser)
  print 
    l(
       t('Read more<span class="element-invisible"> about @title</span>'),
       'node/' . $nid,
        array(
             'attributes' => array('class' => t('node-readmore-link')),
              'html'=>TRUE
              )
     );
?>

你可以在这里阅读更多

于 2013-06-08T06:18:15.713 回答
0

好的,

我最终让我的 node.tpl.php 保持不变并将它恢复到原来的状态,但为了解决我的问题,我只是给我的图像样式一个 z-index,即我改变了

.node-gallery img {
    position: absolute;
    top: 30px;
    bottom: 0px;
}

.node-gallery img {
    position: absolute;
    top: 30px;
    bottom: 0px;
    z-index: 10;
}

这对我来说效果很好。我敢肯定它不是适合每个人的解决方案,但它告诉我的是,有时解决方案并不像一开始想象的那么遥远或复杂......!:)

于 2013-06-09T04:08:02.817 回答