Questions tagged [customization]

Modifications to theme and plugin files to create new functionality.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

Why custom page do not work all the time

i have a wordpress site that has a two custom pages. When you select a link to find store it takes you to a list of schools and than you select a class from a list. most of the products work but a few ...
0
votes
0answers
18 views

WordPress and Azure Directory

We have a WordPress website that is synced with our Azure company directory. This allows users to access this WordPress website with their Email and password SSO (single sign on). Instead of users ...
0
votes
1answer
28 views

Changing the the_author_posts_link() hover title

Is it possible to change the title="" attribute that Wordpress generates with the_author_posts_link() ? It is currently displaying 'Messages of [User]' as a hover title but I wish to change this to ...
0
votes
0answers
7 views

LayoutConstructor “Recent Posts”-like “Selected pages”

I use a theme which makes use of Thememakers LayoutConstructor plugIn. It's a modular system, making flexible layout construction possible. One of the modules allows, to place a teaser of your blog-...
0
votes
0answers
29 views

Dynamically populate Wordpress menu with custom taxonomy

I have a pretty long custom taxonomy and don't want to manually put it into my menu. Additionally I have to do it for 3 languages (using Polylang). Any ideas how it can be done dynamically?
1
vote
0answers
15 views

How to categorize posts under Category 1 and Category 2 which are separate lists of categories, and display them as separate lists in widgets

