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

XF 1.2 deleting a link

Discussion in 'Styling and Customization Questions' started by AndreaMarucci, Nov 26, 2013.

  1. AndreaMarucci

    AndreaMarucci Well-Known Member

    In Style and Properties -> Header Navigation I've set the Height of Header Logo to 0. If I set it to 1 or 5 pixels, a rectangle is shown (when there was the logo) with a link to the forum home page.

    Schermata 2013-11-26 alle 13.37.35.png

    Can someone tell me how can I delete that link so that also the rectangle goes away?
     
  2. Tracy Perry

    Tracy Perry Well-Known Member

    In the ACP -> Options -> Basic Board Information do you happen to have the "Link Logo to Home Page URL" checked below the Home Page URL setting? If so, try unchecking that. It may not work as it will default to linking to the forum index.
     
  3. AndreaMarucci

    AndreaMarucci Well-Known Member

    No, that one is not checked and Home Page URL is empty...
     
  4. Tracy Perry

    Tracy Perry Well-Known Member

    Another thing that may work is modifying the logo_block template and removing the link from there.
    Code:
    <div id="logoBlock">
        <div class="pageWidth">
            <div class="pageContent">
                <xen:include template="ad_header" />
                <xen:hook name="header_logo">
                <div id="logo"><a href="{$logoLink}">
                    <span><xen:comment>This span fixes IE vertical positioning</xen:comment></span>
                    <img src="@headerLogoPath" alt="{$xenOptions.boardTitle}" />
                </a></div>
                </xen:hook>
                <span class="helper"></span>
            </div>
        </div>
    </div>
    
    to

    Code:
    <div id="logoBlock">
        <div class="pageWidth">
            <div class="pageContent">
                <xen:include template="ad_header" />
                <xen:hook name="header_logo">
                <div id="logo"><xen:comment><a href="{$logoLink}"></xen:comment>
                    <span><xen:comment>This span fixes IE vertical positioning</xen:comment></span>
                    <img src="@headerLogoPath" alt="{$xenOptions.boardTitle}" />
                </a></div>
                </xen:hook>
                <span class="helper"></span>
            </div>
        </div>
    </div>
     
  5. AndreaMarucci

    AndreaMarucci Well-Known Member

    Good one! Changed from this
    Code:
    <div id="logoBlock">
        <div class="pageWidth">
            <div class="pageContent">
                <xen:include template="ad_header" />
                <xen:hook name="header_logo">
                <div id="logo"><a href="{$logoLink}">
                    <span><xen:comment>This span fixes IE vertical positioning</xen:comment></span>
                    <img src="@headerLogoPath" alt="{$xenOptions.boardTitle}" />
                </a></div>
                </xen:hook>
                <span class="helper"></span>
            </div>
        </div>
    </div>
    to this
    Code:
    <div id="logoBlock">
        <div class="pageWidth">
            <div class="pageContent">
                <xen:include template="ad_header" />
                <xen:hook name="header_logo">
                </xen:hook>
                <span class="helper"></span>
            </div>
        </div>
    </div>
    and worked!
     
    Tracy Perry likes this.

Share This Page