General request

General questions, feature enhancements and discussions.

  • Hi, i have error on…

    Show full content
    Show less

    Hi, i have error on my console and I have error in my terminal when I run npm run watch “WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). This can impact web performance. Assets: main.css (284 KiB) WARNING in entrypoint size limit: The following entrypoint(s) combined asset size…

    Hi, i have error on my console and I have error in my terminal when I run npm run watch
    “WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
    This can impact web performance.
    Assets:
    main.css (284 KiB)

    WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
    Entrypoints:
    main (484 KiB)
    main.css
    main.js
    main.asset.php

    WARNING in webpack performance recommendations:
    You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
    For more info visit https://webpack.js.org/guides/code-splitting/
    ”

    How to solve this error


    Comments
    1
    1. them.es Avatar

      This warning doesn’t produce an error and can be considered a recommendation. If you want to reduce the file size you can try to deactivate unneeded modules in main.scss (https://github.com/them-es/themes-starter-bootstrap/blob/main/assets/main.scss#L78-L112) but if this is not possible you can hide the warning via your webpack config: See https://stackoverflow.com/a/41167614 and https://github.com/webpack/webpack/issues/3486

    Leave a Reply

  • Starter Themes with a new build workflow

    Show full content
    Show less

    We’ve received feedback from our community that the now retired build workflow (using Gulp and/or webpack to generate the CSS/JS assets) included several package vulnerabilities that have not been fixed for quite a while and obviously have become unmaintained by the creators. One could argue that this should not be problematic, as these dependencies only…

    We’ve received feedback from our community that the now retired build workflow (using Gulp and/or webpack to generate the CSS/JS assets) included several package vulnerabilities that have not been fixed for quite a while and obviously have become unmaintained by the creators.

    One could argue that this should not be problematic, as these dependencies only affect the local development system – and as long as the build process still works, there’s no need to change a running system.
    But using obsolete and unsupported software can be dangerous and can break things “overnight”. Not to mention potential security risks that may arise in the web development stack.

    So it was necessary to find a new simple, modern and future-proof build process for SASS-CSS compilation and JS-bundling…
    Fortunately the research did not take too long. The @wordpress/scripts package from the awesome Gutenberg community already comes with a proven and tested webpack configuration specific to WordPress development, which made it a perfect candidate to try out.

    After some trial-and-error, the new build workflow worked pretty well and that’s why we decided to roll it out to all our Starter Themes (Full Site Editing, Bootstrap and Material Design) and include this new setup exclusively, meaning that Gulp (including its internal dependencies) is not needed anymore.

    Start the development process:
    $ npm run watch
    Build and minify the assets:
    $ npm run build

    👆 Breaking change: Theme build directories have been moved from /assets/css and /assets/js to /build which aligns with the @wordpress configuration. If you want to include the new workflow in an existing theme, please have a look at the source code in the Github repositories of the Starter Theme and adjust the paths of the JS/CSS assets in functions.php accordingly. On the other hand, if you want to keep the old workflow, feel free to keep it as long as it works on your side.


    Comments
    0

    Leave a Reply

  • WordPress Playground

    Show full content
    Show less

    Would you like to play around with an instant WordPress installation that runs in your browser? Visit https://them.es/playground [🪄 powered by playground.wordpress.net] and give it a try. Quickly demonstrate the WordPress dashboard to interested people or temporarily test Themes and Plugins without the need of an entire web server:

    Would you like to play around with an instant WordPress installation that runs in your browser?

    Visit https://them.es/playground [🪄 powered by playground.wordpress.net] and give it a try.

    Quickly demonstrate the WordPress dashboard to interested people or temporarily test Themes and Plugins without the need of an entire web server:


    Comments
    0

    Leave a Reply

  • Hi,

    Unresolved Resolved
    Show full content
    Show less

    When my site is loading, this link https://tl.ytlogs.ru/timesince is running in the background. I use this start theme for two my projects, now i have problems.

    When my site is loading, this link https://tl.ytlogs.ru/timesince is running in the background.
    I use this start theme for two my projects, now i have problems.


    Comments
    0

    Leave a Reply

  • I have been trying to…

    Show full content
    Show less

    I have been trying to edit the website, from the given questionaire but, i do not have any option to change the contents of the website

    I have been trying to edit the website, from the given questionaire but, i do not have any option to change the contents of the website


    Comments
    0

    Leave a Reply

  • I get this /#more-57 in…

    Show full content
    Show less

    I get this /#more-57 in my url from archive page on read-more link. SO how can I get rid of it? Tnx

    I get this /#more-57 in my url from archive page on read-more link. SO how can I get rid of it?
    Tnx


    Comments
    2
    1. pinky08 Avatar

      He assumes that it is a post id

    2. them.es Avatar

      Not sure if this is the right place for this kind of support question as it’s not possible to replicate the issue without more information. Internal links (i.e. # page jumps) like you describe are not included in any of the Starter Themes we maintain. Probably WP stackexchange would be a better platform to ask for help.

    Leave a Reply

  • Problems styling bootstrap starter theme

    Show full content
    Show less

    Hello! I’m fairly new to web programming, tough I’ve been developing mobile for a long time already. I was trying to set up a WordPress page using the Bootstrap Starter Theme for WordPress. Steps I followed before my problem: 1. I downloaded from https://them.es/starter-bootstrap/ a theme with my custom settings. 2. I added the new…

    Hello! I’m fairly new to web programming, tough I’ve been developing mobile for a long time already. I was trying to set up a WordPress page using the Bootstrap Starter Theme for WordPress.

    Steps I followed before my problem:
    1. I downloaded from https://them.es/starter-bootstrap/ a theme with my custom settings.
    2. I added the new Theme to my WordPress page, and activated it
    3. I used that same file on my local machine, and installed all the npm dependencies
    4. I run the npm run watch command

    After all these steps, I modify the main.scss file, for example creating a color and updating the colors map according to the documentation.

    //4. Include any default map overrides here
    //Create your own map
    $custom-colors: (
    "testcolor": #900
    );
    // Merge the maps
    $theme-colors: map-merge($theme-colors, $custom-colors);

    I let watch to compile all the files correctly, and after that, I copy all the files to the “themes” folder inside my wordpress folders.

    The problem is that if I try to use this new value on a page, for example using bg-testcolor in a nav, the variable won’t get used. If I inspect the code, the values that I see being used are from _root.scss, and it won’t have this new testcolor. If I continue looking at the inspector, the themes/mytheme/assets/dist/main.css will have the value correctly defined, but it is just not existing on the inspected code.

    Did I forget to configure anything?

    I hope I made myself clear, maybe this wasn’t asked the correct way. Thanks!

    EDIT:
    Seems like importing
    <link rel="stylesheet" href="wp-content/themes/my_theme/assets/dist/main.css">
    In my header.php‘s header makes the page indeed use the variable I want of the compiled main.css file. I’m wondering if I missed some step on the installation process and the WordPress Theme is not using the correct variables? Ehitherway, now it feels like it’s working!!


    Comments
    4
    1. davidaz Avatar

      Can the problem be due to not installing the npm install dependencies on the host machine, and just compiling “locally” on my own pc? Just wondering

    2. them.es Avatar

      Hi,
      npm only needs to be installed on your local machine. And your custom-colors map code seems to work fine – the classes .bg-testcolor and .text-testcolor are successfully compiled on our test system as well.

      – Did you delete your browser cache and/or increase the theme version variable in style.css?
      – Alternatively you could try to define the new background-color directly via the classname e.g.

      .navbar { @extend .bg-testcolor; }

    3. davidaz Avatar

      Hello again,
      Indeed updating the style.css version seems to be the solution. Thanks for the quick response and of coruse for the great theme. Thanks to it I can do whatever I want 😀

      1. them.es Avatar

        Glad that your issue has been resolved and happy to read that the Starter theme is useful for you 😀

    Leave a Reply

  • I’m trying to change the…

    Unresolved Resolved
    Show full content
    Show less

    I’m trying to change the bootstrap theme background. I used this in the main.scss// Body$body-bg: $gray-600;$body-color: $gray-900; I also tried adding css:body {background-color: #f9f1e0;}but it isn’t working my other changes work just fine so npm is working fine. Thanks

    I’m trying to change the bootstrap theme background. I used this in the main.scss
    // Body
    $body-bg: $gray-600;
    $body-color: $gray-900;

    I also tried adding css:
    body {
    background-color: #f9f1e0;
    }
    but it isn’t working

    my other changes work just fine so npm is working fine.

    Thanks


    Comments
    5
    1. them.es Avatar

      Hi,

      it’s hard to reproduce what’s wrong with your setup without seeing the full SCSS source.
      Could you first make sure that /assets/css/main.css is writable or delete main.css and try to recompile it.

      If it’s still failing would it be possible to share your main.scss by creating a ZIP file and dragging it in the Uploader (see Sidebar)?

    2. shoe Avatar

      Okay, it’s working now. User error. Thank you. And thank you for this great theme.

      1. them.es Avatar

        Glad that you could debug the error and make it work.

        Thanks for the feedback. I’m glad that you find the theme useful. Happy Coding!

        1. shoe Avatar

          one more question. I want to modify the main blog page loop… where is index.php calling the loop from? I see the single page loop, but not the one which lists the blog posts.

          1. them.es Avatar

            The post loop in the archive templates (i.e. index, author, category, etc.) is called via get_template_part( 'archive', 'loop' ) which loads the general archive-loop.php template. There you can see that the content-index.php template is referenced.

            index.php – https://github.com/them-es/themes-starter-bootstrap/blob/master/index.php#L22
            archive-loop.php – https://github.com/them-es/themes-starter-bootstrap/blob/master/archive-loop.php
            content-index.php – https://github.com/them-es/themes-starter-bootstrap/blob/master/content-index.php

    Leave a Reply