General request

General questions, feature enhancements and discussions.

  • I can edit main.scss, watch…

    Show full content
    Show less

    I can edit main.scss, watch runs and it all works, except options. I change color vars – $red: for example, i change breakpoints, $grid-breakpoints, but no any change i see in the theme.

    I can edit main.scss, watch runs and it all works, except options.
    I change color vars – $red: for example, i change breakpoints, $grid-breakpoints, but no any change i see in the theme.


    Comments
    5
    1. them.es Avatar

      Hi redshoes!

      The Gulp watch task should work out of the box. Could you make sure that you have read+write access to /assets/css/main.css. You could also try to delete the main.css file and recompile it from the SASS source.

      Hope this helps…

      1. redshoes Avatar

        Well, i’m not saying, that gulp is not working. It does it’s job!
        The bug is that i can’t change these global vars, like breakpoints and colors. I can successfully create my own ones, and it works (as i already did for the colors), and thank G-d, i do not really need to change breakpoints in this project, but as for the future…

        1. them.es Avatar

          Colors can be changed by defining the $colors variable: https://github.com/twbs/bootstrap/blob/main/scss/_variables.scss#L46-L61

          Grid breakpoints can be modified via the $grid-breakpoints variable as pointed out in the official Bootstrap repo: https://github.com/twbs/bootstrap/blob/main/scss/_variables.scss#L285-L292

          But I guess you already know that. So please double check that you are adding these variables in your main.scss file before any @import “../node_modules/bootstrap/scss/bootstrap”; statements.

          This has been tested locally by us and confirmed to be working. If you still don’t manage to change the grid breakpoints, would it be possible to share your main.scss file? You can use the uploader in the sidebar to share it as a ZIP file.

          1. seven6 Avatar

            I’m confused as Gulp only seems to recognize main.scss and changing any files in node_modules/bootstrap/scss aren’t recognized. I can make changes in node_modules/bootstrap/scss but then I have to change something in main.scss to get Gulp to compile. This seems to be an incredibly slow way to develop. Am I missing a path in my gulpfile.js? Or am I supposed to run npm install in node_modules/bootstrap/ ?

            Thanks!

            1. them.es Avatar

              Modifying NPM source files is a bad idea. Anytime you update your NPM dependencies all changes will be lost.

              The correct approach is to override the Bootstrap variables as stated in the previous comment – preferably in main.scss
              Documentation: https://getbootstrap.com/docs/5.0/customize/sass/#variable-defaults

              Our Gulp watch command only gets triggered when main.scss or main.js gets modified but feel free to add more paths in your local gulpfile.js

    Leave a Reply

  • I’ve been investigating your theme…

    Show full content
    Show less

    I’ve been investigating your theme and like the simplicity and that it already includes basics such as the Bootstrap menu walker that designers like myself don’t really want to build. I’m coming from using FoundationPress for number of years which did not facilitate child themes. Somewhere on your site I saw a note on regarding…

    I’ve been investigating your theme and like the simplicity and that it already includes basics such as the Bootstrap menu walker that designers like myself don’t really want to build.

    I’m coming from using FoundationPress for number of years which did not facilitate child themes.

    Somewhere on your site I saw a note on regarding child themes and build tools. I’m not finding it now. I want to set a child theme and use sass. I’m not clear how to do this with them.es and I haven’t set a child theme in a sass environment. So, looking for some reference for this.


    Comments
    1
    1. them.es Avatar

      Hi squidzink!

      Creating a child theme for one of the Starter Themes is not required and not recommended. According to the official WordPress docs a Child Theme allows you to change small aspects of your site’s appearance yet still preserve your theme’s look and functionality.
      The purpose of a Starter theme is to start developing from scratch with a small code base and not to use it as a Parent Theme.

      If you want to build a new them.es Starter Theme you need to be familiar with npm development in order to setup the required frontend build tools.
      The following resource should help you setup your DEV environment: https://them.es/starter-bootstrap/getting-started

    Leave a Reply

  • Starter SPA issues

    Show full content
    Show less

    I installed this theme locally, and I ran into a few problems. When I click one of the WordPress admin links at the top of the page (Customize, Edit Page, etc.) I get “404/Not found”. The URL appears in the address bar, and I have to position the cursor in it and hit enter to…

    I installed this theme locally, and I ran into a few problems. When I click one of the WordPress admin links at the top of the page (Customize, Edit Page, etc.) I get “404/Not found”. The URL appears in the address bar, and I have to position the cursor in it and hit enter to open the link. Whether I’m logged in or not, when I type the site URL into the address bar, it opens on the 404 page, and I have to click one of the menu links to see the page. I have it set up for a static home page, by the way.


    Comments
    4
    1. them.es Avatar

      Hi ddgardner!

      I’ve duplicated your comment from https://them.es/support/2015/06/08/them-es-starter-spa-ready-for-download/#comment-10 as a new post.

      The SPA Starter Theme has been designed as a Single Page Application. I.e. All links (even the WordPress internal links) are routed via page.js
      So you’ll have to open them in a new tab or hit enter again.

      If your Front page displays a 404 error…
      1. Go to Settings > Reading
      2. Front page displays: A Static page
      3. Select your Homepage
      4. Save changes

      This has been documented here: https://them.es/starter-spa/download

      Please let me know if that works for you.

    2. them.es Avatar

      The wp-admin redirect now works in the latest release v1.0.4 – You can download a new customized theme or add the following line in index.php: https://github.com/them-es/themes-starter-spa/blob/b1d2a9e029cdc038a9a36f8f52e0e9e79733ac7c/index.php#L199-L206

      1. ddgardner Avatar

        Hi, thanks for responding. I downloaded the new version and installed it on a local server. Unfortunately, it’s still not working. Before, when I’d click on a link, I’d get a 404 in the content area of the theme. Now, it takes me to a separate page with a “not found” error message. Here’s what’s strange, though- I installed it online on a free host, and it worked fine. Maybe the problem lies with my local server installation.

        Thanks again for taking the time.

    3. them.es Avatar

      Maybe “mod_rewrite” is not enabled on your local server. And/Or your Permalink settings are wrong.
      Try to set the Permalink structure to “Day and name”.

    Leave a Reply

  • multiple countup numbers in one row?

    Unresolved Resolved
    Show full content
    Show less

    Multiple countup numbers are stacked on top of each other; I would like them to spread in one row and also have headers. I was not able to add the shortcode to an ACF table nor was I able to input the  shortcode and table code in the page’s source code. Any advice? Tx.

    Multiple countup numbers are stacked on top of each other; I would like them to spread in one row and also have headers. I was not able to add the shortcode to an ACF table nor was I able to input the  shortcode and table code in the page’s source code. Any advice? Tx.


    Comments
    1
    1. them.es Avatar

      Inserting a shortcode in a PHP template is actually easy:

      echo do_shortcode("[...]");

      Please have a look at the following discussion if you want to use shortcodes in a Advanced Custom field table: https://wordpress.org/support/topic/shortcodes-in-table-apply_filtersthe_content

      The provided solution is working for me.

    Leave a Reply

  • Countup in a widget

    Show full content
    Show less

    I used the Countup as in http://them.es/plus/countup/. This looks good at a page or post. However, in a widget it doesn’t work. Is a method available to make this work in a widget too?

    I used the Countup as in http://them.es/plus/countup/. This looks good at a page or post. However, in a widget it doesn’t work. Is a method available to make this work in a widget too?


    Comments
    1

    Leave a Reply