Hi,
I’m using Mc Luhan theme (2.26.3) and I was wondering if there was a way to move running content in pdf exports from the bottom to the top of the page ?
Many thanks,
Charlotte
Hi,
I’m using Mc Luhan theme (2.26.3) and I was wondering if there was a way to move running content in pdf exports from the bottom to the top of the page ?
Many thanks,
Charlotte
Hi Charlotte,
You can use Appearance > Theme Options > PDF Options to review the running content for your PDF export. You can find more about this in the PDF Options section of the Appearance chapter in our User Guide.
Yes, running content can indeed be defined under Theme Options > PDF Options, but whether it appears in the running head (top) or running foot (bottom) depends on the theme in use.
As @RmbxCh mentioned, we’re using the McLuhan theme. However, we haven’t found a way to customize the placement or style of the running content in the McLuhan PDF styles. We’ve looked through the available settings, but they don’t seem to offer control over this aspect.
Does anyone know if there’s a way to override this via CSS or another method? We’d appreciate any suggestions or workarounds! And very sorry if we missed anything obvious here.
My apologies for misreading the question. The positioning of the running content is indeed defined by the theme and differs between themes. There is no setting to change the positions. Solving this via CSS is going into developer territory but I can guide you towards a potential solution.
You could experiment with code following this example by adding it to your Custom CSS for PDF panel:
@page :left {
@top-left {
content: string(book-title) !important;
}
@bottom-left {
content: none !important;
}
}
@page :right {
@top-right {
content: string(book-title) !important;
}
@bottom-center {
content: none !important;
}
}
You can find the content string information in our Github Repo in this file: pressbooks-book/packages/buckram/assets/styles/components/structure/_content-strings.scss at a8ba8b2f29551add190d6cb13194529bcc37506f · pressbooks/pressbooks-book · GitHub
It works, thank you very much !