- This topic has 26 replies, 2 voices, and was last updated 3 years, 7 months ago by Leo.
-
AuthorPosts
-
August 31, 2020 at 7:08 am #1425038Walter Schwarz
Hi David,
in an other thread the following css was proposed to create a sticky side bar left side:
.site-content {
display: flex;
}
.site-content > div {
left: unset !important;
}#left-sidebar {
order: -1;
}#left-sidebar .inside-left-sidebar {
position: -webkit-sticky;
position: sticky;
top: 80px;
}Works fine – but not in combination with my breadcrumbs code. Could you please check and send a modified css configuration?
URL should work and not create a “502 bad gateway”. I tested it on several notebooks and smartphones.
Thank you,
WalterAugust 31, 2020 at 8:53 am #1425322LeoStaffCustomer SupportHi there,
I just view and the but not seeing any issues?
https://www.screencast.com/t/2rTod8aTqnKAm I missing something?
August 31, 2020 at 9:30 am #1425383Walter SchwarzHi Leo,
sorry – I forgot to save the css with the sticky code. Now it is stored as intended.
Cheers.
August 31, 2020 at 10:05 am #1425431LeoStaffCustomer SupportGlad to hear 🙂
August 31, 2020 at 10:21 am #1425460Walter SchwarzHi,
I guess it’s a misunderstanding. Saving the css code did not solve the problem, but allows to show you the problem I have (breadcrumbs do not work as they should using the sticky code).
Applying the sticky code squeezes the breadcrumbs between left widget column and the middle content column.
The breadcrumbs should again start above the left widget column and disappear by scrolling down or they should also be sticky …
Cheers.
August 31, 2020 at 10:34 am #1425479LeoStaffCustomer SupportHow are you adding the breadcrumbs currently?
Using a hook?
August 31, 2020 at 10:41 am #1425494Walter SchwarzI use YOAST Premium and modifications I have made long time ago in the page.php (?):
<?php
/**
* Template Name: drwjs | breadcrumbs » copyright
* Author: drwjs
*/if ( ! defined( ‘ABSPATH’ ) ) {
exit; // Exit if accessed directly.
}get_header(); ?>
<!– drwjs | Breadcrumbs –>
<?php if ( function_exists(‘yoast_breadcrumb’) ) {
yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’); /* Original: id */
} ?>
<!– drwjs | Breadcrumbs ENDE –>>
<main id=”main” <?php generate_main_class(); ?>>
<?php
/**
* generate_before_main_content hook.
*
* @since 0.1
*/
do_action( ‘generate_before_main_content’ );…..
Cheers.
August 31, 2020 at 4:03 pm #1425763LeoStaffCustomer SupportNo need to modify the template to insert breadcrumbs.
Can you try a hook solution as recommended here?
https://docs.generatepress.com/article/adding-breadcrumbs/September 2, 2020 at 8:21 am #1428016Walter SchwarzHi,
I tried a lot, but did not succeed. I always have the effect, that the breadcrumbs “create” a new column between the left widget and the middle main content.
I will leave the wrong coding for a while to demonstrate:
I used:
– [ w p s e o _ b r e a d c r u m b ] —-> originally without the blanks inserted.
– generate_before_entry_title
– shortcodes activated
– PHP kann nicht ausgeführt werden, da DISALLOW_FILE_EDIT definiert ist.
– page | all pagesWhat is wrong or missing?
Cheers.
WalterSeptember 2, 2020 at 8:24 am #1428022LeoStaffCustomer SupportAre you adding this
for the breadcrumb?
<div class="grid-container grid-parent"></div>
If so can you try removing that?
September 2, 2020 at 8:34 am #1428034Walter SchwarzIf you mean in the child-css: no.
Where else could it be?
Trying to use the php-code failed; I inserted as describes the shortcode [wpseo_breadcrumb] in the new element edit area. [ w p s e o _ b r e a d c r u m b ] —-> originally without the blanks inserted.
Could be that I totally are disoriented …
Maybe you could present screenshots of what exactly must be written and selected where.
CheersSeptember 2, 2020 at 10:57 am #1428184LeoStaffCustomer SupportCan you try the
after_header
hook?September 2, 2020 at 11:10 am #1428210Walter SchwarzI tried – but does not work.
I already tried shortcode, php-insertion, function.php with and without breadcrumbs-function and different hook-insertions …
The best would be if the plugin “Sticky Menu (or Anything!) on Scroll” could manage at least 2 widgets as announced years ago. Is there any other plugin to be recommended?
Thank you for your engagement.
Cheers.
September 2, 2020 at 11:22 am #1428215LeoStaffCustomer SupportThat plugin should still be good 🙂
September 2, 2020 at 11:30 am #1428231Walter SchwarzI know – but it can handle just one widget. I need to have left and right side widgets to be sticky at the same time …
-
AuthorPosts
- You must be logged in to reply to this topic.