Redirect top-level domain except for one page in Drupal

I have two top-level domains pointing to my Drupal installation, abc.com and xyz.com. I'd like to force all pages to use abc.com, EXCEPT for one page (node), which should always use xyz.com. I've...

Wordpress have_comments does not work

I have set a comment() condition in wordpress. This condition is set in comments.php just as the wordpress default theme does. Then the whole comments.php file is loaded using comment_template;...

WordPress ContactForm7 datepicker field - disable/block specific dates?

I currently have a WordPress site installed where users can book a tour of our facility (we are a university). I have used the ContactForm7 plugin to create a form within a page where visitors can...

Activating next input field in form on enter

Order entry form contains product code and quantity columns in multiple rows and delete button (-) in end of every row. It contains also add button in first column and after form. Pressing enter...

How can I customize category pages in Wordpress?

I'm creating a blog with wordpress, I'm using the DIVI theme and I need to change the appearance of the category pages of the blog... what's the easiest way to do that? I understood I should look...

WordPress theme editor is missing

I am trying to access the theme editor in WordPress. The problem is that I cannot find the option under Admin-Appearances - Editor and when I try to access the page using the link...

Laravel Snappy table not splitting over multiple pages

Laravel Snappy works great, but trying to fix this The headers are good, but the table itself is not splitting and starting underneath the headers of the second page. Is this fixable? I am using...

Creating basic WordPress child theme (using Divi)

I'm trying to create a very basic WordPress child theme under the Divi theme. I'm just doing the simple steps to be sure the basic structure is correct, but I'm not seeing any styling take...

How to Set/Update State of StatefulWidget from other StatefulWidget in Flutter?

For Example in the below code plus button works and able to update the text but the minus button does not. 2. But if we press FloatingActionButton then the State is refreshed . 3. The minus...

Slider for product thumbnails in WooCommerce

I've built an own theme for my WooCommerce store. At the moment I've made very few changes to the existing template files. But I want to change the view of the image slider on the product page. At...

How to customize a date picker

I’m using the showDatePicker() method to display a date picker in my flutter application. How do I customize the colors of the date picker? Here is my theme's code: class CustomTheme extends...

Adding a class to a woocomerce div tag

I'm using Woocommerce with a WP theme I have developed. I need to add a class to the Woocommerce div on the product page toget the Woocommerce content to fit within my sites container. I'm quite...

Query Returns only 1 Row of Data in my PHP table

I have a query built, that when run in the MySQL app, shows all the expected results. However, when I go to loop through it in my PHP code, it only shows one row as result. No matter how I play...

Typescript with NextJS

I've been struggling to integrate Typescript with NextJS, mainly with destructured parameters in getInitialProps but also with the type of page functions. For example, here is my _app.tsx: import...

Firefox: How to test prefers-color-scheme?

In Firefox 67, one can use media queries to detect user preference on light or dark theme. In my version of Firefox (under Ubuntu), it seems that my preference is light theme. That is, the...

How to run NUXT (npm run dev) with HTTPS in localhost?

EDIT: Updated the text in general to keep it shorter and more concise. I am trying to configure HTTPS when I run npm run dev so I can test MediaStream and alike locally (for which browsers require...

How to animate Alert dialog position in Flutter?

By this simple code I can show dialog on bottom of screen like with this screenshot: But I have three simple issue: set margin on bottom of dialog such as 20.0 on showing dialog using...

Adding comments in blog posts on github-pages

I've made a website based on Github pages using Jekyll Theme. Currently I can post blogs in that website as well. However, I want to add a comments section at the end of the blog posts. There are...

Divi Landing page

I am using divi theme to create my website. Now at my web-address, there is a default Divi layout, when I click to customize it, Divi theme builder does not show up. And whenever I try to create...

Undefined props theme when using local component library in another application, with components using ThemeProvider

I have two repository fe and craft, which are the Application and the Component library respectively. Both repositories can compile fine on their own. However, when I try to use a component...

Getting white screen on running npm start in my react js project

So is <strictmode causing this problem ???2I am getting a white screen while i am trying to run npm start . The npm start works but I am getting a white screen on http://localhost:3000/ . I tried...

How to create Custom Page Prestashop 1.7

I share with you how to create a custom page PHP in Prestashop 1.7 I am showing in this example the brands, but you can show other sql queries, etc 1° Create the controller...

How to run workmanager every 15 minutes in the background in flutter IOS

I am working on adding a workmanager flutter to my project. Now it works perfectly on Android system as follows: const fetchBackground = "fetchBackground"; void callbackDispatcher() { ...

Remove "Search Results: '%s'" and blank space from Woocommerce Shop Search Results Page

I am trying to remove the "Search results: ' ' " text that shows above products on the Woocommerce Storefront search results page. Below is an image with the referenced text circled: I have tried...

jQuery not working after using renatomarinho / laravel-page-speed package?

I wanted to minify html output so I have used the renatomarinho/laravel-page-speed package. I have done as per the instruction on its github page...

R Markdown (beamer) - how to create 2 columns

I am trying to create a presentation using RMarkdown beamer. I want a slide to have 2 columns and this is what I have so far: --- title: title author: name date: date output: ...

Impossible to display list of *past* or *all* events (events manager plugin) in WP BACKEND with a particular theme

Sorry, this problem needs a longer description and I don't really have any code to post (or rather, I wouldn't know what code to post - see below)... I have two websites with two self-created...

Furo Sphinx theme uppercases too much in API documentation

I am a beginner in documentation with Sphinx. I wanted to produce numpy style documentations. Therefore, I used numpydoc extension. Numpy uses pydata theme, however I chose furo. I understand that...

Can I include % in image file name which is used in a web page?

I name an image file as 100%-satisfaction-guarantee-icon.png, then put it in my webpage, as below: <img src="<?php bloginfo('template_directory'); ?>/images/100%-satisfaction-guarantee-icon.png"...

How to calculate distance from a phone thrown in height

In Flutter, there is the sensor package https://pub.dev/packages/sensors that allow to know the velocity X, Y and Z. My question is : how could I calculate the distance of a phone thrown in height...