1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RM 1.2 Removing tagline phrase?

Discussion in 'Resource Manager Support' started by max_d, Jul 22, 2016.

  1. max_d

    max_d New Member

    Hello,

    Is there a way to remove the tagline phrase that appears under the resource title?
    taglinr.png
    Thank you.
     
  2. Mike

    Mike XenForo Developer Staff Member

    If you just want to remove it there, that's in the resource_view_header template. Removing it more generally would require some custom development as it's defined as a required field.
     
    max_d likes this.
  3. max_d

    max_d New Member

    Thank you, sir.
    That’s exactly what I’m looking for. Please could you tell me what code I should change in resource_view_header?
    Code:
    <xen:require css="resource_view_header.css" />
    
    <div class="resourceInfo">
    <xen:hook name="resource_view_header_info">
        <xen:if hascontent="true">
            <ul class="primaryLinks {xen:if '{$resource.is_fileless} AND !{$resource.external_purchase_url}', noButton}">
            <xen:contentcheck>
                <xen:if is="{$resource.external_purchase_url}">
                    <xen:if is="!{$resource.canDownload}">
                        <li><label class="downloadButton downloadDisabled">
                            <span class="inner">
                                {xen:phrase buy_now_for_x, 'cost={$resource.cost}'}
                                <small class="minorText">{xen:phrase not_available}</small>
                            </span>
                        </label></li>
                    <xen:else />
                        <li><label class="downloadButton purchase">
                            <a href="{$resource.external_purchase_url}" class="inner">
                                {xen:phrase buy_now_for_x, 'cost={$resource.cost}'}
                            </a>
                        </label></li>
                    </xen:if>
                <xen:elseif is="!{$resource.is_fileless}" />
                    <li><label class="downloadButton {xen:if '!{$resource.canDownload}', downloadDisabled}">
                        <a href="{xen:link resources/download, $resource, 'version={$resource.current_version_id}'}" class="inner">
                            <xen:if is="{$resource.canDownload}">{xen:phrase download_now}<xen:else />{xen:phrase download_not_available}</xen:if>
                            <xen:if is="{$resource.download_url}">
                                <small class="minorText">{xen:phrase via_external_site}</small>
                            <xen:else />
                                <small class="minorText">{xen:number $resource.attachment.file_size, 'size'} .{$resource.attachment.extension}</small>
                            </xen:if>
                        </a>
                    </label></li>
                </xen:if>
    
                <xen:hook name="resource_view_header_after_resource_buttons" />
            </xen:contentcheck>
            </ul>
        </xen:if>
    
        <div class="resourceImage">
            <xen:if is="{$xenOptions.resourceAllowIcons}">
                <img src="{xen:helper resourceiconurl, $resource}" alt="" class="resourceIcon" />
            <xen:else />
                <xen:avatar user="$resource" size="s" img="true" />
            </xen:if>
        </div>
    
        <h1><xen:if is="{$titleHtml} AND {$titleHtml} != {xen:escape $resource.title}">{xen:raw $titleHtml}<xen:else />{xen:helper resourcePrefix, $resource}{$resource.title}</xen:if> <xen:if is="!{$resource.isFilelessNoExternal}"><span class="muted">{$resource.version_string}</span></xen:if></h1>
        <xen:if is="{$resource.tag_line} OR {$extraDescriptionHtml}"><p class="tagLine muted">{$resource.tag_line}<xen:if is="{$resource.tag_line} AND {$extraDescriptionHtml}"><br /></xen:if>{xen:raw $extraDescriptionHtml}</p></xen:if>
    </xen:hook>
    </div>
    
    <xen:hook name="resource_view_header_after_info" />
    
    <xen:if is="{$resource.resource_state} != 'visible'">
        <ul class="secondaryContent resourceAlerts">
        <xen:if is="{$resource.resource_state} == 'deleted'">
            <li class="deletedAlert">
                <span class="icon"></span>
                {xen:phrase this_resource_has_been_deleted}
                <xen:if is="{$resource.delete_user_id}">
                    {xen:phrase deleted_by_x, 'name={xen:helper username, {xen:array "user_id={$resource.delete_user_id}", "username={$resource.delete_username}"}}'}, <xen:datetime time="{$resource.delete_date}" /><xen:if is="{$resource.delete_reason}">, {xen:phrase reason}: {$resource.delete_reason}</xen:if>.
                </xen:if>
            </li>
        </xen:if>
        <xen:if is="{$resource.resource_state} == 'moderated'">
            <li class="moderatedAlert">
                <span class="icon"></span>
                {xen:phrase this_resource_is_currently_awaiting_approval}
            </li>
        </xen:if>
        </ul>
    </xen:if>
     
    Last edited: Jul 22, 2016
  4. Mike

    Mike XenForo Developer Staff Member

    This line:
    Code:
        <xen:if is="{$resource.tag_line} OR {$extraDescriptionHtml}"><p class="tagLine muted">{$resource.tag_line}<xen:if is="{$resource.tag_line} AND {$extraDescriptionHtml}"><br /></xen:if>{xen:raw $extraDescriptionHtml}</p></xen:if>
    
     
    Alfa1 and max_d like this.
  5. Alfa1

    Alfa1 Well-Known Member

    This removes it from the header. But its also in the sidebar.
    I got rid of that by adding to extra.css:
    Code:
    .secondaryContent .muted {
        display: none;
    }
     
    max_d likes this.

Share This Page