• Hi,
    I actually have two questions (I am currently trying out the free version of your theme):
    1. is it possible to edit the display of the default pagination (the pagebreak block in Gutenberg)? Currently it lists all the pages like Pages: 1,2,3,4,5,6, etc. The problem is that if you have a page that is split into 20 pages, it will list ALL of them and make it very unuserfriendly. Would it be possible to have the same pagination for the pagebreak block as for archives?

    2. When I edit a theme option in the customizer(for example container width, font-size etc) – is this css placed inline or in a seperate file, and if it is placed inline: is the css declaration ALWAYS there, regardless of whether I change a value or leave as it is by default?

    Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi there,

    1. WP provides this filter hook: wp_link_pages_args

    Which accepts these arguments:

    https://developer.ww.wp.xz.cn/reference/functions/wp_link_pages/

    But i don’t think it can be modified easily to match the paging links seen on archives. But you can for example:

    a. Switch it to Next / Previous:
    https://generatepress.com/forums/topic/label-pagination/#post-1607144

    b. Modify it to have next / pages / prev:

    https://gist.github.com/drivenfaroff/7570106

    Alternatively maybe this plugin does what you need:

    https://en-gb.ww.wp.xz.cn/plugins/wp-pagenavi/

    2. In Customizer > General you have the option to save dynamic CSS inline or as an External file.

    Dynamic styles are only generated if a customizer setting has a value.
    Examples:
    a. by default the Container Width has a default value so a style for that is written.
    b. the H2 Archive has not default, so if you don’t set one it won’r write a style rule. Instead the H2 will a) inherit styles from the body or content or fallback to the main.css styles.

    Thread Starter rockysaxxx

    (@rockysaxxx)

    Thank you. Unfortunately the prev and next doesn’t really make for good usability either…I would love if the theme could modify it so that all naviagtions (for post archives, products, custom post types and also page breaks would look the same and you have a continous design!

    Re the css: so is there a list of which elements have a setting by default? I reset the customizer and found several inline references for css from the theme.

    I am sorry but the Theme cannot do that. The code for page breaks is handled by WordPress, and they didn’t include the same set of parameters found in the other paging navigations. The most i can offer is the use of the above filters and some CSS.

    RE: CSS, what exactly is you’re trying to determine ?

    Thread Starter rockysaxxx

    (@rockysaxxx)

    Ah, too bad πŸ™

    Re the css: well, I need to use a child theme anyways so instead of having additional dynamic css placed inline through the theme settings in the customizer (like font-weight, logo size, entry-content margin etc), I’d rather place them in my child theme’s css since it is loading anyways…does that make sense? I only want to use the customizer for the theme settings where there already is a declaration and it wouldn’t more lines of css.

    So out of the box, the majority of that inline CSS is the Colors that are set in the Customizer > Colors. Those are 100% dynanic.

    After that its the default padding and margins required for the container, sidebars and navigation. In the free theme, there are limited options to change those values, but they are written dynamically as GP Premium can affect them.

    Thread Starter rockysaxxx

    (@rockysaxxx)

    Hmm, I guess the only way would be to change every setting in the customizer one by one and look if anything was added in the files :/ I noticed for example – contrary to what you ahd mentioned – that giving the container a different size does add another line of css.

    Hi David, hope you are good.

    I want to move Pagination above Author Box on my site Shayariholic.com. Please check, paginations are coming below the author box, how can I move them upwards?

    Hi there,

    please raise a new topic

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

The topic ‘Pagination/css in customizer’ is closed to new replies.