Editing the sidebar

Hey guys had a question I want to know where the template is to edit the look of the sidebar.

Hi @FlaminSeraphim,

Which of our applications are you asking about, and what version?

Regards,
Alec Smecher
Public Knowledge Project Team

my apologies @asmecher ojs and version 2.4

Hi @FlaminSeraphim,

The sidebar is included in lib/pkp/templates/common/header.tpl:

{call_hook|assign:"leftSidebarCode" name="Templates::Common::LeftSidebar"}
{call_hook|assign:"rightSidebarCode" name="Templates::Common::RightSidebar"}
{if $leftSidebarCode || $rightSidebarCode}<link rel="stylesheet" href="{$baseUrl}/styles/sidebar.css" type="text/css" />{/if}
{if $leftSidebarCode}<link rel="stylesheet" href="{$baseUrl}/styles/leftSidebar.css" type="text/css" />{/if}
{if $rightSidebarCode}<link rel="stylesheet" href="{$baseUrl}/styles/rightSidebar.css" type="text/css" />{/if}
{if $leftSidebarCode && $rightSidebarCode}<link rel="stylesheet" href="{$baseUrl}/styles/bothSidebars.css" type="text/css" />{/if}

…then later…

{if $leftSidebarCode || $rightSidebarCode}
    <div id="sidebar">
            {if $leftSidebarCode}
                    <div id="leftSidebar">
                            {$leftSidebarCode}
                    </div>
            {/if}
            {if $rightSidebarCode}
                    <div id="rightSidebar">
                            {$rightSidebarCode}
                    </div>
            {/if}
    </div>
{/if}

The sidebar markup itself comes from the block plugins, which are implemented in each of the plugins/blocks subdirectories. Look for a block.tpl in each of these.

Regards,
Alec Smecher
Public Knowledge Project Team

@asmecher Thank you that’s what I needed.