Hi,
I want to add post navigation to my blog-post pages: https://www.r2pro.nl/creatieve-focus/ so you can go easily back an forth to the next and previous post. I found some plugins where you have to replace a line in the single.php. Though that line that I have to replace does not exists. How do I get navigation arrows here?
Kind regards,
Nine Klaassen
When the menu on a mobile is too long, it isn’t possible to scroll trough it.
]]>At this moment when the main sidebar has no active widgets the div is still there and the single-post and blog page still have an empty space on the position of the sidebar.
With a simple change the content on those pages could go full-width.
this would be sufficient:
content.php
<?php get_sidebar();
if (is_active_sidebar('sidebar-1')) {
echo'<div class="col-md-9 col-sm-8 col-xs-12">';
} else {
echo'<div class="col-md-12 col-sm-12 col-xs-12">';
}
?>
sidebar.php
if (is_active_sidebar('sidebar-1')) {
?>
<div class="col-md-3 col-sm-4 col-xs-12 main-sidebar filter_category">
<?php dynamic_sidebar('sidebar-1'); ?>
</div>
<?php
}
]]>