[Support request] HOME URL WITH JS

Home Forums Support [Support request] HOME URL WITH JS

Home Forums Support HOME URL WITH JS

  • This topic has 2 replies, 2 voices, and was last updated 2 years ago by Leo.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #1064431

    Hi guys,

    I have a few new websites with GeneratePress (what else?), where there is an enter page, and then when you enter, home isn’t home URL but the /news/ page. For example:


    So the home URL of the logo should be https://farajijacobs.com/news/

    I am using Elementor for the Footer, so that isn’t the issue, but for the menu I am using TapTap, which doesn’t know, of course, that I want the logo to link to /news/.

    I know this is not directly related to GP, but the developers of the previous installed theme, gave me this code and it worked. Would something similar work in this case as well? I am not too familiar with JS, so I thought I’d ask, as it might also be a similar function when using GP for the menu.

    $(window).load(function () {
    $(‘.classic-menu .logo a’).attr(‘href’, ‘/news’);

    Thank you in advance!


    P.S. Obviously, /enter will be home when the site is live, which is the actual conflict: we don’t want people always returning to the enter page when they click on the logo. An old-fashioned way is actually creating 2 WP installs or having multisite, but rather over-blown just to have an enter page on home, and the rest of the site in a sub-folder.

    Customer Support

    Hi there,

    So are you trying to change where the site logo links to when clicked?

    If so you can use this filter:

    See some examples here:

    Let me know if this helps 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.