Jump to content

Archived

This topic is now archived and is closed to further replies.

hrachovec

Edit HTML of home page logo link

Recommended Posts

hrachovec

Hello:

 

Is there any way to tweak the <a> tag that surround the logo link in the navbar? I want to add 'id' and 'rel' attributes to it which will aid in helping me achieve a certain effect. 

 

For example, it's currently:

 

<a href="http://brightldn.com/new/">

 

I want to change it to:

 

<a href="http://brightldn.com/new/#home" rel="m_PageScroll2id" >

 

Thanks!

 

R

 

 

Share this post


Link to post
Share on other sites
Danny

Hi,

 

There are two ways you can achieve this, you can either use a hook via the navbar_brand filter or create a child of the NavBar section via a Child theme and add your own HTML attributes there.

 

If you go down the child section, you're free to use my child theme here - http://dannyholt.github.io/skeleton/


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
hrachovec

Thanks Danny. I'll give that a try. I was already using a child theme, so I guess I'll figure out how to create a child of the NavBar section in there. I'll come back with any problems. 

 

Thanks! R

Share this post


Link to post
Share on other sites
Simon

You could even use jQuery to change it.

Share this post


Link to post
Share on other sites
hrachovec

@Simon_P: I'm not too confident w jQuery but I may investigate if I can't achieve what I'm looking for through another method. Thanks though. 

 

@Danny: OK, I've tried to setup a new navbar section in my DMS child theme. Specifically, I made a new file here:

 

themes/dms-child/sections/navi/section.php

 

I did a little tweaking to the code in section.php but didn't see any change on my public facing site. Am I not doing this correctly?

 

Cheers, R

Share this post


Link to post
Share on other sites
Danny

What do you mean you made a new file ? You need to copy all the sections folders and files, then customize the code in the sections.php file.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Simon

simple with js

 

https://gist.github.com/Pross/f5119fc4cfb6d538ddfe

Share this post


Link to post
Share on other sites
hrachovec

Hey Danny and Simon:

 

Thanks for the replies. I'll come back to this later and try to update it as per your instructions. Just trying to iron out some larger issues at the moment.

 

Cheers, R

Share this post


Link to post
Share on other sites

  • Similar Content

    • elementalkites
      By elementalkites+
      Good evening. I am attempting to use the Impulse section on a page I am working on (https://dev.elementalkites.com). The tool seems to have the ability to overlay a logo on top of the slider images but in my case it isn't working, even though I have added the logo file and given it a height to display at. I have attached a screenshot for reference. Any help would be appreciated.
       
       
    • greatthingsllc
      By greatthingsllc+
      In Platform 5, Using Framework Section for Content , I have set the hyperlink colors in the CUSTOMIZE section.   However, none of the pages are properly displaying the link colors.   Just defaulting to black, and underline on hover.   I did not see where this would be controlled at the page level or lower
      Site    doritbrauer.com
      Thanks
      Josh

    • lionel1
      By lionel1
      Hi,
      i try to put some images (Logos) in the Agency module / clients module section
      But i only can put 6 logos though the module propose to add more item
      Thanks for ur help
      Lionel 
      Capture d’écran 2017-06-27 à 20.55.27.png 
    • Michael Kummer
      By Michael Kummer+
      Hi guys,
      I just migrated from DMS to PageLines Platform 5 and noticed that after uploading my fav icon to Site Images, the default PageLines icon is still showing in my browser as well as in the HTML source code.
      The page in question is www.michaelkummer.com - is there anything else I need to do in order to update the favicon?
      Thanks
      Michael


    • Barnaby Skinner
      By Barnaby Skinner+
      Hey team,
      Really simple question: where would I add code to a specific page header? I can see in the settings I can add code to the global header, but can't see how to do it for a single specific page. It's related to facebook pixel tracking
      Cheers
×