Git Product home page Git Product logo

Comments (8)

fjarrett avatar fjarrett commented on July 18, 2024

@jonathanbardo Looks like there is already a little explanation in the UI for this. Are you thinking of maybe making the message more prominent if you don't have a three-column layout selected?

screen shot 2016-07-28 at 4 06 42 pm

screen shot 2016-07-28 at 4 06 29 pm

from primer.

jonathanbardo avatar jonathanbardo commented on July 18, 2024

@fjarrett Actually I don't we didn't have a message. This is fine with me we can close this.

from primer.

samonja avatar samonja commented on July 18, 2024

How do I change the default post/page layout to full width. Thanks

from primer.

fjarrett avatar fjarrett commented on July 18, 2024

Hi @samonja - You can use the primer_default_layout filter defined here, and just return the key of any available layout listed here.

add_filter( 'primer_default_layout', function () {

	return 'one-column-wide';

} );

from primer.

samonja avatar samonja commented on July 18, 2024

from primer.

fjarrett avatar fjarrett commented on July 18, 2024

Hey @samonja - you never want to modify theme files directly, they will be wiped out each time the theme receives an update. Filters should be added to your own child theme or a must-use plugin.

If filters are new to you, this is a good article to learn about how they work.

Thanks for using Primer!

from primer.

samonja avatar samonja commented on July 18, 2024

from primer.

fjarrett avatar fjarrett commented on July 18, 2024

@samonja In your example it appears you are editing the theme directly, and that's part of the reason why it's not working :-)

The add_filter must always be called before it's defined with apply_filters, hence the reason for it to be done in a child theme or must-use plugin because they are loaded before parent themes.

Not sure what you mean about the header file.

from primer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.