-
AuthorPosts
-
June 5, 2019 at 3:46 pm #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
June 6, 2019 at 5:02 am #1107794Hey Moroboshi82,
I’m not sure what you are asking, could you try to explain a bit further please?
Best regards,
RikardJune 6, 2019 at 3:42 pm #1107971Hi 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
June 11, 2019 at 4:29 am #1108986Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.