Background My site is about DIY and 'making' around the house (let's say). Current version 5.1.1 I use posts for the content on my site which isn't strictly in "blog" (chronological) format in that ...
1
vote
2answers
24 views

Show post page only if the user has bought a specific product

I'm having troubles with Woocommerce. I need to sell videos. I've created virtual products with a link to a different post for each (no download as I prefer to embed the video on my website and to use ...
1
vote
1answer
25 views

How to get rid of from overbooking car rental website [closed]

I have a car rent site where people can book a car for their needs. The problem is my vehicles are limited so after booking a car I want to immediately show an alert for the next 1 hour that it is ...
0
votes
0answers
15 views

Can I make a certain table appear based on conditional logic in a field?

So here is the situation. I am making a website that sells a certain service (don´t worry, nothing NSFW). Now I am given a following request: to make a page with a single field that asks for a ...
0
votes
0answers
6 views

I couldn't save the things I changed in customization

Hi everyone, I have an annoying issue on customize. So when I changed the menu, font, font size under the customize status, draft saved. But when I go back to the site to view, none of the changes are ...
1
vote
1answer
31 views

Can I differentiate between “Delete Post Permanently” and “Empty Trash” and do something for each accordingly?

I'm currently working on developing a plugin with a custom post type of "Dealer Location". (Not relevant to question, just a bit of background) When a post is in the trash and "delete permanently" is ...
0
votes
0answers
94 views

Password Protection issue

I am currently working with a client that has photo and video galleries which are password protected. The company throws monthly parties and at the parties they hand a card to everyone coming in the ...
0
votes
0answers
18 views

How to filter error message when requesting more product quantity than is available

I'm trying to filter the message that shows WooCommerce, when the product reservation is not allowed. The message that is displayed when you want to add in the cart more stock than is avaiblable. ...
0
votes
0answers
4 views

Different section/crop of the same picture is showing on different screens

I have a problem that I can't seem to find the solution for. I'm editing a webpage with Elementor. The webpage has a picture slide, and a different section/crop of a picture is showing on different ...
0
votes
2answers
28 views

how to display a specific wordpress menu?

Below is my code: wp_nav_menu( array( 'menu', _('My Custom Header Menu'), 'theme_location' => 'my_custom_location', ) ); And as result, I obtain all ...
0
votes
0answers
32 views

How to connect zapier and wordpress?

I have a site, where users can create accounts and store some data. What I try to reach is to allow users to connect their accounts to zapier, and pass data. In other words, allow a user to specify ...
0
votes
0answers
16 views

Comment input hiding when clicking on reply link

I am building a wordpress site. There I noticed when I click on 'Reply' link in wordpress comment section, the textarea for posting the comment hiding. I need to show both comment textarea and reply ...
1
vote
0answers
30 views

get search results from only specific page name in wordpress

I have created a page by using add_submenu_page: add_submenu_page( "pharma-plugin", // parent slug "All Trade Name", // page title "All Trade Name", // menu title "manage_options", // ...
0
votes
1answer
41 views

Add a custom intro page

I made an animation for an intro page with HTML, CSS,javascript and some images, it's all in one file, what do I need to do to, to display it first and then go to the regular template. I've already ...
1
vote
1answer
22 views

What will happen to the additional CSS when the theme is updated?

I have a premium theme installed and I need to add some custom CSS to add some new styles. So what will happen if I add the CSS to the additional css section in the customize? Will I lose them when ...
0
votes
1answer
26 views

Load my Inline js footer area

In WordPress we are used a editor that's name muffin builder. It's create dynamic google map script. I just put my Google Api key in this editor and apply it in my home page and its autonomic create a ...
0
votes
0answers
39 views

Custom Email based on User Role at Registration

I need to create a custom registration email for different roles that a user signs up to. Here's what I've done so far, a lot if it are copied as I'm still learning: /* * Plugin Name: Custom ...
0
votes
4answers
510 views

Cannot call function from Functions.php in template

I have a custom php file in wp-content/themes/xxxx/modules/custom.php and i want to call function from Functions.php. Right now all my functions (same function) everywhere in different files, because ...
0
votes
1answer
195 views

How can I capture Memberpress user info after signup

I'm currently working on a website where users can purchase subscriptions using memberpress, I want to capture the user data after the signup process is completed and the payment transaction is also ...
0
votes
0answers
32 views

Custom post status not working in REST API

I am trying to add a custom post status to my custom post types using thefollowing code: // Register new post status function my_custom_status_creation(){ register_post_status( 'approved', array( ...
2
votes
0answers
38 views

How to Replace Words with Hypertext Link But Ignore Previously Existed Links?

Auto-linking for "selected words" in the_content I am currently using the following code: function wp_affiliate_links($text){ $replace = array( '/ example /' => ' <a rel="nofollow" href="...
1
vote
1answer
22 views

My plugin wants to update another plugin

I am having issues when I view my installed plugin page, it's telling me there is a new version available. If I click the view version or view details links, it shows a completely different plugin ...
4
votes
1answer
273 views

Blocks: set a default value for a TextControl

I'm creating a block similar to the WP Core Table block, which first presents the user with a form to set the number of rows and columns. I'd like to set a default value in the TextControl for the ...
0
votes
1answer
28 views

How to have different background image based on post category

I have below piece of code in style.css file (website : https://askpuzzle.com) I am looking for option to have different background-image for different post/question category. .question-content-...
0
votes
2answers
268 views

How to order posts on each different category?

In wordpress, right now only on my main blog page, I managed to sort all posts with: <?php if ( is_active_sidebar( 'blog-category' ) ) : ?> <?php dynamic_sidebar( 'blog-...
1
vote
1answer
320 views

Display a selected custom product option in WooCommerce cart

I am using the code below to display a custom select field on WooCommerce single product pages: <?php $sizes = $product->get_attribute( 'size' ); $sizes = explode(", ",$sizes); ?> <?php ...
-1
votes
1answer
124 views

How to remove product attribute row woocommerce using code

I am trying to remove an attribute row in a product attribute tab using code. Woocommerce uses javascript to hide attribute row then uses ajax to save changes. I need this row to be disappeared and ...
0
votes
0answers
13 views

Listing variable products as individual products?

Is it possible to list variable products as individual products? If this is not clear. Same question but different phrase:- Split variable product into single products while listing it. Kinda hard to ...
1
vote
0answers
17 views

How can I use a Tiny MCE editor in my custom Gutenberg block?

I am building a custom block where I would like to use the Tiny MCE editor for content entry rather than the RichText component that ships with Gutenberg. I am making this choice because I can't see ...
0
votes
0answers
56 views

Move plugin upload folder from mywebsite.com/wp-content/uploads/pdfuploads to mywebsite.com/pdfs?

I'm currently using a plugin that generates a PDF for customers but the URL is way too long. For eg - https://www.mywebsite.com/wp-content/uploads/pdfuploads/666666.pdf. Here's the specific code from ...
0
votes
1answer
18 views

Set custom banner image size with wp_customize

I've set the banner image of my site to be customizable through appearance -> customize. I'd like to adjust the image size and crop aspect ratio of the customizer, as it's still set to a thumbnail ...
0
votes
0answers
14 views

Create slideshow from default gallery

I have a question. Is there any way, it does not matter if it' s code or plugin, to create slideshow from default Wordpress gallery. E.g. I am working on a website that has 5000+ articles. They' ve ...
0
votes
2answers
20 views

multible shortcodes (for differnt values) with one function

I am trying to create a function whicht has different shortcodes as output. I have the post-type => womos and the field => personenzahl. The field has the values 1 up to 7. Now I need a shortcode for ...
0
votes
0answers
38 views

REQUIRED: The theme uses the register_post_type() function, which is plugin-territory

I am developing a car rental theme, but I encountered a big problem, when I upload the theme I get the "REQUIRED: The theme uses the register_post_type() function, which is plugin-territory" the ...
0
votes
1answer
27 views

Exclude posts with specific metadata from search?

I have created this searchfunction that looks like this: function search_data_fetch() { $search_query = new WP_Query( array( 'posts_per_page' => -1, 's' => esc_attr( $_POST['keyword'] ), '...
0
votes
0answers
10 views

WooCommerce : Create email for custom status, appear in backoffice

I need to create an email which would be sent to customer when switching to a custom status. Does anyone know a good and updated tutorial to do this? Thank you :)
1
vote
1answer
21 views

trying to modify colormag-fr_FR.po

How can I modify a translation in colormag-fr_FR.po? In fact the translation of "breaking news" is "Récents" in french. I went in the above mentionned file and changed "Récent" for "A la Une". But ...
0
votes
1answer
54 views

Duplicated content with custom shortcode

Preamble In my functions.php file I added a custom shortcode. This shortcode takes a query as a parameter and queries the wordpress database. From there it takes the posts content and returns it. ...
0
votes
0answers
29 views

Visual Composer css styles only working on standard post page?

I'm trying to integrate Visual Composer with a WooCommerce Multivendor site to enable vendors to design landing pages for themselves. Everything works fine until I'm trying to show a page created by ...
0
votes
0answers
22 views

Integrating e-commerce solution to my own developed theme

So I have developed my very own theme in WordPress for the first time. It was not really that hard until my customer wanted to add an e-commerce solution integrated on the site. The goal is to make a ...
0
votes
0answers
18 views

Why does a custom php code inside a custom template not get executed?

So in order to have some php code executed inside a page on wordpress there are 2 ways. One of them is to create a page template and when creating the new page in wordpress set the Page Attribute to ...
1
vote
0answers
72 views

Query to get siblings and parent page

I would like to create a custom query ID (to use in Elementor) to get siblings pages of the current page + the parent page of the current page. For now I get only siblings pages (without the parent ...
0
votes
1answer
27 views

Where do I go to edit this area? [closed]

I need to edit the area shown in my photo. I am using a child theme. I am unable to ask the question to the theme's website as I don't have a proper subscription. I have tried looking at both the ...
0
votes
3answers
75 views

Featured Image not changing

Here is what the situation with my featured image. When I try to change the featured on my site. It doesn't change at all. Here is how I currently try to change the featured image on my page: I ...
1
vote
0answers
17 views

Always logged in even if remember me is unchecked?

I want to extend the login session so that I never ever get logged out. Even if Remember me is left unchecked. This is the code I have at the moment, but it doesn't seem to work with Remember me ...