diff --git a/wp-content/themes/cosmopet/page.php b/wp-content/themes/cosmopet/page.php index 747165d..968f7cd 100644 --- a/wp-content/themes/cosmopet/page.php +++ b/wp-content/themes/cosmopet/page.php @@ -25,7 +25,10 @@ elseif (is_account_page() && isset($wp->query_vars['view-subscription'])){ include_module('profile'); include_component('profile', 'subscription_single'); } -$context = Timber::context(); -$context['post'] = Timber::get_post(); -Timber::render('page.twig', $context); \ No newline at end of file +else{ + $context = Timber::context(); + $context['post'] = Timber::get_post(); + + Timber::render('page.twig', $context); +} \ No newline at end of file diff --git a/wp-content/themes/cosmopet/templates/profile/profile-base.twig b/wp-content/themes/cosmopet/templates/profile/profile-base.twig index 45e31c5..3978f42 100644 --- a/wp-content/themes/cosmopet/templates/profile/profile-base.twig +++ b/wp-content/themes/cosmopet/templates/profile/profile-base.twig @@ -1,3 +1,8 @@ +{% set bodyClass = 'bg-white' %} +{% set mainClass = 'wrapper' %} + +{% extends 'layout.twig' %} +{% block content %}
@@ -608,4 +613,6 @@
- \ No newline at end of file + + +{% endblock %} \ No newline at end of file