How to disable inline css styles generated by Gutenberg editor?

I've got Genesis-blocks plugin installed (it got updated from Atomic blocks). I am using blocks and resuable blocks to create pages. The problem I am facing is, most of these blocks inject their own inline styling, e.g. button block creates an anchor tag, but it gives inline styling for background-color and text-color as well. Doing my own research I found that the default appearance of these blocks can be edited with javascript api, but the docs don't tell which javascript …
Category: Web

remove_action conditionally for Custom Post Type - not working

I'm using a Genesis child theme with the 'Genesis Co-Authors Plus' which enables support for Co-Authors Plus I'd like to disable the author box everywhere except for the blog. Genesis Co-Authors Plus removes the default Genesis genesis_do_author_box_single and replaces it with gcap_author_box So far I've got a conditional function to remove gcap_author_box from the custom post type local-bite I tested the conditional statement with a simple echo and it is working fine. So what is wrong with the following?: // …
Category: Web

How do I add footer widgets to the StudioPress Monochrome Pro theme?

I spent all day creating a custom theme based on the Monochrome Pro Genesis child theme. But, I just noticed it doesn't have any footer widgets areas in Appearance > Widgets. I looked at the theme documentation and it doesn't have footer widgets areas! I looked in funtions.php and the code is there for widget support.. //* Add support for 4-column footer widgets. add_theme_support( 'genesis-footer-widgets', 4 ); There are no remove_actions for the footer widgets. So, it seems like I …
Category: Web

author.php not showing content if Author has no Posts

I am making a custom Genesis theme, and have a custom author.php file that pulls in various custom fields (Using Advanced Custom Fields), and author meta information to the page from the author profile page... It also displays their latest posts. This works perfectly, IF the author has posts assigned to them. If they don't, the page doesn't output any of the content that is normally pulled from the authors profile... I've searched StackExchange, and whilst this has been mentioned …
Category: Web

How to use regular page template for search results?

