Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #112142
    Steven
    Participant

    Hello,

    I have a few questions concerning the content elements (e.g., featured slider, portfolio, our professors, events, etc.) that I was hoping you could assist me with.

      1. Can these elements be renamed? (Not just changing the titles, but actually renaming the elements.)
      2. How can these elements be reordered on the homepage? For example, move the “Courses” element below the “Our Professors” element?
      3. How can you make an element show up on another page? For instance, if we have the courses element on the homepage, and then also want it on a subpage for courses, how is this possible without putting it on every single page?

    Thanks in advance for your help!

    #112161
    Mahesh
    Participant

    @stevphel:
    1. Can these elements be renamed? (Not just changing the titles, but actually renaming the elements.)
    -> You mean to rename the title in the customize option? If so, you’ll need to customize the theme further. I recommend you to hire a customizer.

    2. How can these elements be reordered on the homepage? For example, move the “Courses” element below the “Our Professors” element?
    -> This can be done using child theme and customize it there. You can find more details on creating a child theme HERE. Then add the following code in your child theme’s functions.php file.

    function clean_education_courses_display_position() {
        // Getting data from Theme Options
        $options = clean_education_get_theme_options();
    
        if ( $options['courses_position'] ) {
            add_action( 'clean_education_after_content', 'clean_education_courses_display', 85 );
        }
        else {
            add_action( 'clean_education_before_content', 'clean_education_courses_display', 75 );
        }
    }

    3. How can you make an element show up on another page? For instance, if we have the courses element on the homepage, and then also want it on a subpage for courses, how is this possible without putting it on every single page?
    -> For this, you can simply enable the elements on the whole site and then hide it from the page where unnecessary with Custom CSS. If you need help on this, I can help you with this. Please post in your site url.

    Regards,
    Mahesh

    #112641
    Steven
    Participant

    We were working on following the steps for #2, child theme and editing the functions.php. We got the following error, and now the entire site has crashed.

    Parse error: syntax error, unexpected ‘if’ (T_IF), expecting ‘,’ or ‘;’ in /home/mba41298/staging/1/wp-content/themes/clean-education-pro/functions.php on line 26

    We deleted the child theme and looked at the original php file (copied below). Is there anything else you would recommend us trying to fix this?

    <?php
    /**
     * Functions and definitions
     *
     * Sets up the theme using core.php and provides some helper functions using custom functions.
     * Others are attached to action and
     * filter hooks in WordPress to change core functionality
     *
     * @package Catch Themes
     * @subpackage Clean Education
     * @since Clean Education Pro 1.0
     */
    
    //define theme version
    if ( !defined( 'CLEAN_EDUCATION_THEME_VERSION' ) ) {
    	$theme_data = wp_get_theme();
    
    	define ( 'CLEAN_EDUCATION_THEME_VERSION', $theme_data->get( 'Version' ) );
    }
    
    /**
     * Implement the core functions
     */
    require trailingslashit( get_template_directory() ) . 'inc/core.php';
    #112677
    Mahesh
    Participant

    @stevphel: Please download the child theme from the link below. I’ve already put the code, just installing child theme will resolve your issue.
    http://bit.ly/2mv8jYC

    Regards,
    Mahesh

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Content elements – order and appear on different pages’ is closed to new replies.