• Resolved szabizs

    (@szabizs)


    Hey guys,

    I build my own portfolio page.

    I got my WP running for a year now and I want to make something new, but can’t find the way to do it.

    I want to make a FLASH portfolio and to keep my WP.

    I want that my index.html to be a splash screen with 2 option, go to blog or go to portfolio, but I can’t do this without moving my WP to another folder, I want to keep WP in the root, is that possible ?

    Thank you,
    Szabi Zs.
    http://www.bysobi.com

Viewing 15 replies - 1 through 15 (of 18 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Make a Static Front Page for your site. In the template for the page, put the flash. Then make a second page (like ‘news’ or ‘blog’) and have THAT page template be your normal index page πŸ™‚

    Thread Starter szabizs

    (@szabizs)

    The problem is that the static page will be loaded inside WP and my widgets and menus will be visible, I don’t want that.

    Moderator James Huff

    (@macmanx)

    The problem with that is that WordPress will always direct visitors to bysobi.com (with no specific index). If you place an index.html file in root, you’ll effectively “break” your blog, because the visiting browsers will then load bysobi.com/index.html as it comes before bysobi.com/index.php alphabetically.

    Now, you could set your .htaccess file to override the alphabetical order and load bysobi.com/index.php first, but that would defeat the purpose of have a splash screen, as no one would ever see it unless they specifically went to bysobi.com/index.html .

    The best solution in this case would be to move your blog to a subdirectory, like bysobi.com/blog/ . That way, you can keep your splash page in the root without affecting your blog.

    Thread Starter szabizs

    (@szabizs)

    That is true, BUT πŸ™‚

    If I move to a subdirectory, I will loose all my links from the search engines and posts on social platforms, that’s my main concern with the subdirectory.

    Moderator James Huff

    (@macmanx)

    That is certainly one unfortunate side-effect.

    A good compromise would be to go with Ipstenu’s suggestion of assigning a static front page, and create a custom page template with no sidebar or menu, basically just the page and whatever you put in it.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    I was going to say what macmanx said πŸ™‚ You don’t HAVE to have any widgets etc in your static front page. I do exactly that one mine πŸ™‚

    Thread Starter szabizs

    (@szabizs)

    Thank you,

    How can I assign my template just for the static page?

    I dont have the option to set the template in the right sidebar.

    Moderator James Huff

    (@macmanx)

    It should be there. When you go to Pages/Add New in the admin panel, you should see “Attributes” off to the right. Expand it, if it isn’t already, and select the template from the pull-down menu under the “Template” section.

    Thread Starter szabizs

    (@szabizs)

    Nope, it’s not there.

    Parent
    
    Page Parent
    You can arrange your pages in hierarchies. For example, you could have an β€œAbout” page that has β€œLife Story” and β€œMy Dog” pages under it. There are no limits to how deeply nested you can make pages.
    
    Order
    
    Page Order
    
    Pages are usually ordered alphabetically, but you can put a number above to change the order pages appear in.
    Moderator James Huff

    (@macmanx)

    Have you created the page template yet? The menu will not appear if you don’t have any page templates.

    Have you created the page template yet? The menu will not appear if you don’t have any page templates.

    It should still appear, it will just show one option “Default”.

    Moderator James Huff

    (@macmanx)

    It should still appear, it will just show one option “Default”.

    It won’t appear if he’s using a theme that has no defined page templates, like the Classic theme for example.

    Oh yes, you’re correct, i had always assumed it was shown when no templates were present, being the default option.. (i was wrong)… πŸ™‚

    Thread Starter szabizs

    (@szabizs)

    Well I’ve created a folder SPLASH with the slash.php and page.php in the themes folder.

    Isn’t that the location that I should create it?

    Moderator James Huff

    (@macmanx)

    No, you create it as a template with your theme. Follow the guide linked to above and create a page template titled Splash in a file named splash.php, then upload that your current theme’s directory.

Viewing 15 replies - 1 through 15 (of 18 total)

The topic ‘add a new index.html to root’ is closed to new replies.