Support » Theme: OceanWP » How to let CPT take over the layout of a regular post?

  • Resolved yuko999

    (@yuko999)


    Hello.
    I am a beginner in WP, so I’sorry if there is something wrong/not clear with my question.

    I’m using OceanWP.
    I created CPT called articles.

    I created CPT, but I want it to have the same layout as a regular post.
    Is it possible to let CPT take over the layout of a regular post?
    (I want to use the same setting of typography, content width, or meta information display, etc.)

    Thank you for your cooperation.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    Yes, you can use the same layout, also can add the meta box settings, and customize the CPTs according to need, But needs some modifications and custom codes.

    Following the doc may help you with it.
    https://docs.oceanwp.org/search?query=custom+post+type

    https://docs.oceanwp.org/article/203-altering-layouts

    https://docs.oceanwp.org/article/368-add-the-oceanwp-settings-metabox-in-your-custom-post-type

    Thread Starter yuko999

    (@yuko999)

    Thank you for your prompt response!

    The altering Layouts worked. (No Sidebar, Left or Right Sidebar)
    (The sidebar has disappeared, and the full width can be specified.)

    However, I couldn’t find much other useful information.
    For example, I didn’t know how to specify the font type (font family) of the h2 title, or the width of the content itself (I set the maximum width of the content to about 70% of the total width.

    Is there a way to reflect the settings for regular posts in custom posts?
    Is there any way other than specifying the style in css for custom posts?

    Thank you.

    Abhishek

    (@abhikr781)

    Hello,

    Unfortunately, There is no typography settings option in the page level settings.
    But you can set the typography globally via Appearance > customize > typography settings.

    Kindly share the page URL where exactly you want to change the typography settings, so I will inspect and try to help you with the code.

    Thread Starter yuko999

    (@yuko999)

    Hello.
    Thank you so much again.

    I understand your reply.
    I’ll try that way(via Appearance > customize > typography settings) for now,
    and try to specify and set the element in the stylec.css file.

    Thank you for your kind reply.

    You are welcome.

    Sorry but not getting you exacty.

    Is your issue resolved?

    Thread Starter yuko999

    (@yuko999)

    hello.
    I’m trying to proceed as it is.
    It has not been completely resolved yet, but it is okay to close this case.
    Thank you so much.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to let CPT take over the layout of a regular post?’ is closed to new replies.