Coder Social home page Coder Social logo

simonpadbury / b5st Goto Github PK

View Code? Open in Web Editor NEW
48.0 48.0 20.0 293 KB

WordPress starter theme with Bootstrap 5 and Bootstrap Icons

License: The Unlicense

PHP 79.38% CSS 9.64% JavaScript 0.03% SCSS 10.95%
bootstrap5 sass wordpress wordpress-theme

b5st's People

Contributors

ben-atherton avatar hallsop avatar simonpadbury 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

b5st's Issues

Nav Walker adds duplicate class= attr to nav items

First off, thanks for such a clean, well coded theme.. greatly apprecaited!

Based on the feedback from W3C HTM Validator, I came across this error.

To duplicate, create a menu with child pages.

You will see that the child items have duplicate class attributes, such as:
<li id="menu-item-39" class="menu-item menu-item-type-post_type menu-item-object-page nav-item nav-item-39"><a class="dropdown-item" href="http://dev.local/page/" class="nav-link">List of Languages</a></li>

This appears to be created here:
$attributes .= ( $args->walker->has_children ) ? ' class="nav-link dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"' : ' class="nav-link"'; $item_output = $args->before; $item_output .= ( $depth > 0 ) ? '<a class="dropdown-item"' . $attributes . '>' : '<a' . $attributes . '>';

Where the child item inherits the attributes of the parent, but also adds another class attribute with the value of "dropdown-item".

Suggested edit:

Change line 44 of navbar.php from:

$attributes .= ( $args->walker->has_children ) ? ' class="nav-link dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"' : ' class="nav-link"';

To:

$classes = ( $args->walker->has_children ) ? ' class="nav-link dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"' : ' class="nav-link"';

AND Line 47 of navbar.php from:

$item_output .= ( $depth > 0 ) ? '<a class="dropdown-item"' . $attributes . '>' : '<a' . $attributes . '>';

To:

$item_output .= ( $depth > 0 ) ? '<a class="dropdown-item"' . $attributes . '>' : '<a' . $attributes .' '. $classes . '>';

Array to string conversion error in navbar.php using PHP 8.0

Full error message: "Warning: Array to string conversion in \app\public\wp-content\themes\theme-name\functions\navbar.php on line 44."

This is only showing up on the site when we upgraded to PHP 8.0. Any ideas on how to fix this?

Thanks!

B5st + Woocommerce

I`m trying to make this team support Woocommerce which should be super easy but after declaring support i get no images on the product site. It doesnt happen with b4st. Do you know what can be the reason?

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.