Fix the blank space for sticky sidebar
-
Hello,
When i scroll up the page, there’s blank above the (navigate) sidebar, it should be a sticky sidebar, the code as below, i just changed the post id and text# for each post, some post show up good sticky sidebar, but some appear with blank. Anyone can help to clarify where the problem is ?
PS: Is there any other plugins can do the same sticky sidebar without using code?
——————————————————————————–
<?php
/**
* Genesis Framework.
*
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
* Please do all modifications in the form of a child theme.
*
* @package Genesis\Templates
* @author StudioPress
* @license GPL-2.0+
* @link https://my.studiopress.com/themes/genesis/
*/do_action( ‘genesis_doctype’ );
do_action( ‘genesis_title’ );
do_action( ‘genesis_meta’ );wp_head(); // We need this for plugins.
?>
</head><?php if ( is_single(‘724’) ) { ?>
<style> #text-13 { display: block; } </style>
<?php } else { ?>
<style> #text-13, #text-13 .widget-wrap { display: none; } </style>
<?php } ?><?php if ( is_single(‘714’) ) { ?>
<style> #text-14 { display: block; } </style>
<?php } else { ?>
<style> #text-14, #text-14 .widget-wrap { display: none; } </style>
<?php } ?><?php if ( is_single(‘924’) ) { ?>
<style> #text-15 display: block; } </style>
<?php } else { ?>
<style> #text-15, #text-15 .widget-wrap { display: none; } </style>
<?php } ?><?php if ( is_single(‘1097’) ) { ?>
<style> #text-16 { display: block; } </style>
<?php } else { ?>
<style> #text-16, #text-16 .widget-wrap { display: none; } </style>
<?php } ?><?php if ( is_single(‘1105’) ) { ?>
<style> #text-17 { display: block; } </style>
<?php } else { ?>
<style> #text-17, #text-17 .widget-wrap { display: none; } </style>
<?php } ?><?php if ( is_single(‘1202’) ) { ?>
<style> #text-18 { display: block; } </style>
<?php } else { ?>
<style> #text-18, #text-18 .widget-wrap { display: none; } </style>
<?php } ?><?php
genesis_markup( array(
‘open’ => ‘<body %s>’,
‘context’ => ‘body’,
) );
do_action( ‘genesis_before’ );genesis_markup( array(
‘open’ => ‘<div %s>’,
‘context’ => ‘site-container’,
) );do_action( ‘genesis_before_header’ );
do_action( ‘genesis_header’ );
do_action( ‘genesis_after_header’ );genesis_markup( array(
‘open’ => ‘<div %s>’,
‘context’ => ‘site-inner’,
) );
genesis_structural_wrap( ‘site-inner’ );- This topic was modified 7 years, 2 months ago by .
- This topic was modified 7 years, 2 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Fix the blank space for sticky sidebar’ is closed to new replies.