Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Reordering the landing page ‘sections’ such as ‘features’, ‘about’, etc. is actually pretty simple, and just requires changing the order in which some code appears in the php file.

    Please see my comment in another (resolved) post, which addresses this issue:
    https://www.ads-software.com/support/topic/adding-links-to-theme-services-elements-and-reordering-the-home-page?replies=3

    Hi Aroxeadmin, I can help with the reordering of the home page elements.

    To reorder the various elements on the Modality home page, simply locate the file ‘index.php’ in your theme directory. All you have to do is select the snip of code relating the element you want to move, and rearrange it within the code. Inherently, Modality has the ‘features’ section above the ‘About’ section, which I didn’t enjoy. Each section is controlled by 3 lines of code, below is how the code in ‘index.php’ looked originally:

    `if ($modality_theme_options[‘features_section_on’] == ‘1’) {

    get_template_part( ‘features’, ‘section’ );

    }

    if ($modality_theme_options[‘about_section_on’] == ‘1’) {

    get_template_part( ‘about’, ‘section’ );

    }`

    By cutting the ‘about’ section’s 3 lines, and placing it above the ‘features’ section, the page was reordered. This exercise can be completed to reorder any of the elements found in the ‘index.php’ file. Modified code below:
    `if ($modality_theme_options[‘about_section_on’] == ‘1’) {

    get_template_part( ‘about’, ‘section’ );

    }

    if ($modality_theme_options[‘features_section_on’] == ‘1’) {

    get_template_part( ‘features’, ‘section’ );

    }`

Viewing 2 replies - 1 through 2 (of 2 total)