Harmonic theme front page display order
-
Hello,
I’m running the Harmonic theme (albeit on a self-hosted site, I’m asking here because I think the theme hasn’t really penetrated outside of .com yet).
I’m wondering if there is a way to change the order that the sections on the front page are displayed? I’ve tried changing the order that they are called in the php file, but that really garballed things up.
Garballed is a new word.
Any help?
I’ve successfully renamed the slides from “slide-2, slide-3, slide-4, slide-5” to “splash, news, mission, contact, portfolio” would that cause a problem in the re-ordering?
When I tried changing the order that they are pre-loaded, the site was broken (some PHP error). When I re-ordered they way they were called, it kind of worked, but then there were scroll bars everywhere and I couldn’t see all the content properly (seems to be a “z-order” problem?)
The blog I need help with is: (visible only to logged in users)
-
Oh, and another question while we’re here.
I want to use the URL http://(SITE_URL)/portfolio/ for a page that I will design as a portfolio index. I do not want to see the default jetpack-portfolio index. It seems no matter what I do, even when I change the permalink on the page I created to “/portfolio/” I still only see the jetpack generated portfolio index, not the one I created with images and paragraphs. Anyway to get rid of the URL reference to the generated index?
-
So I figured out my problem. I was missing the fact that the final endif has a ?> and when I copied portfolio up, i missed that part.
But I still don’t know how to change the default /portfolio/ page, other than maybe editing the php to be the template of a page?? I’m confussed.
-
So I figured out my problem.
Glad you sorted that out.
But I still don’t know how to change the default /portfolio/ page, other than maybe editing the php to be the template of a page?? I’m confussed.
The Jetpack portfolio archive will always be at /portfolio/ – there isn’t a way to change the slug.
You might be able to try experiment with URL rewriting via the htaccess file and mod_rewrite, but that would be something to ask about in the WordPress.org general support forums if you need help with it.
Another thing to try is creating your own archive page – with another page slug – and adding the portfolio shortcode to it.
-
-
Not at all.
In Front Page Page Template (templates/front-page.php) you must change the order that the php functions are called. It looks like this:
<main id="para-template"> <div id="skrollr-body"> <?php $front_intro = get_theme_mod( 'harmonic_front_title' ); if ( 1 != $front_intro ) : get_template_part( 'content', 'front-intro' ); endif; $front_news = get_theme_mod( 'harmonic_front_news' ); if ( 1 != $front_news ) : get_template_part( 'content', 'front-news' ); endif; $front_page = get_theme_mod( 'harmonic_front_page' ); if ( 1 != $front_page ) : get_template_part( 'content', 'front-page' ); endif; $front_portfolio = get_theme_mod( 'harmonic_front_portfolio' ); if ( 1 != $front_portfolio ) : get_template_part( 'content', 'front-portfolio' ); endif; $front_widgets = get_theme_mod( 'harmonic_front_widgets' ); if ( 1 != $front_widgets && is_active_sidebar( 'sidebar-2' ) ) : get_template_part( 'content', 'front-widgets' ); endif;?> </div> </main><!-- #para-template -->Note that the final statement must have the ?> to close the HTML php tag.
Do not re-order the stuff under the pre-load dif. It will break your site.
-
Just a heads-up that if you’ve made changes in the theme directly, you’ll lose all your tweaks the next time you update the theme. I recommend going with a child theme. There have already been many fixes in the version of Harmonic waiting in the WordPress.org queue, so please be careful when updating so you don’t lose all your work.
I’m going to close this thread but please feel free to post in the WordPress.org forums if you need further help. Feel free to tag the thread with wpcom-theme until Harmonic has its own forum, that way I’ll be sure to see it. Thanks!
- The topic ‘Harmonic theme front page display order’ is closed to new replies.