• Hi!

    I hope I’m posting in the right section.
    My problem is that I want to create a static front page with my index.php. Now I just would like to link with an Enter button to another site with the loop of all my posts.

    I already built the whole Index so I only need help in linking it to my actual posts.

    Maybe anyone can help me with it.

    Thanks in advance

    Julia

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter M4rk0444

    (@m4rk0444)

    Up

    where are you stuck with?

    do you have the static front page?
    is that site running on WordPress or is it a static site?

    if the site is running on WordPress, review https://codex.www.ads-software.com/Creating_a_Static_Front_Page
    note: instead of customizing index.php, a better file would be front-page.php

    does the other site use WordPress as well?

    whaat themes are you using on the sites?

    Thread Starter M4rk0444

    (@m4rk0444)

    Hi! Thank you for your answer!

    I have a static front page just with some php and an enter button.

    I want to link that page to a page with the loop to all my posts.
    Everything is running on wordpress. What would be the easiest way to link a button from the index page to the actual loop page?

    I want to make a little custom theme with it.

    the loop page would run on home.php or index.php – as you seem to have cutomized index.php for your static front page (correct me if I am wrong) you might need to create a home.php template with the default loop (https://codex.www.ads-software.com/The_Loop )

    then create a normal page in the dashboard (‘dashboard – pages – add new‘) and publish it (no need to add any content; this would not b e used anyway) – and set this new page to be the ‘posts page’ under ‘dashboard – settings -reading

    I want to make a little custom theme with it

    what files do you have currently in your theme?

    have you worked through https://codex.www.ads-software.com/Theme_Development ?

    possibly also https://codex.www.ads-software.com/Site_Design_and_Layout

    Thread Starter M4rk0444

    (@m4rk0444)

    Thank you!

    You are right with the index. I would like to have static content when the user hits my site and have a button to link to the loop page.

    I am using index.php footer.php header.php functions.php and my css files.

    I worked trough your links before.

    So it would be the best way to create home.php and static page like you described?

    imho, it would be best to create a front-page.php for the static front page; a home.php for the index loop, and a general index.php for all eventualities like showing single posts, archive pages, etc …
    and of course keep header.php, footer.php, functions.php …

    see template hierarchy https://developer.www.ads-software.com/themes/basics/template-hierarchy/

    Thread Starter M4rk0444

    (@m4rk0444)

    Okay thank you that helped a lot! I will work trough this link!

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Landing Page to Loop’ is closed to new replies.