Code Monkey home page Code Monkey logo

Comments (3)

bobbingwide avatar bobbingwide commented on July 26, 2024

Explanation

The shortcode being used to display the Table of Contents was

[bw_posts post_type="oik_presentation" post_parent=. 
orderby=menu_order order=ASC posts_per_page=20 
offset=0 ]

It's the use of offset=0 that prevented the list from scrolling.
Removing the parameter resolves the issue.

But see also a similar problem: bobbingwide/oik#13
Should the shortcode detect the use of potentially incompatible parameters?
I somehow doubt it.

from oobit.

bobbingwide avatar bobbingwide commented on July 26, 2024

Now what we really want to do is to make the list display in multiple columns.
That can be achieved using CSS

ul.bw_list { columns: 2; }

and while we're at it set list-style: none; and line-height: 1.4;

from oobit.

bobbingwide avatar bobbingwide commented on July 26, 2024

Doesn't need a theme or plugin change since we can change the shortcode and use the CSS block to adjust the styling.

I believe that this problem was answered by: https://bobbingwide.com/problem-solving/oik_presentation/steps/step-25-expert-opinion/
I'm the expert. I can't remember why I used offset=0 in the original page from which the shortcode was copied, I do know that the original shortcode was written before WordPress 4.4 and any pagination logic.

from oobit.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.