I'm working on a Genesis child theme with a static front page. This front page contains a search box that just sets the 'search' query var. So it redirects to: http://baseurl/?search=foo I'm handling the search query var in my page template, because I need to do some custom querying: <?php $searchParam = get_query_var('search', null); $query_params = [ 'post_type' => 'any', 'category_name' => 'stories', 'orderby' => 'date', 'posts_per_page' => 8, 'paged' => 1, 'post_status' => 'publish', 'post__not_in' => get_option( 'sticky_posts' ), …
Category: Web

How to remove an action added by a child theme of Genesis

I developed a child theme for Genesis that adds Bootstrap on top of it. In the core of this child theme I edited the way the category is displayed in the post, putting it above the title. Now, I'd like to remove the action again but it seems not working. This is theory, below I write something more, with code. PRACTICALLY I have the file src/lib/post.php that adds the action shq_genestrap_post_meta_categories: function shq_genestrap_post_meta_categories() { $filtered = apply_filters( 'shq_genestrap_post_meta_categories', '[post_categories]' ); …
Category: Web

genesis grid loop only showing one column

The following code is in home.php and works, mostly. It's not displaying a grid though. Instead it's displaying the featured image from the feature post at the top which is fine but the grid posts/images are all in a single column below the featured post. Is there something else I need to do? <?php remove_action('genesis_loop', 'genesis_do_loop'); add_action( 'genesis_loop', 'gabbro_posts_grid_loop' ); function gabbro_posts_grid_loop() { if ( function_exists( 'genesis_grid_loop' ) ) { genesis_grid_loop( array( 'features' => 1, 'feature_image_size' => 1, 'feature_image_class' => …
Category: Web

Second nav is merged with the first in mobile

When I load the website (https://notes.goncaloperes.com) on mobile one can see the two menus/navigations that exist However, when it loads, the two navs are merged and the second menu buttons can only be found in the burguer menu on top. The primary nav looks fine on the burguer menu, however, it would be helpful to see the second menu as it appears before the merge (as seen in the first image). How do I do that? Information that may help: …
Category: Web

Query to get child pages of current page and display it in action hook

First I want to apologize if there are spelling mistakes in this question. I'm using Genesis Framework. According to the following answer: https://wordpress.stackexchange.com/a/60295/146574 I'm trying to display that loop in single-$cpt.php, the loop works fine. But when I try to display in other places through an action hook (genesis_after_entry in my case) the loop contains all cpts, but I want to display only child posts of the current post. Here is the code: <?php $args = array( 'post_type' => 'curso', …
Category: Web

Display posts from a different website on Genesis Responsive Slider

In the homepage of this website, I have the widget "Genesis - Responsive Slider". From the "Genesis - Responsive Slider" Settings, one can see that it is picking up the posts from this website. However, I wonder if, instead of picking up the posts from this website, it can pick the posts from this other website (whose parent theme is also the Genesis Framework) and display them in the slider. If yes, how should one proceed?
Category: Web

Display current category title on category page

Using the following code in a category template, but instead of showing the current category page that I am on, it displays the first category of the first post. For example on Food category page it should say Food, but instead it says Desserts because the first post's category is desserts. Here is the site http://theveganproject.ca/wp/category/food/ add_action ( 'genesis_before_content', 'sk_show_category_name' ); function sk_show_category_name() { $category = get_the_category(); if (is_category()) { echo '<div id="cat-name">' . $category[0]->cat_name . '</div>'; } }
Category: Web

Using Shortcode Result In Custom HTML Block (Using Google Sheet JQuery Result As NumScroller data-max)

After creating a Shortcode that aquires google sheet data and then getting a JQuery plugin (numscroll) working that makes numbers scroll up to a certain number when displayed I am having difficulty combining these two solutions into a single "Custom HTML Block". This is what I am trying to do: <h2 class="has-text-align-center"><strong> <span class="numscroller" data-min="1" data-max=[get_sheet_value location="'Summary Page'!C3"] data-delay="5" data-increment="10">0</span> </strong></h2> Which for some reason results in the default "data-min" value (1) being displayed (possibly due to the time it …
Category: Web

Exclude a category from the filed under list

I have a site where I have a category that I'm using for some backend functionality. However, when I'm viewing a post that is in that category and other categories, I don't want to see that category in the list of categories that the post is "filed under" or "posted in" or whatever it's called. To make it clearer - I have a category X that I'm using to do stuff for the theme. The post is categorized in A, …
Category: Web

get_next_posts_link() returns no result despite available posts

I am developing a custom theme based on the Genesis framework. I want to display a 'previous post | next post' navigation below any article in the single post view. However, neither get_next_posts_link() nor get_previous_posts_link() return any value. All output I can see is | Of course, there are adjacent posts available. My code looks something like this single.php <?php function myslug_render_post_navigation(){ echo get_next_posts_link( __( 'Previous post' ) ) . ' | ' . get_previous_posts_link( __( 'Next post' ) ); …
Category: Web

Problem with WordPress query on page using custom fields

I have a website with the custom post type sammenligne, along with some custom fields made using Advanced Custom Fields (ACF). I have modified an archive site (archive-sammenligne.php) which displays the data the way I want it, however when I try to extract the data using a WP query on a page, I get no output. If I use the standard WordPress titles, I get output. I assume there is something with the link to the custom fields; but they …
Category: Web

Custom Blog Post Listing in Genesis Sample Child Theme

I want to add several images and divs and also customize the look of my Blog post listing... But i can't find the way to do it. Here's the Blog Template code <?php /* WARNING: This file is part of the core Genesis framework. DO NOT edit this file under any circumstances. Please do all modifications in the form of a child theme. */ /** * Template Name: Blog * This file handles blog post listings within a page. * …
Category: Web

Use custom template on custom post type

So I'm kinda stuck on something that I'm trying to achieve and unsure how to even target it, so below I will explain all that I have and what I have tried. So I'm using the Genesis Framework and a child theme. I'm trying not to touch the Framework or the child theme, and do all the development inside mu-plugins but I'm having trouble targeting a custom template. So I've created a custom post type that is linked as /profile/ …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.