Question

Photo of Andrew Lee

1

Give Now page has extra Comma in it when user is not logged in.

When users access domainname.com/page/216 to do online giving it says "Hello," in the middle of the page.  When the user is logged in it says Hello, username.  Is there a way to remove that comma when no user is logged in?  I modified the block security so unauthenticated users wouldn't even see the "hello" but this also removed the text on the right hand side explaining active profiles.


Thank you!

  • Photo of Arran France

    0

    Hey Andrew,

    In the block settings it says {% include ~~/Assets/Lava/ScheduledTransactionSummary.lava %} this is a reference to the ScheduleTransactionSummary.lava file for your current theme (by default for the external site, Stark). The include tag and the ~~ is explained really well here.

    If we open up that file you'll notice this section:

    Hello, {{CurrentPerson.NickName}}

    This is the section that needs to be changed. You can wrap that in a simple {% if CurrentPerson != null and CurrentPerson.NickName != '' %} {% endif %}