• Resolved catfishtpa

    (@catfishtpa)


    I need to create a few landing pages, but I cannot install a plugin (I am the site admin, but it is a white label platform on an external server and for security reasons, the main admins do not allow me to install plugins, or to upload HTML files). I also do not want to host the landing page on a different server.
    So I am looking for a way to create a landing page within WP.
    The following aspects are important to me:
    the LP should not be connected to any menu, and not show up in any sitemap
    the LP should not be indexed by Google
    the LP should not have any menus or widgets, basically, it should be a simple page with HTML code, with its design independent from the main theme
    The landing page must have a URL like mydomain.com/lp12345.html
    How can I achieve that?
    I assume the answer must be rather simple, but I have very little experience with WP, so please bear with me.

    • This topic was modified 4 years, 7 months ago by catfishtpa.
    • This topic was modified 4 years, 7 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 9 replies - 1 through 9 (of 9 total)
  • You could create a separate template for landing pages in your theme (that doesn’t include any menu items, etc.).
    But that would require uploading at least one PHP file.

    What you are thinking about may be possible within WordPress itself with Full Site Editing by the end of the year, but not for now – not with all of those restrictions.

    Thread Starter catfishtpa

    (@catfishtpa)

    well, uploading a PHP file is a problem.
    But let’s say I create a page based on the same theme (which would include the menus etc) . how can I achieve that the page would not be in my sitemap (by Yoast), or at least make sure that Google does not index the page?

    @catfishtpa in the page edit screen, go to the Advanced tab in Yoast settings. Click on the drop-down under “Allow search engines to show this Page in search results?” and choose no. You can refer to the Yoast guide on this.

    About the landing page, since you can’t install plugins and I am assuming you don’t have access to the site’s files (functions.php, theme files) you can use Gutenberg blocks to design it and use custom CSS to hide the theme’s menu.

    On the customizer screen, there’s an additional CSS tab you can put the CSS code to hide the menu – you can hide it on just the landing page. For further clarification, the current WordPress editor uses blocks to create contents. You can arrange different blocks to create a landing page.

    Thread Starter catfishtpa

    (@catfishtpa)

    I have created, for posts, a new category “landing pages”. Then I have created a post with that category which would be my LP. That way it should not be connected to any menu, right?
    And I have found the advanced settings in the Yoast SEO snippet. Allow search engines to show post is set to “No” now.
    Further below is a box named Advanced Meta Robots, should I enter something there as well?

    Thread Starter catfishtpa

    (@catfishtpa)

    about adding a page with Guttenberg blocks – that seems to be a good idea.
    What would the css code to hide the menu look like?
    This is a raw draft for that landing page: https://redfoxlotto.com/es/lpes1/;
    can I also hide all that stuff in the header and footer via CSS?

    Thread Starter catfishtpa

    (@catfishtpa)

    that page I posted the URL for was created with the normal editor. This one was created with Guttenberg:
    https://redfoxlotto.com/es/lpes2/
    Where do I enter the css code?

    • This reply was modified 4 years, 7 months ago by catfishtpa.

    CSS can be customized by going to /wp-admin/ -> Appearance -> Customizer -> Additional CSS

    Thread Starter catfishtpa

    (@catfishtpa)

    Actually, the function to add css to a page is also disabled for my admin level, so I am going to have to host my landing pages elsewhere after all

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How can I create a landing page within WordPress without a plugin?’ is closed to new replies.