Forum Replies Created
-
AuthorReplies
-
srumery
ParticipantI am simply pasting the html into the content body of a page in the page editor. I also added it to a text widget and got the same result. I can make a screencast to show you. Can I send a private link?
srumery
ParticipantPerfect. Thank you!
February 25, 2013 at 3:43 pm in reply to: Creating a new custom layout programmatically, possible with Layout Builder API? #5854srumery
ParticipantThis is another great reference piece. I decided to create a custom front page and skip the builder for the one page theme I am building. Now I have a great understanding of how the sample layouts work because I actually build one while creating my prototype. While I’m not actually using it, the process did help be decide on my development path and the outcome is better than I expected.
Thanks again!
srumery
ParticipantUPDATE: it worked. Thank you for the detailed direction.
February 24, 2013 at 4:29 am in reply to: Creating a new custom layout programmatically, possible with Layout Builder API? #5803srumery
ParticipantUPDATE: I used the
themeblvd_add_sample_layout()
function to create a sample layout which puts me really close to what I need. Is there an API call I can make to create a new layout using that sample layout?Then, I will need to use the theme options API to set the “Homepage Content” field to “Custom Layout” and use the new layout ID created using the
themeblvd_add_sample_layout()
function.If that all works out, it’s a huge time saver when I create a new instance of the child theme.
February 22, 2013 at 8:04 pm in reply to: [Theme Options API] How to use the "background" options type #5738srumery
ParticipantSounds good, Jason. Thank you for the update.
srumery
ParticipantWell said Dan. Great work on the framework Jason!
February 13, 2013 at 4:25 pm in reply to: [Theme Options API] How to use the "typography" options type #4031srumery
ParticipantThis is extremely useful! Thank you for building a brilliant framework!
Cheers!
srumery
ParticipantThat hook worked perfectly. Thank you johnnya23 and Jason.
February 12, 2013 at 2:50 pm in reply to: Incorporate Media Uploader into Custom Theme Options #3982srumery
ParticipantExcellent! I not only used the “upload” control… I used “images” for a radio box selection. It’s the same one you are using for the sidebar selector in the framework theme options layout tab. Brilliant!
Now, I’ll try out checkbox, multicheck, typography and background. There are a few more as well. This just keeps getting better, and better!
Thank you Jason!!!
February 11, 2013 at 10:32 pm in reply to: Incorporate Media Uploader into Custom Theme Options #3951srumery
ParticipantThat’s great to know. I was looking for something like that. After seeing this I looked in the documentation and didn’t see a list of available data types. Can you point me in the right direction?
srumery
ParticipantThank you Jason and iphoenix.
I ran
print_r($_GET)
to see that was stored there and the result was:
Array ( [page] => CHILD_THEME_NAME [settings-updated] => true )
Based on that I am using the following code to check when the file should be executed:
if ( is_admin() && $_GET['page'] == 'CHILD_THEME_NAME' && $_GET['settings-updated'] == true )
iphoenix, I tried to hook into the theme options update with your suggestion but it wasn’t firing.
add_action( 'themeblvd_update_options', 'FUNCTION_NAME' );
Where did you find the name of the hook? Is there is list of all the Jump Start framework hooks?
srumery
ParticipantOne more question on this topic… It’s important to make sure this only fires off when the theme options are saved. Checking is_admin() isn’t enough. What is the proper hook to make sure the css file saving function is only executed when the theme options page is saved?
srumery
ParticipantThis method works as described. I have seen it before and I was able to get it to work as well. I am running a few more tests and would like to get this working in a multisite environment.
Jason, how would you accomplish this? First identify the $blog_id, then store the .css file in their unique content folder? If that is the case, it would be something like this “/wp-content/uploads/sites/5/custom-styles.css”. This will expose the blog id but so does storing images in the media library. Do you see anything wrong with this? How would you do it?
srumery
ParticipantI will network enable the plugins. I have tested this further and for what I am building, that is the best fit. Thank you.
-
AuthorReplies