• I am using the Portfolium theme and when I select my work page to be my static page, both my homepage(static page) and work page disappear.

    Neither images or text appear. The same thing happens when I try to make my other pages the static page. How do I fix this?

    Thank you in advance!

    Here is the site if you want to look. Dinovistudio.com

Viewing 14 replies - 1 through 14 (of 14 total)
  • You may need to set the homepage up with a homepage template. Edit page>Page Attributes

    Thread Starter retroceso

    (@retroceso)

    i think the portfolium theme does not have that homepage template.

    I have worked around the problem by renaming “front-page.php” (which is what WP uses as home page if it exists) to “page-works.php” (which activates it on the single page with the slug ‘works’) (see https://codex.www.ads-software.com/Template_Hierarchy).

    I now have “Front page displays … A static page” set in “Settings > Reading”, and the following page structure:

    Home (static page, slug: ‘home’, this is set as the “front page”)
    – Works (slug: ‘works’)
    – Blog (slug: ‘blog’, this is set as the “posts page”)

    I am still working on figuring the rest of it out …

    Hi there, can you explain this a bit further please brynda? Where/how do you rename “front-page.php”? And does your static front page display fine now?

    Thanks much
    -np

    Hi,

    basically what’s happening is that if “front-page.php” exists, it is “force”-loaded as the home page, overriding the settings in “Settings > Reading”.

    Do you have FTP access to your wordpress directory?
    Your theme files will be under /wp-content/themes/portfolium – there you can rename “front-page.php” to “page-works.php”. The next thing is to create a static page for the portfolio and use “works” for its slug.

    It works fine on my website now, so let me know if doing this solves the problem, if not I’ll check if there is any code that I have added, although this should be it.

    Thanks so much! Worked like a charm…

    hello brynda,
    this thread is the closest i have come, i believe to answering a question that i have about static pages, and I’m wondering if you can clarify more to help me solve my problem.

    Basically, I want the home-page of my website (i.e. the first page that loads), to be a static page, with just one image.

    Then, I want a link in the menu named “portfolio” to lead to all the thumbnail links to the various image galleries that i have created– i.e., to the page that is currently my default home page.

    is this possible? i have tried editing the front-page.php file, but I’m not sure what you mean above by “renaming” the file– how do I do this? Can you show me a line of code to insert?

    I hope this is clear (you can refer to the website here: davidwhitesideart.com), and I’m sorry I’m so unfamiliar with technical language!

    Hi davidwhi,

    I hadn’t worked with this for a long time so I had to re-read my own comments haha

    OK, so the way you would achieve that would be to log in to your wordpress folder structure via FTP or the file manager your website host provides, then effectively rename "front-page.php" to "page-works.php" (it could be "page-<yourslug>.php", really). As far as I remember, you don’t need to edit the file at all. This is just to tell wordpress to load wpshower’s portfolio page whenever the “works” or “<yourslug>” page is loaded.

    Now this allows you to load a static page as the front page, instead of first going to “front-page.php”, which now no longer exists since you’ve renamed it. Again, see https://codex.www.ads-software.com/Template_Hierarchy for a better understanding.

    So you should now have two “static pages”: <yourslug> and <yourfrontpage> . “<yourslug>” will automatically load the portfolio, and you should set <yourfrontpage> as the static front page in the wordpress config.

    Hope this helps, let me know if it works!

    Btw, nice website and nice art!

    hi again brynda,

    thank you so much for your help! that worked like a charm!

    now i only have one other problem, if you’re willing/able to help. I would like the static front page to have a different formatting from the other static pages– i want the image to be justified all the way to the left, rather than leaving space for the name of the page (which I deleted for the front page in any case, but the page layout still leaves space for it– see the “about”, “news”, or “contact” pages if you don’t know what i mean.)

    would i have to create a new page template to do this? i have no experience editing .php so i’m wary of trying . . .

    hi again davidwhi,

    no problem, happy to help!

    you can install the My custom CSS plugin (to keep all the original theme files intact) and add this line:

    #post-1162 .post_list_meta {display:none}

    this will hide/disable the white space on the left. best to use the Firebug add-on for Firefox for all the CSS stuff, if you don’t have it already. then you can play with it and customize your theme as much as you wish in “My custom CSS” without messing up anything!

    you should probably edit the permalink of your front page in the page editor and put something like “home” in there, and then reference it in the CSS like so instead:

    #home .post_list_meta {display:none}

    hope this helps!

    thanks!

    in the end i did end up uploading an edited page.php and setting it as the homepage template– i guessed at which line of code i needed to delete and i happened to be right, it wasn’t as scary as i thought!

    thank you so much for all your help, brynda.

    K, this all sounds like what I’m looking to do, one quick question though…

    Can I rename this file through Cpanel without causing the whole site to freak out?

    And, while I may have your attention… How does one export an altered theme from WordPress? I’m working on a dummy site and transferring over to my normal site after I get everything behaving properly. I realize I can just back up all the files and copy and paste after installing the theme, but is there an easier way?

    @thehodge
    Please start you own thread per https://codex.www.ads-software.com/Forum_Welcome#Where_To_Post

    I am closing this.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘How do I fix my Portfolium static page/homepage?’ is closed to new replies.