Jump to content
Sign in to follow this  
miked

Optionator fonts selector like the one on Typography

Recommended Posts

miked

I am building a custom section and want to know how to add a font selector to the optinator like the one found on the Typography page that includes a preview, edit font style and advanced options? Thanks Mike

Share this post


Link to post
Share on other sites
catrina
Are you referring to a CSS selector? Like, how to identify the CSS selector you need to change a certain text element on your site?

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
miked
I'm building a custom section and I added a font selector, type = "fonts", however with fonts you only get a dropdown list of fonts, no preview, no other options. I did locate another type called "typography" which has the preview, edit font styling and advanced, unfortunately I can't get it to save. When you click save it goes back to "Select Font". The docs here http://www.pagelines.com/wiki/PageLines_APIs don't seem to list the different settings for each option type so I am having to scan through other plugin code and pagelines code.

Share this post


Link to post
Share on other sites
Rob
I'm told you should look in config.options.php to see how we do the list. I would not suggest editing things in that file as they will be overwritten with upgrades. However, it will give you an idea of how we handled it.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
miked
I've been using the Pagelines code base for reference only, will not hack it. The issue is when you add type => 'typography' in the optionator code, you cant save the changes in the UI, after inspecting the form element id, it appears 'typography' may not be compatible with the optinator, maybe it only works with Pagelines settings.

Share this post


Link to post
Share on other sites
Rob
Mike, honestly, I have never used Typography and never heard of optinator so I'm in the dark completely on this one. Because it's a customization that goes beyond the skills my colleagues in the forum and I possess, I'd suggest writing to hello@pagelines.com and asking for a pro to help you with this one. I'm sure one of them would have more insight into this and deeper knowledge of the working code. Apologies for the inconvenience but I'm not a developer, as they are.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×