Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Carlos Friend
    #184144

    Hello friends!

    I have two questions, I hope you can help:

    1. – How I can remove this link?

    2. – How do I remove the black circles from the list of extra fields?, Once the dark circles disappear, how to align the text with the green line that appears in the picture?

    In advance thank you very much!


    1. img-santafe
    Luna Garden Moderator
    #480428

    Hello,

    Hope these answers can help you:

    1.<blockquote>How I can remove this link?</blockquote>

    In order to remove link of Comment, go to this file: <blockquote>templatesja_mendozitehtmlcom_k2templatesja_mendoziteitem.php</blockquote>

    Find these lines:

    <div class="ItemCommentsLink">
    <?php if(!empty($this->item->event->K2CommentsCounter)): ?>
    <!-- K2 Plugins: K2CommentsCounter -->
    <?php echo $this->item->event->K2CommentsCounter; ?>
    <?php else: ?>
    <?php if($this->item->numOfComments > 0): ?>
    <a class="itemCommentsLink k2Anchor" href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
    <span><?php echo $this->item->numOfComments; ?></span> <?php echo ($this->item->numOfComments>1) ? JText::_('K2_COMMENTS') : JText::_('K2_COMMENT'); ?>
    </a>
    <?php else: ?>
    <a class="itemCommentsLink k2Anchor" href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
    <?php echo JText::_('K2_BE_THE_FIRST_TO_COMMENT'); ?>
    </a>
    <?php endif; ?>
    <?php endif; ?>
    </div>

    Change to:

    <div class="ItemCommentsLink">
    <?php if($this->item->params->get('itemCommentsAnchor') && $this->item->params->get('itemComments') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>
    <!-- Anchor link to comments below - if enabled -->

    <?php if(!empty($this->item->event->K2CommentsCounter)): ?>
    <!-- K2 Plugins: K2CommentsCounter -->
    <?php echo $this->item->event->K2CommentsCounter; ?>
    <?php else: ?>
    <?php if($this->item->numOfComments > 0): ?>
    <a class="itemCommentsLink k2Anchor" href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
    <span><?php echo $this->item->numOfComments; ?></span> <?php echo ($this->item->numOfComments>1) ? JText::_('K2_COMMENTS') : JText::_('K2_COMMENT'); ?>
    </a>
    <?php else: ?>
    <a class="itemCommentsLink k2Anchor" href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
    <?php echo JText::_('K2_BE_THE_FIRST_TO_COMMENT'); ?>
    </a>
    <?php endif; ?>
    <?php endif; ?>

    <?php endif; ?>
    </div>

    2. <blockquote>How do I remove the black circles from the list of extra fields?, Once the dark circles disappear, how to align the text with the green line that appears in the picture?</blockquote>

    Go to this file <blockquote>templates/ja_mendozite/css/k2.css</blockquote>

    Find these lines:

    div.itemExtraFields ul li {
    display: block;
    }

    change to:

    div.itemExtraFields ul li {
    display: block;
    background: none;
    padding-left: 10px; >> or any value you want here
    }

    Carlos Friend
    #480482

    wooooww

    Thank you very much!

    It worked great, just what I needed!

    Best regards from Tamaulipas, Mexico!

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  Carlos 11 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum