jarrodG-2
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Different Layout/Template depends on session/cookie.
Started by: jarrodG-2
in: Toolset Professional Support
Problem: Solution: The wpv_filter_force_template filter (https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_force_template) can be used to switch Views Content Template. If you are using Layouts there is a filter get_layout_id_for_render that you can use, but it's not documented. You would use it something like this: function tssupp_switch_layout( $layout_id, $slug ){ // test for cookie value and modify current $layout_id as required return $layout_id; } add_filter( 'get_layout_id_for_render', 'tssupp_switch_layout', 10, 2 ); |
2 | 2 | 6 years, 11 months ago |