Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1698868
How do I edit the default page template?
Closed

Comments

  • balexr started the conversation

    I'm having difficulty setting a default page template. I'd like my have my default page template define that every page by default have a sidebar on the right side of the page and I also would like the page title to have the same color/image in the background of the title. I know how to set the sidebar for each page individually, but when I have about 1,000 published pages, I imagine there must be a simple way to simply edit the default page template so every page has a right sidebar and the page title background I choose.


    Thanks!

  • balexr replied

    I was able to figure out how to set the default for new pages, but not how to edit the page default for already published pages.

  •  7,095
    Oliver replied

    Hi,

    In oeder to add default sidebar to all the pages In the

    /wp-content/themes/thegem/content-page.php 

     after line  27 add next code.

       $thegem_page_data['sidebar']['sidebar_position'] = 'right'; 

     it's template, just copy it to the child theme.

    Set background image you can with this css:

    div#page-title {
        background-image: url(http://lifey.org/wp-content/themes/thegem/images/backgrounds/title/x09.jpg.pagespeed.ic.Bp-ayUtWuF.webp) !important;
    }
    

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • balexr replied

    Thank you so much!!

  •  7,095
    Oliver replied

    Welcome!

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver