Questions tagged [customization]

Modifications to theme and plugin files to create new functionality.

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

Theme customisation - how to store common variables externally

I have been developing a custom extension for my theme over the last few weeks. This is my first time "developing" with Wordpress. All works fine and I am happy with the resulting functionality, ...
0
votes
0answers
14 views

Custom shortcode sorted by meta date shows only current year and displays other language in date

I have this snippet in my functions.php. I thought it worked, but I noticed that it shows events only from this year (I have more events that are next year) and also, I can't get the date format to ...
0
votes
0answers
43 views

Custom Drop Down in TinyMce in Elementor

I'm using elementor and added text in drop down,"Span", but its not working i want to know how to add functionality such that it will also work like "Heading 1,2,3,4.." are working. I added "Span" ...
0
votes
0answers
30 views

WooCommerce: Change price of variations with specific stock quantity

I'm trying to make my variable products more expensive when they fall under a certain quantity. Something like a reverse-discount. I found out how to change the price and a way to get an array of the ...
0
votes
0answers
13 views

Multi-page site via Wordpress custom theme

Is it possible to display multi-page content via WP custom themes? By WP custom themes i mean a wordpress theme manually created by splitting my Html into .php files and then uploading them directly ...
0
votes
0answers
24 views

How to hide subcategory posts in main category [duplicate]

I want to show in my Taxonomy only posts which are in Main Category and Subcategories links - but i need to hide posts which are in Subcategories in main category. Do you know how can i do it? This ...
0
votes
1answer
38 views

Make Widget appear on Dashboard

I recently created a widget in my functions.php with following code : register_sidebar( array( 'name' => __( 'Informations importantes', 'twentynineteen' ), 'id' ...
0
votes
0answers
13 views

Create a custom role to can access only a custom api endpoint to fetch data

I have a small external app which is communicating with a wordpress custom REST API endpoint, in the meaning is requesting some data aggregation from web but will never push back data to wordpress DB. ...
0
votes
0answers
17 views

Change the navigation items on mobile menu on custom theme

Im working on a website previously created by an agency, they used their own theme, but I am looking to move the mobile view menu items, so that Find Help Now, and the language settings are at the top ...
0
votes
0answers
18 views

Adding an extra checkbox to product attributes

I have a few product attributes. I would like to add a checkbox there, with name "Display on product list". If this checkbox is checked, then this product attribute should display on front-end, on ...
0
votes
1answer
27 views

How do I remove a customiser option from a parent theme in a child theme?

Let's say there is a theme that you like but you want to make some changes. You make a child-theme. At least you do if you follow good advice. So now you have a child theme. You are happy with it and ...
0
votes
0answers
19 views

How to create a custom search form to filter data organized in tabs?

Considering that I have an Excel table that represents my "DB", I need to implement a custom search form that: retrieves data from the table, using some filters, and shows short results; opens a tab ...
1
vote
2answers
124 views

Turn off redirect to canonical domain (or host website on any hostname)

I want to have various development (say dev.example.com) and staging environments of a WordPress multisite (example.com). For this it would be great if WordPress wouldn't redirect to what it considers ...
0
votes
1answer
194 views

How to disable automated E-Mail on PHP error/exception?

Since WordPress 5.2 there is an automated E-Mail on PHP exceptions. In some smaller projects I just upload the files for new extensions while developing - whenever an error occurs then, the site admin ...
0
votes
0answers
14 views

i tried to change custom permalink on subdirectory blog, but blog homepage automatically display root homepage content

i tried to change custom permalink on subdirectory blog, but blog homepage automatically display root homepage content, please help if anybody know the issues.. For example I have domain - https://...
0
votes
0answers
34 views

Cannot replace header & footer using “the_content”

It replace everything except header & footer. I've tried different priority for this function but it doesn't seem to work. I think the_content is only for content and not header/footer, but after ...
0
votes
1answer
106 views

Remove POST_TYPE from custom post type permalink

I have a post type named services with the following permalink DOMAIN/services/investing/ (Single Page Permalink). I want the permalink to be changed like DOMAIN/investing/. I don't want the ...
0
votes
0answers
11 views

Replace the Dashboard help link with an external link?

In the right top corner of the dashboard there is a Help button, this opens a small frame on the current page showing Wordpress help. Is it possible to disable this, and instead use this icon to link ...
0
votes
0answers
22 views

How should I design subcategory login site?

I am trying to design a specific type of site and would like someone to point me in the right direction. main home page with list of public subsites (categories i think). Also a form to become a ...
0
votes
0answers
20 views

How to make the videos in loop and auto play

I am trying to make all front-page videos in loop and autoplay I am using divi theme, I know it will be done by adding loop and autoplay tags in the video tag but how to do it where is that module ...
0
votes
0answers
15 views

How do I change the button text color on my header?

So I'm looking at my header in Wordpress and I noticed the header button text color is stuck on black. I don't know any way to change this since I'm very new to wordpress; and any other answers I ...
0
votes
0answers
13 views

Change social navigation menu default icons with customized icons (twentyseventeen theme)

I'm taking the first steps as a self-taught in the wordpress world. My problem is the following: modify the icons that the "Twentyseventeen" theme assigns by default in the social media menu. I ...
0
votes
1answer
46 views

How to clean up the theme for production?

Is there some automated way to generate a dist/production version of the theme without all of the hidden .git, IDE directories and the config files, node_modules? WARNING: .babelrc .git .gitignore ....
-1
votes
1answer
23 views

How to create a shortcode with HTML code in it and custom parameters/

I want to create a shortcode for putting newsletter opt-in boxes in my posts and pages. But depending on the page or post, I want to have different headline and description for the opt-in box. I ...
0
votes
1answer
34 views

Insert menu with a custom walker into page / post body using shortcode?

I'm trying to add a menu using a custom walker class into a page or post body and settled on using a shortcode. I don't have to use a shortcode, but I do have to embed the menu into the central ...
0
votes
0answers
23 views

Suggestion to buid a site with wordpress

What would you use to accomplish this site structure? members can upload their photos. first page will show members photo (only one photo). only paid members can upload and have photos visible/shown. ...
0
votes
0answers
22 views

delete images phisicaly as well

When I delete a media image in the media library, the file in the uploads repository is not removed, only in database so when I upload a similar I got : my-image1.png my-image1-1.png my-image1-2.png ....
1
vote
1answer
44 views

How do you modify the WordPress directory structure?

I would like to use the following directory structure for WordPress. ├── composer.json ├── config │ ├── application.php │ └── environments │ ├── development.php │ ├── staging.php │ ...
0
votes
2answers
45 views

Issue calling my functions on Plugin activate in Wordpress

I am Creating New Wordpress Plugin and splitting my code into different files for code management. Here is code of my main Plugin file which my-best-plugin.phpwith following code: <?php if ( !...
0
votes
2answers
33 views

Need help transforming echo to return for use with shortcode

I'm not so good at coding but managed to write a little piece of code to have a shortcode to display a co-authors (co-authors plus plugin) bio/description in posts. The code I came up with is <?...
1
vote
2answers
18 views

Trouble creating conditional PHP for nav menu items with children for custom Walker

I'm trying to create a nav menu with a clickable dropdown function but minimize scripting at the same time, so I found out a way to achieve this with an invisible input box and CSS. My only problem is ...
0
votes
0answers
9 views

How can I add plugins submenu at the toolbar on different roles in wordpress?

I want to add a menu at the toolbar of the backend wordpress but the problem is there is submenu on that plugin and also roles in it.
0
votes
0answers
16 views

Target specific position for custom content

I have needed to display custom content (a post of a specific category) in a specific place inside a page. I know how to create custom hook to target the desired location, but since I'm generating ...
0
votes
0answers
25 views

Delete posts at a specific time of day

my site uses custom posts for events. The event post is deleted daily on the day of the event. I would like to slightly alter the deletion of the events to be the day of the event but in the evening. ...
0
votes
0answers
13 views

Create a simple customer choice page?

I need to create my own website with a special page where the customer can choose the building materials for a house, everything has to be visual, so the customer can select the type or color of the ...
0
votes
0answers
10 views

Search bar looks different in different pages

I have a website: cygnusi.com. The search bar in the Discussion page looks different from the search bar in the Projects and Members page. How do I fix this? PS yes, I use bbpress and buddypress
0
votes
3answers
58 views

Word Press Theme Customiser and Child theme Function.php

I've cast a pretty wide net to find an answer but nothing seems to quite hit the mark. Process:: I Login to my site/dashboard and I decide I need to edit a portion of my theme through the customiser, ...
0
votes
0answers
20 views

Paid Membership Pro Approvals

I'm currently developing a membership site using paid memberships pro along with woocommerce subscriptions. I would like the option to approve or deny memberships, which is why I have opted for pmpro ...
0
votes
0answers
26 views

How do i create a Varation add to cart button

Im using Yith Memberships premium plugin for Wordpress and Woocommerce, I have created 3 Woocommerce products. Each product i created within Woocommerce is configured with yith Memberships. ...
-1
votes
1answer
35 views

Best way of deletion of old posts [closed]

I have a few sites that I wish to slim down. The sites have been active for a long time and there is really old post data that is no longer relevant. I wish to delete those (older then 3 years) and ...
0
votes
1answer
42 views

Wordpress Security tools

Hi fellow wordpress developers or Web Masters. I would like to ask what are the tools you are using to secure your wordpress websites? Also, what are you ways to prevent wordpress plugin vulnerability ...
0
votes
0answers
24 views

Add custom taxonomy slug to URL of Custom Post Type

I have a Custom Post Type named "blog", and a Custom Taxonomy named "area" (both setup using the CPT UI plugin). I have also used below code to add the taxonomy slug in the url, so that standard WP ...
0
votes
1answer
28 views

URL issue after setting up Custom Structure in Settings >> Permalinks

I've tried to Google this but to no avail. I'm a newbie at programming but I can say I'm adept at configuring WP - pretty please, please bear with me. :) I have a CUSTOM_TAXONOMY that when viewed, ...
0
votes
0answers
23 views

Remove Domain Mapping

To give you an idea about my experience with Wordpress...its none. I've got a wordpress site from a client of mine to manage. I have years of experience with websites so I'm confident I can do this. ...
0
votes
1answer
69 views

Replace featured image when shortcode is present

For my portfolio page, I want for certain items to display a video instead of just a still image for it's featured image. I have using a plugin to play the video on hover called upon by a shortcode. ...
0
votes
1answer
34 views

How to assign a default/priority taxonomy to be shown in url in case two taxonomy items are selected

I have a custom taxonomy (ex. taxonomyfoo) created with CPT UI plugin and assigned this taxonomy to the standard wp post. I have also used below code to add the taxonomy slug in the url (%taxonomyfoo%...
0
votes
1answer
31 views

Templates without a loop, best practice?

I'm working with a custom theme that someone else created, and it's becoming obvious the author(s) were not familiar with WordPress. I'm doing cleanup and I'm just finding all sorts of bad things. ...
0
votes
0answers
10 views

Woocommerce cart product save for user

By default, woocommerce save products at cart by browser basis. But I want to make, When users will be logged in and have cart products then products will be saved for that user. And when he will ...
0
votes
1answer
24 views

Shortcode to insert default text and change one word throughout it?

A beginner developer here, working on my first project. I've been trying to find some guidance on how to create a plugin or function to create a specific shortcode. Let's say I have two default ...
0
votes
0answers
13 views

Limit the number of times a user can book an appointment in Timetable Schedule

I'm building a gym website using Gym X theme. For appointments, it uses the Timetable Responsive Schedule plugin. I want a user to be able to book only a limited number of times per month (based on ...