Get Current page in footer in Curly

6 Kommentare

  • Brett - Community Manager
    Aktionen für Kommentare Permalink

    Hey Vince,

    You're correct and this would require some javascript on your end. While this isn't something we can assist with, we do have some useful documentation that you should take a look at:

    I'll also get this added to our monthly Community Roundup to help provide visibility to other users who can possibly offer up some advice.

    Cheers!

     

    0
  • Louise Dissing
    Aktionen für Kommentare Permalink

    Hi Vince,

    Just out of curiosity - why aren't you using Javascript? 

    You could create a script that looks at the URL and then shows something different.

    Let me know if you need any help writing this. :-)

    #helpsome regards,
    Louise Dissing
    Team Lead @ helphouse.io 

    0
  • Vince Suriani
    Aktionen für Kommentare Permalink

    Hi Louise,

    it just seemed like something that should be able to be done on the curly side of things rather than render it to the page and then remove via JS.

    My solution was to actually include some inline <style> tags that hid the element I wanted gone. Works and is simple.

     

    Thanks for the reply! (Also, thanks too, Brett!)

    0
  • Louise Dissing
    Aktionen für Kommentare Permalink

    Hi Vince,

     

    I agree it would be awesome, to be able to access that! 

    I'm glad to hear you found a solution. :-)

    0
  • Jillian Pastori
    Aktionen für Kommentare Permalink

    Hi Vince, 

    I'm trying to do the same thing, but I'm afraid I'm fairly new to coding. Would you be willing to share what you did? 

    Thanks!

    0
  • Vince Suriani
    Aktionen für Kommentare Permalink

    Hi Jillian!

    Yeah, so, on the page I wanted to hide an element in our footer, request_page.hbs, in the code, I just added this CSS inline on the page:

    <style>
    footer .element_to_hide {
    display:none;
    }
    </style>

     

    Nothing crazy, and it works. Hope that helps?

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk