GithubHelp home page GithubHelp logo

underscores.me's Introduction

I run the underscores.me website and I generate pretty cool WordPress themes.

underscores.me's People

Contributors

acusti avatar alaczek avatar bradp avatar davidakennedy avatar ismail-elkorchi avatar jacklenox avatar joshmcrty avatar kovshenin avatar laurelfulford avatar lchski avatar michaeldcain avatar obenland avatar rdswd avatar thomasguillot avatar tiagonoronha avatar truongwp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

underscores.me's Issues

Inconsistency

On underscores.me landing page, with code (inside html) I found that structure:

<div id="main"> 
        <div id="primary" class="site-content">...</div>
</div>

If I'll download generated theme zip - code are reciprocal:

<div id="content" class="site-content">
    <div id="primary" class="content-area">
        <main id="main" class="site-main" role="main">...</main>
    </div>
</div>

and don't have <section> selector.

I'll could create Pull request for this.

Textdomain slugs

For textdomains, spaces should be replaced by hyphens rather than underscores.

Just noticed it when generating Wu Wei. Did this change recently? :)

Readme.txt file of theme has been giving wrong date and version in the changelog.

I have created the new theme using this command wp scaffold _s test-theme --theme_name="Test Theme" --author="Me" after installing the theme I found wrong changelog detail in the readme.txt also found the wrong versioning as compared to stable tag on the file.

The changelog date should the same date when theme installed and they changelog tag should same as the stable tag.

Check the below screenshot.

screenshot-jun-26-18
.

Design for interface to allow adding in and building your own version of _s

This is taking the conversation over here Automattic/_s#659 to underscores.me and hopefully kicks off the things discussed. I thought I'd start the ball rolling with a speed mockup session. This is just a short rough idea but hopefully means we can have a starting point.

underscoresme_options

A few points:

  • There are 2 methods of display and I've done that because as things grow perhaps grouping should happen.
  • I didn't have the font so that needs to be added in to fit. I went with default Arial to ease.
  • I've kept the branding, simply adding a block if you want to customise.
  • Wording is just there for now, we can decide on that but it's to demonstrate.

PCLZIP_ERR_BAD_FORMAT from WP CLI or WGET

When using WP-CLI or wget to download a theme from underscores.me like this:
wp theme install http://underscores.me/?underscoresme_generate=1&underscoresme_name=SITENAME
or
wget -O kansasfpc.zip http://underscores.me/?underscoresme_generate=1&underscoresme_name=SITENAME

It doesn't work. I get the following error message:
Warning: The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

Any thoughts? I was hoping to really automate my jumping-off process, but this is a bit of a hurdle.

Underscores.me + AMP and Guteberg

This is more of a suggestion/idea instead of an issue report, so I hope this is the right place to put this.

Since Automattic is working hard on their AMP for WordPress plugin, and Gutenberg is going to be stock WordPress come 5.0, I think it would be great if Underscores had an "Add AMP Native Support" and an "Add Gutenberg Support" to the advanced options dropdown when creating a new Underscores package.

screen shot 2018-08-28 at 1 31 51 pm

The "Add AMP Native Support" option could generate an Underscores bundle with the appropriate add_theme_support( 'amp' ) code, as well as generate AMP HTML theme templates and support for an AMP compatible mobile navigation using the AMP Bind functionality instead of the JS version, etc.

The "Add Gutenberg Support" Will, of course, add the appropriate theme support for image sizes and maybe an example editor custom color pallet, along with a blank editor.css stylesheet enqueued and ready to go.

I think Underscores is one of the best starter themes out there since it is based off of WordPress Standards and maintained by Automattic. And since WordPress is wanting to champion Gutenberg and AMP for the future, having a simple starting point for people to start utilizing them would be a huge step forward. I think Underscores would be the best place to do that.

Best way to re-enable catalog images auto-scaling that comes with WooCommerce core?

So apparently when using Underscores with Woo boilerplate, WooCommerce use of (most likely) wp_get_attachment_image_src() WP function is disabled, this makes stuff pretty messy when dealing with product catalogues and it's image scaling cross devices.

I can re-enable the default WooCommerce stylesheet by removing the following line from woocommerce.php:

add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' );

However this is not a recommended practice, as already noted in the comments.

Upon reading https://docs.woocommerce.com/document/image-sizes-theme-developers/, at ### #section-4 there seems to be a filter workaround, more specifically I would need the filter 'single_product_archive_thumbnail_size', however this seems not to work and right below it, it says the following:

Note: The hooks listed above are used by WooCommerce core. If a theme has custom template files or uses it’s own functions to output images, these filters may not be in use.

So it is either me not getting something due to my limited knowledge or indeed there is no template in use/or other functions are used to output images when using the WooCommerce boiler plate with _s.

Image upload for screenshot.png

Would be great to add an image upload field to the Advanced Options section so that users have the option to include a screenshot image when creating a new theme.

Consider Semantic Versioning

Consider using semantic versioning for the versioning within the generated theme file (from plugins/underscoresme-generator/underscoresme-generator.php) instead of a regular 1.0.

Semantic versioning encourages theme authors to consider the implications of incrementing the version number, notably when usage changes or content would be display significantly differently/not at all upon upgrade.

For those that don't use semantic versioning, they could continue to just increment the primary number.

Problem width page templates - static pages displays content is from index.php

Hello everybody. I have a problem with the my theme, help me please!!! Two days I can not understand what's the matter. Familiar with underscores and WordPress well - created a lot of custom themes. But at the moment I'm stuck - I had a problem with the theme for the artist's site, which I started developing recently. I will try to clarify the essence:\

