Community Forums › Forums › Archived Forums › Design Tips and Tricks › Force Genesis Layout Settings strange but welcome behavior
- This topic has 6 replies, 2 voices, and was last updated 5 years ago by ACEkin.
-
AuthorPosts
-
March 30, 2019 at 7:57 pm #490373ACEkinParticipant
I was looking for a way to have the option of changing the Layout Settings for some blog posts and I found the code snippet in the link. I copied and pasted the code snippet, making sure I did not copy the opening tag and pasted it to the end of the functions.php file. This resulted in a very undesirable effect of converting every post and page to the full-width layout. Dissatisfied with the result, I removed the code snippet from the functions.php file and everything returned to normal, narrow layout as default. But, the surprise result was that the "Layout Settings" panel at the bottom of the post edit window appeared and remained there!
I am writing this post mainly to report my experience and I am not looking a gift horse in the mouth. My only speculative guess is that the presence of the code snippet may write some settings to the database and it remains even after it is removed. For whatever it is worth. My site is at:
Cemal
https://my.studiopress.com/documentation/snippets/admin-management/force-the-genesis-layout-settings/March 31, 2019 at 4:24 am #490375Victor FontModeratorYou don't have to use code to change the layout setting for specific posts or pages. There is a setting to change layouts in the editing page for every post/page.
If you are using the classic editor, click the screen options button on the upper right of the screen and make sure "Layout Settings" is checked. Then, scroll down until you see the Layout Settings meta box and click the setting you want for that post or page.
If you are using Gutenberg, click the 3-vertical-dot icon on the upper right, then select options, and make sure the "Layout Settings" checkbox is checked. Then, same as previous instruction.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?March 31, 2019 at 6:47 am #490380ACEkinParticipantThanks. That was the first place I looked, Victor. Multiple times. The checkbox and Layout Options were not there. It may be a theme dependent feature, I don't know. But I looked those Screen Options multiple times. Until I added, then removed the snippet it was not there. And, I don't know why that is removed from the options anyway.
Cemal
March 31, 2019 at 3:03 pm #490396Victor FontModeratorThe Genesis Framework provides 6 layout options. Studio Pro removes 3 of them:
genesis_unregister_layout( 'content-sidebar-sidebar' ); genesis_unregister_layout( 'sidebar-content-sidebar' ); genesis_unregister_layout( 'sidebar-sidebar-content' );
The layout meta box should be available to you because the options are not removed. You have a plugin conflict or something else going on that's preventing the layouts from showing. This isn't anything I can help you with from the front end.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?March 31, 2019 at 3:11 pm #490397ACEkinParticipantHmmm! That is interesting and troubling. I have never had the layout options when I was editing posts and often wondered why. But, since I was using a content-sidebar layout that did not matter much and I left it alone. Now that I am using a narrow width layout I found some of my posts for some reason were showing up with a sidebar and tried to display the layout settings, but nowhere to be found. I thought the code snippet would help but that made everything full width. Upon removing it, I realized the layout settings were there and mistakenly thought it was the result of the snippet add-subtract.
I don't quite know what is going on. Everything else seems to be going OK. If you like to look at the back end out of curiosity I will be glad to give you admin access via an e-mail. If you are so inclined, please send me an e-mail at [email protected] and I will reply to that with admin credentials.
Thank you again,
Cemal
April 2, 2019 at 9:51 am #490432Victor FontModeratorI'm sorry Cemal, but I don't access the admin area of any site to troubleshoot issues without a paid engagement. Everyone answering questions on this site is a community volunteer without any affiliation with Studio Press. We do this because we like helping people.
I don't mind answering questions as a volunteer and I answer a lot of them, but when it comes to troubleshooting someone's site, it directly impacts my billable hours. Someone here may volunteer to help you for free, but I can't do that.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?April 2, 2019 at 8:01 pm #490442ACEkinParticipantOf course, I understand, Victor. I thought you were curious. Today, I installed WordPress on my development domain and using the default WordPress theme there was no Layout Settings option to be activated in the Screen Options panel. Then, I installed StudioPress Parallax Pro theme and the setting appeared. It seems to be theme dependent and some, for an unknown reason, seem to disable that. In any case, I am all set for the time being. I appreciate all the help and advice I get here, thank you all.
Cemal
-
AuthorPosts
- The topic ‘Force Genesis Layout Settings strange but welcome behavior’ is closed to new replies.