Git Product home page Git Product logo

astra's Introduction

Astra

Contributors: brainstormforce
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-menu, custom-logo, entertainment, featured-images, full-width-template, one-column, two-columns, left-sidebar, e-commerce, right-sidebar, custom-colors, editor-style, featured-images, full-width-template, microformats, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready, blog
Tested up to: 6.4
Requires PHP: 5.3
Stable tag: 4.6.3

Astra is fast, fully customizable & beautiful WordPress theme suitable for blog, personal portfolio, business website and WooCommerce storefront.

Description

Astra is fast, fully customizable & beautiful WordPress theme suitable for blog, personal portfolio, business website and WooCommerce storefront. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with Schema.org code integrated and is Native AMP ready so search engines will love your site.

It offers special features and templates so it works perfectly with all page builders like Elementor, Beaver Builder, Visual Composer, SiteOrigin, Divi, etc. Some of the other features: # WooCommerce Ready # Responsive # RTL & Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force.

Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and WooCommerce ready theme that you can use for building any kind of website!

Installation

From within WordPress

  1. Visit "Appearance > Themes > Add New"
  2. Search for "Astra"
  3. Install and activate

License

Astra WordPress Theme, Copyright 2020 WPAstra. Astra is distributed under the terms of the GNU GPL.

Astra is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc. Underscores is distributed under the terms of the GNU GPL v2 or later.

Features

Appearance > Widgets

Astra has up to 4 widget area. 1 in your header, 1 for each sidebar and up to 2 in your footer.

Appearance > Customize

- Site Identity: Hide your site title or tagline, and upload your own header.
- Layout: Change things like your container width, header layout, Header width, Custom menu item , sidebar layout and much more.
- Set footer layout there is a two footer layout layout 1 and layout 2. layout 1 is stack style and layout 2 is inline.
- Blog: Show the full post or excerpt, also show and hide blog post meta & adjust blog post width to default or custom.
- Single post:Set single post meta and adjust width to custom or default.
- Colors & background: Choose your default background color, body color, theme color and link color.
- Typography: Choose your default body font & set default font size to H1 to H6 tags, Site title, tagline & blog post title on archive page and single page.

ASTRA Child Theme

There are multiple ways you can use a child theme with the Astra Theme, Use any one method mentoned below to create a child theme or use a child theme we have created.

  1. Download the child theme from Github - https://github.com/brainstormforce/astra-child/releases/latest/
  2. More information on creating child theme. - https://developer.wordpress.org/themes/advanced-topics/child-themes/

Screenshot & WP-Preview Starter Content Licenses

Screenshot image is a collage of actual sites created using the Astra WordPress Theme.

