• Resolved n

    (@aroxeadmin)


    Hello! I am currently seeking to add links to each of the elements I have selected in my “theme services” section for the Modality theme of a site; however, there are no instances to enter a URL within the editor. With access to CSS is it possible for me to add links to these, if so, where?

    Also, I am attempting to reorder the home page elements so that one section presents itself prior to the other although there is no theme editor option for section ordering. If possible, is there a CSS adjustment that can be made? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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’ );

    }`

    Thread Starter n

    (@aroxeadmin)

    Awesome! I used some of this in delivering for my client, I can’t thank you enough!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding links to "Theme Services" elements and reordering the Home page’ is closed to new replies.