Giter Site home page Giter Site logo

styleguide's Introduction

styleguide's People

Contributors

binarymoon avatar lelandf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

styleguide's Issues

Add theme support and more font styles

I tried forking this and adding a pull request, but since I'm pretty new to using GitHub, it became a bit overwhelming. So until I learn the ropes a bit better, I'll post my feature requests here. These are actually things I managed to implement, but not sure I used the best way:

  1. I would like to be able to define my own HTML elements that can be customized, but since the plugin either loads theme styles for supported theme or the default, I ended up doing something similar to what @zulfnore did. And it worked as I wanted, but I saw you mentioned it's not necessary to do that, as you can add support from the theme.

I just couldn't change the fonts and css attributes. Can you maybe post an example of how I could add support for changing the .site-title class from my theme? This might be a silly question, but what are the <<< for? I get a syntax error when I use indentation.

  1. It would be great to add a styles attribute to the fonts and then use this code on line 300:
$styles = '400,700';
if ( isset( $available_fonts[ $_font ]['styles'] ) ) $styles = $available_fonts[ $_font ]['styles'];
$fonts[ $_font ] = $_font . ':' . $styles;

I like the plugin a lot and I would love to be able to add additional support in my themes and that way replace my own customization section.

Keep up the great work!
Adrian

Warning at first run

Wen I first run this plugin, I encountered a Warning:

Warning: array_key_exists(): The first argument should be either a string or an integer in /Users/Jean/Sites/wordpress/wp-content/plugins/styleguide/includes/helpers.php on line 70

I am not sure this plugin is compatible with the latest version of twentyfifteen.

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.