theme development – Can’t select my block by clicking on it

after uploading a photo my block is selected, so I can change properties. But when I select another block, then by clicking on that photo I can’t select my block. I can select only through list view. Does anybody know how I can fix it?

blocks.registerBlockType( 'testblock/my-image', {
    apiVersion: 2,
    title: 'My image',
    icon: 'format-image',
    category: 'media',
    example: {
        attributes: {
            id: '123',
            alt: '',
            url: 'http://mypage/wp-content/uploads/2021/02/hairdrayer.jpg'
    attributes: {
        id: {
            type: 'number',
            default: 0
        alt: {
            type: 'string',
            default: ""
        url: {
            type: 'string',
            default: ""
    edit: ( props ) => {                
        return (
                    <PanelBody title="Image Settings" initialOpen={ true }>
                        { != 0 && 
                                onChange={ newAlt => props.setAttributes({ alt: newAlt }) }
                                value={ props.attributes.alt }
                                help="Describe the purpose of the image. Leave empty if the image is purely decorative."
                                label="Alt Text"
            { === 0 && 
                onSelect={ (media) => {
                        alt: media.alt, 
                        url: media.url
                allowedTypes = { ( 'image/gif', 'image/jpeg', 'image/png', 'image/svg+xml' ) }
                multiple = { false }
                labels = { { 
                    title: 'Responsive image',
                    instructions: 'Upload an image file, pick one from your media library.'                     
                } }

                src={ props.attributes.url }
                alt={ props.attributes.alt }
    save: ( props ) => {
        return (
                src={ props.attributes.url }
                alt={ props.attributes.alt }

8 – How to do a Library Override in my theme for dialog.ajax.js

I’m trying to do a libraries-override to the dialog.ajax.js file appearing in /core/misc/dialog/. (Want to replace it with a js file from my theme, let’s say at mytheme/js/dialog.ajax.js)

In my theme’s *info.yml file, I tried

      assets/js/dialog.ajax.js: false

as another post suggested (just to try and disable it). Didn’t work.

My confusion comes from not knowing how to correctly target the /core/misc/dialog/dialog.ajax.js file within my override, and then correctly target my mytheme/js/dialog.ajax.js as a replacement.

I reviewed the documentation, but it’s still quite unclear. Any tips? Thanks!

Add WordPress hook outside of Plugin or Theme

We have the following code that is used to hide our core theme so that it can’t be enabled directly and you can only enable the child themes from the WordPress Dashboard.

function hide_core_theme($themes) {
    return $themes;
add_action('wp_prepare_themes_for_js', 'hide_core_theme');

However if you put this code inside the functions.php file of either the Parent or Child theme it will only hide the core theme when one of them is enabled… e.g. if someone was to turn on another theme the core theme would appear again.

Another option is to add this code inside a custom plugin… but it means having it enabled and a user could always disable this plugin to get around it… plus we’re not too keen on having a plugin to turn off a theme as it feels pretty detached.

Is it possible to add some hooks that are outside of a Theme or Plugin? And therefore are called regardless of what themes or plugins are enabled?

Nulled Navian v1.2.7 – Multi-Purpose Responsive WordPress Theme |

Navian v1.2.7 – Multi-Purpose Responsive WordPress Theme | 55.1 MB

WPBakery Page Builder (formerly Visual Composer) Included! Premium Slider Revolution Included! Navian Studio with 185+ Exclusive section templates Modular Element Design One Click Demos Import Fully Responsive 60+ Custom Visual Elements in Page Builder Child Theme Ready

Product page:



theming – Reorganizing Regions in Bootstrap 4 Theme

A disclaimer first: I am a professional medievalist, not a programmer or a front-ender. I have some front-end knowledge, but not a lot. So, please, be easy on me.

Now, I am customizing a Bootstrap 4 subtheme and there is a particular layout that I need to achieve that I, for the life of me, cannot get to work. Thus, I turn to you, good and kind people of stack exchange, for aid, counsel and favor.

I am attaching the pictures and the code. The first picture is the original Bootstrap 4 region layout. The picture 2 is the region layout that I need.

Vanilla Bootstrap 4

The second picture is what I need it to be. Basically, the body of the page should be container-fluid, but the content inside the body should be just container. In that way, the sidebar first and sidebar second would be all the way on the margins. I have read a lot of contradictory advice on nesting a container inside the container-fluid, but whatever I try, it simply does not produce the desired effect.

What I need

Here is the Twig file:

    <main role="main">
  <a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}

  set sidebar_first_classes = (page.sidebar_first and page.sidebar_second) ? 'col-12 col-sm-6 col-lg-3' : 'col-12 col-lg-3'
  set sidebar_second_classes = (page.sidebar_first and page.sidebar_second) ? 'col-12 col-sm-6 col-lg-3' : 'col-12 col-lg-3'
  set content_classes = (page.sidebar_first and page.sidebar_second) ? 'col-12 col-lg-6' : ((page.sidebar_first or page.sidebar_second) ? 'col-12 col-lg-9' : 'col-12' )

  <div class="{{ b4_top_container }}">
    {% if page.breadcrumb %}
      {{ page.breadcrumb }}
    {% endif %}
    <div class="row no-gutters">
      {% if page.sidebar_first %}
        <div class="order-2 order-lg-1 {{ sidebar_first_classes }}">
          {{ page.sidebar_first }}
      {% endif %}
      <div class="order-1 order-lg-2 {{ content_classes }}">
        {{ page.content }}
      {% if page.sidebar_second %}
        <div class="order-3 {{ sidebar_second_classes }}">
          {{ page.sidebar_second }}
      {% endif %}


Also, I have no clue what the b4_top_container does; could not find the explanation anywhere.

Any help would be massively appreciated.

Thank you all very much in advance.

Add theme support for post thumbnail isn’t working from theme class

I have a theme class that I bootstrap my theme in and add the theme support but the featured image meta box isn’t appearing.

Inside the class file:

    class WCS_THEME {
        private function __construct() {
        // Singleton design code here
        protected function setup_hooks() {
            add_action( 'after_theme_setup', ( $this, 'setup_theme' ) );
        public function setup_theme() {
            add_theme_support( 'post-thumbnails' );


Inside functions.php:

require WCS_DIR_PATH . '/inc/classes/class-wcs-theme.php';

wordpress – Child Theme Generator Uncaught Error: Call to undefined function imagettftext()

Estoy tratando de crear un tema en wordpress con el plugin child teme generator pero estoy obteniendo este error:

WordPress Error: There has been a critical error on your website. Please check your site admin email inbox for instructions.

En el correo electrónico estoy obteniendo esta información:

An error of type E_ERROR was caused in line 453 of the file /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/child-theme-generator/includes/class-child-theme-generator-functions.php. Error message: Uncaught Error: Call to undefined function imagettftext() in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/child-theme-generator/includes/class-child-theme-generator-functions.php:453
Stack trace:

#0 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/child-theme-generator/includes/class-child-theme-generator-functions.php(287): Ch_Th_Gen_Functions::create_screenshot_png()

#1 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/child-theme-generator/admin/class-child-theme-generator-admin.php(197): Ch_Th_Gen_Functions::files_generation()

#2 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/child-theme-generator/admin/partials/child-theme-generator-admin-display.php(61): Ch_Th_Gen_Admin->section_create()

#3 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/child-theme-generator/admin/class-child-theme-generator-admin.php(133): include_once(‘/opt/bitnami/ap…’)

#4 /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php(287): Ch_Th_Gen_Admin->display_options_page()

#5 /opt/bitnami/ap

VideoPro – Video WordPress Theme

Admin submitted a new resource:

VideoPro – Video WordPress Theme – VideoPro – Video WordPress Theme

View attachment 24253

Check out VideoPro’s full features list beflow

  • Submit Video/Post: allow visitors to submit posts
  • Various Video Network supported: use direct link from…

Read more


Voicer – Recording and Sound Studio WordPress Theme | Nulled Scripts Download

Voicer is premium WordPress theme. It is retina ready, fully responsive and compatible with all kind of mobile devices. This item is dedicated to (you can built website based on it) and will fit for Sound Studio, Recording Studio, Musician, Sound Producer, DJ, Band, Music Company, Recording Compay etc. You can save your time and money with our WordPress theme Voicer. We have integrated it with specific features – Instagram widget, booking…

.(tagsToTranslate)xenforo(t)xenforo themes(t)xenforo nulled(t)xenforo free(t)xenforo 2.2(t)nulled(t)nulled script(t)whmcs(t)whmcs nulled(t)scripts(t)nulled scripts(t)vbulletin(t)vbulletin nulled(t)vbulletin 5 nulled(t)xenforo resources(t)wordpress download(t)wordpress nulled forum

Base theme for magento

Is it is possible to create base theme, which will become a common theme to both the adminhtml and frontend?