adm_sub
February 12, 2018, 12:48pm
1
Hi,
we are preparing our relaunch with ojs3 and really like the appearance of bootstrap 3. But for me as someone with little knowledge of all this code and css stuff, I wonder if there is some overview or introduction in where to change what?
Or more precise: I want to change the relation between the body and the sidebar (the sidebar looks a bit is to wide and I want to make it smaller) but can’t find the right spot in the templates, less…
Sorry for this naïve questions
NateWr
February 13, 2018, 11:34am
2
Hi @adm_sub ,
You’ll find general information about theming in the PKP Theming Guide .
To change the column sizes in the Bootstrap theme, you’ll want to look at the templates/frontend/components/header.tpl
:
And the templates/frontend/components/footer.tpl
:
* represents a page-level override, and doesn't indicate whether or not
* sidebars have been configured for thesite.
*}
</main>
{* Sidebars *}
{if empty($isFullWidth)}
{capture assign="sidebarCode"}{call_hook name="Templates::Common::Sidebar"}{/capture}
{if $sidebarCode}
<aside id="sidebar" class="pkp_structure_sidebar left col-xs-12 col-sm-2 col-md-4" role="complementary" aria-label="{translate|escape key="common.navigation.sidebar"}">
{$sidebarCode}
</aside><!-- pkp_sidebar.left -->
{/if}
{/if}
</div><!-- pkp_structure_content -->
<footer class="footer" role="contentinfo">
<div class="container">
adm_sub
February 13, 2018, 2:38pm
3
Hi Nate
Thanks! This helps a lot.
Boris
Spaik
November 8, 2019, 11:28am
4
Hello NateWr!
And where is pkp_structure_content defined?
(OJS 3, bootstrap3 child theme).
NateWr
November 11, 2019, 11:36am
5
Hi @Spaik ,
Can you open a new forum post and explain your question in more detail? Feel free to tag me (@NateWr ) to make sure I see it.