Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1107655

    Hello to the whole community of the support forum of ENFOLD
    I would need some help to know where the $ fave_val value of this function is used:

    protected function get_hierarchical_select_template( array $element, $html, $multi_class, $fake_val )
    {
    $output = ‘<span class=”avia_style_wrap avia_select_style_wrap’ . $multi_class . ‘”>’;
    $output .= ‘<span class=”avia_select_unify”>’;
    $output .= $html;
    $output .= ‘<span class=”avia_select_fake_val”>’ . $fake_val . ‘</span>’;
    $output .= ‘</span>’;
    $output .= ‘</span>’;

    if( isset( $element[‘hook’] ) )
    {
    $output.= ‘<input type=”hidden” name=”‘ . $element[‘hook’] . ‘” value=”‘ . $element[‘hook’] . ‘” />’;
    }

    return $output;
    }

    that we found in class-html-helper.php and that allows us to “Select which page to display on your Frontpage”

    Regards

    #1107794

    Hey Moroboshi82,

    I’m not sure what you are asking, could you try to explain a bit further please?

    Best regards,
    Rikard

    #1107971

    Hi Rikard,

    I hope to explain some better. In the Enfold theme, at Theme Options – Frontpage Settings I can select which page to display on my Frontpage. Ok, for SEO issues I need to have three Home, random.

    I’ve been studying your theme and the above function generates that select, but I haven’t seen where the Frontpage is called.

    Knowing the file, I can force the pages and get my goal :-)

    Best regards

    #1108986

    Hi,

    The theme is using the following filters to redirect to the page set as front page.

    add_filter('pre_option_show_on_front', 'avia_show_on_front_filter');
    add_filter('pre_option_page_on_front', 'avia_page_on_front_filter');
    

    You should be able to check that in the themes\enfold\includes\ folder. Look for the helper-template-logic.php file > avia_modify_front function.

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.