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    0
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    1,327
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    0
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    247
Simon

You could even use jQuery to change it.

Share this post


Link to post
Share on other sites
hrachovec    0
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    1,327
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    247
Simon

simple with js

 

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

  • Like 1

Share this post


Link to post
Share on other sites
hrachovec    0
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

    • 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
    • John Olsson
      By John Olsson+
      Wierd little problem with the "boxes"-section. Just updated to latest version of all..
      The outline-default-link puts itself behind another container.. or so.. so the top/bottom border won't show, also the left and right box won't show the border on the left side for the left box, and same for the right box, on the right side.
      The padding/margin is ofc on default-settings.. What can this be?

    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
×