• Resolved xberg

    (@xberg)


    Hi,
    I am unable to get the floating TOC in the sidebar to work. What I want is that the TOC is always displayed in the sidebar as the user scrolls down.

    I found the sidebar ID (sidebar-1) by looking at the code sent to the register_sidebar function:

    $sidebar_args['sidebar'] = array(
    			'name'        => __( 'Sidebar', 'themedd' ),
    			'id'          => 'sidebar-1',
    			'description' => __( 'Add widgets here to appear in your sidebar.', 'themedd' )
    		);

    I inserted sidebar-1 in Easy TOC options “Widget afix selector”
    I ticked in the TOC widget “afix”
    and the TOC still does not scroll.

    Am I missing something?

    • This topic was modified 8 years, 4 months ago by xberg.
    • This topic was modified 8 years, 4 months ago by xberg.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Steven

    (@shazahm1hotmailcom)

    @xberg

    That is the PHP code which registers the sidebar… you need the CSS sidebar ID. Use the browsers inspector to find the sidebar ID.

    Hope that helps!

    Thread Starter xberg

    (@xberg)

    Perfect! Your help is much appreciated and indeed solved the problem.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to create a auto-scrolling widget sidebar?’ is closed to new replies.