• Resolved emreyayu

    (@emreyayu)


    Hi,

    I built an author page with PHP but when i switch dark mode, page font colour doesn’t change. (still dark colour text, but slider, footer, header menu and other components can be change) I’m not good at with PHP so cant find the problem on my own.

    I think its about div class or something else. I will write my php code, if u guys help for fix i will be pleasure.

    PHP:

    <?php
    
    get_header();
    
    ?>
    
    <?php
    
    use LottaFramework\Facades\CZ;
    
    use LottaFramework\Utils;
    
    $layout = 'no-sidebar';
    
    if ( CZ::checked( 'yuki_post_sidebar_section' ) ) {
    
    ? ? $layout = CZ::get( 'yuki_post_sidebar_layout' );
    
    }
    
    ?>
    
    <div class="<?php Utils::the_clsx( yuki_container_css( $layout ) ) ?>">
    
    ? ? <div id="content" class="flex-grow max-w-full">
    
    <!-- This part mine text -->
     ?
        </div>
    
    	<?php
    
    	do_action( 'yuki_action_sidebar', $layout );
    	?>
    
    </div>
    
    
    <?php
    
    get_footer();
    

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Sorry, we do not provide support for custom code. If you just want to add a sidebar to the page, then I suggest that you can achieve this through the theme option without adding any custom code, so that you will not lose any styles or affect updates.

    Close due to inactive.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CustomPage DarkMode’ is closed to new replies.