Icons used are all licensed under Massachusetts Institute of Technology ( MIT ) License ( https://heroicons.com )

Illustrations used are all licensed under Creative Commons ( CC0 ) License ( https://gumroad.com/l/humaaans ) https://websitedemos.net/web-design-agency-08/wp-content/uploads/sites/796/2021/05/standing-24.png https://websitedemos.net/web-design-agency-08/wp-content/uploads/sites/796/2021/05/sitting-2.png

Hand-drawn illustrations used are created by Brainstorm Force and released under Creative Commons ( CC0 ) License. https://websitedemos.net/web-design-agency-08/wp-content/uploads/sites/796/2021/05/girl-with-image-container.png https://websitedemos.net/web-design-agency-08/wp-content/uploads/sites/796/2021/05/boy-with-code-container.png https://websitedemos.net/web-design-agency-08/wp-content/uploads/sites/796/2021/05/web-browser.png

Images used in the WordPress preview starter content are all licensed under Creative Commons ( CC0 ) License ( https://pxhere.com )

The same site as screenshot can be imported from here https://websitedemos.net/web-design-agency-08/.

For more information, refer to this document on how to create a page like in the screenshot - https://wpastra.com/docs/replicating-the-screenshot/.

Normalizing styles

Normalizing styles have been helped along thanks to the fine work of. Nicolas Gallagher and Jonathan Neal https://necolas.github.com/normalize.css/

Flexibility JS

Flexibility is a JavaScript polyfill for Flexbox By Jonathan Neal, 10up. (https://github.com/jonathantneal/flexibility) Licensed under MIT ( https://github.com/jonathantneal/flexibility/blob/master/LICENSE.md )

IcoMoon-Free

Astra icon font is based on IcoMoon-Free vector icon by Keyamoon. IcoMoon-Free vector icon destributed under trems of CC BY 4.0 or GPL. (https://creativecommons.org/licenses/by/4.0/ or https://www.gnu.org/licenses/gpl.html) Source: http://keyamoon.com/

Breadcrumb Trail

Astra default breadcrumb is based on Breadcrumb Trail by Justin Tadlock. (https://github.com/justintadlock/breadcrumb-trail) Breadcrumb Trail is distributed under the terms of the GNU GPL v2 or later.

Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc., GPLv2 or later

Webfonts Loader

Astra local fonts feature is based on Webfonts Loader by WordPress Themes Team (WPTT). (https://github.com/WPTT/webfont-loader) Licensed under MIT ( https://github.com/WPTT/webfont-loader/blob/master/LICENSE )

astra's People

Contributors

abhishek-bsf avatar amithire1201 avatar bsfprajaktap avatar bsfsnehal avatar dependabot[bot] avatar dineshchouhan avatar er-roshan avatar gauravkhupse avatar imnavanath avatar maheshwaghmare avatar nathanrodrigues2111 avatar neerajmasai avatar nikschavan avatar nileshc-bsf avatar patilvikasj avatar premanshup avatar premanshupandey avatar rajkiranbagal avatar rohitp-bsf avatar rushijagani avatar sagarb90 avatar sandeshjangam avatar shubhw12 avatar simranchougule1 avatar sudhanshu-1508 avatar sushmak02 avatar swapnildhanrale avatar uttamsharma007 avatar vrundakansara avatar yssambare12 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

astra's Issues

Use Astra LifterLMS syllabus style with shortcode?

LifterLMS has a shortcode system, https://lifterlms.com/docs/shortcodes/

I am not fond of the default lesson layout and was thinking of adding the lifterlms syllabus shortcode via Astra custom layouts to put the Astra styled syllabus layout at the bottom of every lesson.

Needless to say it didn't work out so great, lol.

The lifterlms shortcode for the syllabus, when rendered doesn't show the Astra design. Is there a way to get that the lifterlms shortcode to show the Astra styled one?

[Feature suggestion] Improved Search Bar + Full screen search option

Problem: When using search, you can still see the menu items below it. This might be due to some setting I have not yet discovered, but by default, this does not look good.

Suggestion: Add the ability to style the search bar and maybe even add the option to have a full-screen search.

[Feature suggestion - Nice to have] Dim content on menu hover

Ability to activate an option to dim the content when you hover over a menu item (like a lightbox).

  • Reason: Visitor will have increased focus / better for conversion.
  • Urgency: None, it's just a so-called "nice-to-have", not a "must-have".

Snippet CSS used:

/* Dim content on menu hover */
#masthead:hover ~ #content {
opacity: 0.1;
transition: all 0.5s linear 0.1s;
}
#content {
transition: all 0.5s linear 0.1s;
}

If this idea is too silly, feel free to close or delete the entry.

Elementor error with the 404 page

so i use the Header Footer Elementor plugin to design the header and footer in my theme but when i go to the 404 page i find this error and it shows only on the 404 page the other pages look fine
1

2

3

NB im using the latest version of elementor and header Footer Elementor

Pro: Wrong Headings inherit when Typography addon is active

Hi! I've found a bug with inherit headings when Typography addon is active. The inherit making from "Body & Content" but not from "Headings" in customizer. Because of this problem, I've to choose headings font on each area and this is not convenient.
When Typography addon isn't active the inherit working good.

Fix it please!

Archive pages generates pagespeed penalties.

#When creating blog archive pages the image being pulled for the post image is a full size image resulting in high pagespeed penalties. (See astra/inc/extras.php > function astra_get_post_thumbnail)

  • see pull request #697

Can you add an option in customiser under Layout > Blog > Blog / Archive where the default image size (full, large, medium, thumbnail)for the post thumbnail can be selected via dropdown.

[Feature suggestion] Styling options for the "Off Canvas Sidebar”

Currently, it seems only using CSS enables you to change its styling. It would be great if you can enable the "Off Canvas Sidebar" in modules for these customizer options:

  • Styling: To set with, left/right, etc..
    (or add only width to the current location: Customizing ▸ Layout ▸ Shop)
  • Typography
  • Colors & Backgrounds

Hope this helps, cheers.

Bug with "height: 100%" in version 1.4.1

Hi!

The problem with CSS property height appears in version 1.4.1

Description

With Astra 1.41. activated, height of HTML elements inside Elementor widgets with "height: 100%" CSS property calculated incorrectly.

How to reproduce

Add for example default Carousel widget into page. Height of carousel item fits to window height - http://prntscr.com/kacv4r. If unhook this function - https://github.com/brainstormforce/astra/blob/master/inc/compatibility/class-astra-elementor.php#L112-L133 - problem disappears.

Hiding Overflow on Site Content is not needed and has unpredictable consequences

.site {
overflow: hidden;
}

As per https://css-tricks.com/almanac/properties/o/overflow/#article-header-id-2 (strong emphasis added by me)

This is particularly useful in use with dynamic content and the possibility of an overflow causing serious layout problems. However, bear in mind that content that is hidden in this way is utterly inaccessible (short of viewing the source). So for example a user has their default font size set larger than you would expect, you may be pushing text outside of a box and hiding it completely from their view.

This can have unpredictable consequences, for example: gocodebox/lifterlms#519

WP Astra homepage with .site's overflow set to hidden:
WP Astra homepage with .site's overflow set to hidden

Unset overflow: hidden;:
Unset overflow: hidden;

Unsetting this has no consequence on the layout:
Unsetting this has no consequence on the layout

I have tested this with a couple other sites as well. Can send in a PR, if needed.

Can't prevent Astra links from being hovered

I've added either of the following in my main CSS file (via customize > customize-css):

a:hover, a focus {color: none !important}
a:hover, a focus {color: unset !important}

Either doesn't prevent the native Astra Gray hover color for links.

I don't want to have this Gray color for hovered/focused links --- I want the links to have their native color they have even when I hover on them.

I could solve this by doing something like:

.menu a:hover, .menu a:focus {color: SAME_AS_ORIGINAL}

But this results in extra code I could avoid.

I believe there is some JavaScript clash here; please help --- if it's out of the scope, I'll ask someplace else, but I get the feeling it's quite unique to Astra JS as I don't recall such problem when generally working with CSS.

Pro: Advanced Headers Transparent Header mobile dropdown

Hello! When we use Advanced Headers and Transparent Header the mobile dropdown is also transparent and it's ugly. Desktop dropdowns are also unmanageble. Add this option and you'll "kill two birds with one stone" — Desktop Dropdown = Mobile dropdown.

Thanks!

Tags

  • The theme does not show tags for posts anywhere
  • Is it only available for pro version?

Customizer font-size setting doesn't work properly on tablet and mobile

To reproduce the issue, you need to set different font-size for desktop, tablet and mobile, on the Astra customizer (Appearance>Customize>Typography>Base Typography).

What happens is that desktop font-size works fine, but tablet and mobile font-size are rendered smaller than what you set.

01
02
03
04
05
06

Some Google fonts are not loaded properly

When you select "Slabo27px" and "Exo 2" fonts on customizer, it does not load or render the fonts. May be happening with other fonts as well, though I was just able to check these two.

[Feature suggestion] Search customizer settings

I’ve seen a theme that had three tabs in the top of the customizer settings (like Elementor) “Content”, “Style” and “Advanced”. Awesome idea.

But having search in the top of customizer settings could also really speed up the developing process.

I’ve never seen this being done though and suspect there is a good reason for it. I thought I’d mention this one anyway.

Cheers!

[Feature suggestion] Woo Category Descriptions on shop homepage

Currently you can see category description on the category archive page, but not on the shop homepage.

Example on fake test shop

Shop home: https://www.minddump.nl/shop/ Nothing is displayed under “Op afstand” and “Persoonlijk”.
FYI: Also the shadow-styled boxes of the products are not applied to the categories.

Shop category archive page: https://www.minddump.nl/cat/persoonlijk/
Category description is present: “Persoonlijker dan dit wordt het niet.”

Astra Sites Not Working

I couldn't find a repository for the Astra Sites plugin, so I'm opening this issue here. Right now, you have a JS error in admin.js which is rendering the plugin unusable.

On line 623 and line 646 you're missing references to event which is subsequently called within those functions. I haven't tested other browsers, but in Firefox this completely breaks the admin interface for browsing sites.

Adding a reference to the event fixes the issue. I would send a PR if I could. 🤔

Typo in 404 page.

In this file on line 34 there's a typo. Should be like this:

'string-404-sub-title' => __( 'It looks like the link pointing here was faulty. Maybe try searching?', 'astra' ),

More Tag issue

  • When using more tag, there should be should be a “continue reading” button/link of some sort after the tag on blog pages, but its missing
  • Check this screenshot
    screen

Use trailingshashit

  • In lines 16 and 17 of functions.php, use trailingshashit function to add trailing shash
  • E.g:
    define( 'ASTRA_THEME_DIR', trailingslashit( esc_url ( get_template_directory() ) ) );
    define( 'ASTRA_THEME_URI', trailingslashit( esc_url ( get_template_directory_uri() ) ) );

Make whitelable Theme Image URL Relative

It would be nice to make the theme white label URL relative or add the default site URL to the custom meta box so that it automatically gets added to the image path.

Registering and Enqueuing scripts

  • When registering and enqueuing scripts in inc\compatibility\class-astra-contact-form-7.php line 65, you don't need to call wp_register_script() and wp_enqueue_script(). Just call wp_enqueue_script().
    This:
    wp_register_style( 'astra-contact-form-7', $css_file, array(), ASTRA_THEME_VERSION, 'all' );
    wp_enqueue_style( 'astra-contact-form-7' );

Should simply be:

    wp_enqueue_style( 'astra-contact-form-7', $css_file, array(), ASTRA_THEME_VERSION, 'all' );
  • Only register if you don't know if you're going to load it immediately
  • Also check following
    • inc\compatibility\class-astra-gravity-forms.php line 65
    • inc\customizer\class-astra-customizer.php line 614

Missing escaping issues in following

  • Use esc_attr() in the following:
    • inc\blog\blog-config.php line 166 and 428 implode( ' ', $read_more_classes )
    • inc\core\common-functions.php lines 985 and 987 implode( ',', $rgb )
  • Use esc_attr() instead of esc_html()
    • esc_attr should be used to escape html attributes rather than esc_html
    • inc\compatibility\woocommerce\class-astra-woocommerce.php line 936 esc_html( implode( ' ', $cart_menu_classes ) )

Chinese Typography Support

It seems that all the fonts given are just for English not for Chinese. And it is a stupid idea to upload Chinese fonts to my server as Chinese fonts are big.
Besides, I found nothing to edit in your style.css....It means that I cannot customize myself.

Untranslatable strings report

Hello! In translation process I've found untranslatable and mistaken strings. Here is the report.

Legend:
"#" - the way to the module
"—" - the string


####Astra settings
###Addons
##Header Sections

— This module introduces two more header sections in the website header.

####Astra settings
###Addons
##Footer Widgets

— Add customizable widget areas above the main footer.

####Astra settings
###Addons
##License

— Not Active!
— Active!
— Your license is active.
— Enter your license key.. [placeholder]
— License successfully validated!

####Advanced Headers
###Display Rules
##Display On
#Specific Target

— Please enter 2 or more characters

— Search pages / post / categories

####Advanced Headers & Advanced Hooks
###Table with headers or hooks
##Display Rules [column]

— Display:

####Strings with mistake(s)
Targer header based on user role.

##<artical> mistake
astra_entry_bottom - Action to add your content or snippet at bottom of the <artical> tag.
astra_entry_after - Action to add your content or snippet after closing <artical> tag.

Escaping Translated Strings

  • All translation functions must be escaped, as sometimes an improper translation may break the html.
  • E.g:
    • Almost all instances of __()/_e() need to be esc_html__()/esc_html_e()
      • inc\admin-functions.php line 26
        'primary' => esc_html__( 'Primary Menu', 'astra' ),
    • esc_attr__() where used as attribute values
    • pas via wp_kses() if some html elements are required
  • This needs to be done throughout the theme

Better REM unit calculation

Hey, I see you are using a mixin to calculate REM units (of-course with a fallback for px). But it would be great if you can set the REM value just to be same as px value except for the decimal point. Let me explain, please consider this example:

.ast-archive-description .ast-archive-title {
font-size: 40px;
font-size: 2.85714rem;
}

This is fine as the REM value is calculated programatically. But imagine if the user has to manually update this value, they have to calculate REM value manually using the same formula as in the mixin.

Now, imagine this:

.ast-archive-description .ast-archive-title {
font-size: 40px;
font-size: 4.0rem;
}

Make sense right? Both are same values except for moving the decimal place.

More examples:

font-size: 25px;
font-size: 2.5rem;

font-size: 16.5px;
font-size: 1.65rem;

This can be done by setting the base REM value on html.

html {
font-size: 62.5%;
}

You should check this typography article if you need more convincing details
https://gregrickaby.com/2013/05/using-the-golden-ratio-and-rems/

As per the article the line height of 1.625 also makes more sense considering the width of the content and number of characters printed in each line. But I leave that upto you.

PS: You can use the built in Chrome Font Size option to test this. Also I can help you test this if you guys ever decide to go this route.

Post with no title

  • When there are posts without title, it still must link to the single post view somehow from blog archive
  • This is typically done by placing the permalink on the post date
  • Currently, theme does have post date available, in meta but only for Pro version
  • Theme needs to sort this issue
  • Check this screenshot
    screen2

Serious SEO issue: H1 is printed twice (once by Astra and once By Elementor)

The webpage name (h1 by default) that I give in WordPress edit mode can be for example "About us".

The webpage name (h1 by choosing in Elementor) that I give in Elementor edit mode can be for example "About us".

Now I have two h1 tags and it can be very problematic for the Google SEO robot scanning the site.

doing in the css file .entry-title {display: none} doesn't solve the issue. Anything else to do?

How can I ensrue Astra won't print h1 tags at all? Thanks.

The false XSS filters

Who can to explain in details WHAT is the code

		$categories_list = get_the_category_list( esc_html__( ', ', 'astra' ) );

		if ( $categories_list ) {
			$categories = sprintf(
				esc_html( '%1$s' ), $categories_list
			);

How does it esc_html( '%1$s' ) protect against XSS??
And what is the point to escape the result of get_the_category_list()?
And what is it esc_html__( ', ', 'astra' )? We translate the comma? wow

Page Header Display Rule does not work for taxonomies that have multiple post types assigned.

Hi Astra devs,

Recently I installed a popular plugin named Enhanced Media Library Pro and through it I made Attachment post type also assigned to the builtin Categories taxonomy, so that I could easily manage my uploaded files.

All of a sudden the 'All Categores Archive' option under Posts is gone from the Display Rule. After digging into the code a bit I found this piece of code in the get_location_selections() function in class-astra-target-rules-fields.php:

$args       = array(
	'public'      => true,
	'object_type' => array( $post_type->name ),
);
$taxonomies = get_taxonomies( $args, 'objects' );
unset( $taxonomies['post_format'] );

Apparently, it would only work for taxonomies that are assigned to ONLY ONE post type. My suggestion here would be to utilize the get_object_taxonomies() function for each post type. My hack is to replace the above code with:

$taxonomies = array();
$taxonomy_names = get_object_taxonomies( $post_type->name );
foreach ($taxonomy_names as $taxonomy_name) {
	if ($taxonomy_name == 'post_format') continue;
	$args       = array(
		'public'      => true,
		'name' => $taxonomy_name,
	);
	$single_taxonomy = get_taxonomies( $args, 'objects' );
	if ( isset( $single_taxonomy[$taxonomy_name]->name ) && isset( $single_taxonomy[$taxonomy_name]->label ) ) {
		$taxonomies[$taxonomy_name] = (object)[
			'name' => $single_taxonomy[$taxonomy_name]->name,
			'label' => $single_taxonomy[$taxonomy_name]->label,
		];
	}
}

This works, but might not be the best way to implement. If by any chance possible, could you somehow utilize my hack above and come out with a better implementation that supports taxonomies attached to multiple post types?

Thanks a lot!

Improve font rendering

Font smoothing helps to render fonts to be much smoother and thinner. This makes a lot of difference in readability perspective, especially when using Google Fonts. You can test these fonts to notice the difference: Source Sans Pro, Poppins etc.

html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

or

body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

Images and Screenshot images license issue

  • Readme screenshot images link and actual images used in screenshot are different
    • Provide proper links for images
  • In assets\images\astra-starter-sites.jpg, you need to add links/licenses of the images used in this image as well as it is bundled with the theme

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.