There are different types of pages in my template. The home page has a separate template, and several more pages will have their own templates. The problem is that all pages except FrontPage (home) displays content from index.php. It doesn't matter if I specify my own template for page, or default template - page always use the index.php template.

It seems that WordPress does not see the template for pages.
I tried to switch to standard WordPress themes (twentytwenty) - everything works as it should.

At first I thought maybe I made a mistake. I looked through all the files of the theme 10 times - I didn't find any errors.

The idea crept in that something was wrong with directly from underscores.

Then I generated a new theme at https://underscores.me/ - did not make any changes to the theme files, the result - the same error (pages are displayed with index.php). I installed the new WordPress and repeated the procedure again, to be sure. The result is the same, in the theme I created and a clean theme from underscores.me pages are displayed with index.php, and on native WordPress themes (like twentytwenty, twentynineteen) everything is fine - pages content displays from page.php.

I can't understand what the mistake is. Maybe I don't see something banal, I missed it? Maybe there is some incompatibility with the latest version of WordPress?

Here is some screenshots:
Static home page
Screenshot
Simple page:
Screenshot

Sorry for my English, i still learning

Background image is on home page but not my woocomerce side

I'm new to the forum. Long story short, I got ripped off by a webdesign company and now I'm trying to put my site together from what I have saved/backed up, I imported it to a godaddy wordpress hosting and I think I have it up and running but I seem to have some images missing in some pages but not in others (my home page). Certain pages (Home page) my background image shows but when I click a product and it takes me to a product page I do not have the background image like I use to. I'm not a webdesigner/builder but I manage to learn many things along the way. Can someone please help?

Text Domain

The Text Domain is using the theme name instead of the theme slug.

You can see this with e.g. Random Theme.

I get Text Domain: Random Theme instead of Text Domain: random-theme

UTF files

Firstly - I just wanted to say thanks for underscores, I love it! Secondly sorry if this doesn't make sense - it's right at the edge of my knowledge and I've been googling this for an hour and it still makes little sense.

If I edit page.php and paste in some text using an editor I get funny characters instead of apostrophes.

Wordpress is set to utf8 and I can confirm that that meta tag is in there. The response header is Content-Type text/html; charset=UTF-8.

The only thing not set to php is the actual php file itself. When I edit this it says it is saved as ANSI. Re-saving as utf8 fixes.

So if the file should be utf8 shouldn't the files I download from your generator be utf8? Or am I missing something.

Thanks again

Posted on shows the date in <?php underscore_posted_on(); ?>

Hi,
I always use Underscore for my wordpress development. I just want ask you that in your template-tags.php the function posted_on() is function stepup_posted_on() {
$time_string = '%2$s';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string .= '%4$s';
}

$time_string = sprintf( $time_string,
    esc_attr( get_the_date( 'c' ) ),
    esc_html( get_the_date() ),
    esc_attr( get_the_modified_date( 'c' ) ),
    esc_html( get_the_modified_date() )
);

$posted_on = sprintf(
    _x( 'Posted on %s', 'post date', 'stepup' ),
    '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
);

$byline = sprintf(
    _x( 'by %s', 'post author', 'stepup' ),
    '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
);

echo '<span class="posted-on">' . $posted_on . '</span><span class="byline"> ' . $byline . '</span>';

}
endif;
And in the fornt end it shows the Post date. I just want to add the_category(); instead of post date. I am trying hard to do that. But am unable, can you please guide me how would I do it?

Thanks in advance.

Sass and Grid system

Hey all!
Is there a reason the bootstrap grid is not part of the sass files? I was using the regular bootstrap then decided I wanted to use the sass for variables and poof! The grid was gone. Did I miss something?
Thanks in advance,
Christina

4 years no updates?

So, is this abandoned or i'm missing something? All files are 4 years old.
Thanks.

Lower the version number to 0.1.0

The first step everybody does is probably to lower the version of the downloaded theme to 0.1.0

I think this task could be done when you download a new theme from underscores.me, in the case you want to keep to version on the repository to 1.0.0. Otherwise, we could simply lower the version to 0.1.0.

What are your opinions?

Same things should by applied to components.underscores.me / theme-components repository.

Replace slugged handles correctly

Currently the script and style handles are being replaced with the theme name, not the theme slug ( Step 4 in the manual: "Search for _s- to capture prefixed handles.").

Something like this should fix it (untested):
$contents = str_replace( "_s-", $this->theme['slug']. '-', $contents );

How to Customize The Blog Index Page

Hello,

I am a web developer, and I am starting to use Wordpress for my clients. I am loving this starter theme, but I am trying to figure out how to customize the Blog Post Index, since I edit home.php, I also edit the index.php as well. I just want to customize the blog index page. Any help, would be appreciated.

_sassify! option on website not working

Hi All,

The _sassify! checkbox on the site's advanced options for generating your theme doesn't appear to be working for me. When I select the option the generated .zip still only contains .css files and no SASS.

I have tested on chrome & firefox and always just get the plain .css version of underscores not the lovely sassified version :(

Primary Menu button leaves menu stuck in toggled state on window resize

When you are looking at the main menu in a narrow browser window such that the "Primary Menu" button is visible, then click on the menu to toggle the hidden list below. Then, if you resize the browser window with the menu open, the css causes the button not to display, so the user can't click to close the open menu. Screenshots on a recent project based on underscores attached.
primary menu button triggered
open menu hanging with no button for user to close

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.