Site logo

Archived topic

Add page code to all pages

21 replies · Started by Charles on March 10, 2021

Viewing posts 1–15 of 22

Hello!

I have some WP page code I'd like to hook into all of my posts and pages. Can you help me figure out how to do that?

Thanks.

How can I put the page directly into the hook block? Do I have to copy the .html?

Not all aspects of my page seem to work when I do that.

What is the Page code you're trying to add ? Do you have a link to a page where it is visible ?

This part, which is an accordion block from a plugin, doesn't seem to work through the hoodk:

<!-- wp:ub/content-toggle-block {"blockID":"101e7bad-8fc6-4017-beb0-5109294ee5ef","theme":"#abb8c3","titleColor":"#000000","border":false} -->
<!-- wp:ub/content-toggle-panel-block {"parentID":"101e7bad-8fc6-4017-beb0-5109294ee5ef","theme":"#abb8c3","collapsed":true,"titleColor":"#000000","panelTitle":"\u003cstrong\u003eView All Sections\u003c/strong\u003e","titleTag":"h2","border":false} -->

I don't get a block choice -- header, hook, layout only.

Are you using the latest GP Premium version 1.12.3?

Looks like my theme is Generatepress 3.0.3.

I tried to upload but I get this error:

The package could not be installed. The theme is missing the style.css stylesheet.

Oh, right it's a plugin :)

This archived topic is closed to new replies.