• Resolved Saleee

    (@saleee)


    Hello!

    I’m using a right sidebar on my webpage with menu widget on. Title on homepage is at right side of sidebar and on every other page sidebar is moved bellow title. I would like to have my page titles just as on homepage, at right side of sidebar and not sidebar moving below title! Is that possible?

    Thanx in advance!

    http://saleee.eur.hr/helena/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Not with how the layout is built currently. The home page was originally designed without the sidebar because of how the home layout manager works.

    Since with the home layout manager you can put the page title at the bottom of the page it doesn’t work to force the sidebar to start below it.

    So to get what you want you will have to edit the front-page.php file. You will want to do this in a child theme.

    add this to line 40 of the file:

    <div id="homeheader" class="welcomeclass">
    <?php get_template_part('templates/page', 'header'); ?>
    </div><!--titleclass-->

    and in the theme options > home layout move the “page title” to disabled. (this will keep it from showing twice.

    Kadence Themes

    Thread Starter Saleee

    (@saleee)

    Thank you for your reply! I very appreciate it.

    I was manage to do what you wrote to me, but I wanted to do something else. I want that every other page looks like homepage. I want sidebar to be all the way up, bellow haeader and title to be at right side of sidebar. And now I have on homepage and every other page title in full width below header and sidebar is below title. I don’t know if you understand what I’m trying to say because my english is not so very strong.

    Then you need to edit all the page templates.

    delete this:

    <div id="pageheader" class="titleclass">
    <div class="container">
    <?php get_template_part('templates/page', 'header'); ?>
    </div><!--container-->
    </div><!--titleclass-->

    and add this below the div with the class “main”

    <div id="pageheader" class="titleclass">
    <?php get_template_part('templates/page', 'header'); ?>
    </div><!--titleclass-->

    Kadence Themes

    Thread Starter Saleee

    (@saleee)

    Thank you very much on help! I will try this for sure. You are the man!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sidebar and title’ is closed to new replies.