Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [customization]

Modifications to theme and plugin files to create new functionality.

-1
votes
0answers
7 views

custom homepage breaks the wordpress flow

i have a website, was custom made by a developer. Some how this homepage is breaking the normal wordpress functionality. For example im using woocommerce to display the store notice. but its no ...
1
vote
1answer
11 views

WooCommerce: Add extra custom tax/fee based on product category and country

I have a very specific question. In Belgium we need to add a BEBAT tax when you sell batteries. I'm now trying to figure out how I can tackle this. The code below works until a certain part so I hope ...
0
votes
1answer
16 views

How can I delete the word `Category:` from page titles? [duplicate]

If I installed a new WordPress with twentysixteen theme and went to uncategorized page, I will see at the title something like Category: Uncategorized how can I remove the category: word from pages ...
0
votes
1answer
29 views

Where in code to replace content before display of page?

I wish to make a replacement in all pages of a WordPress installation, after the page content has been read from the database and before it is displayed on visitor screen (of course). Where in the ...
0
votes
1answer
22 views

Custom roles and capabilities media not work right

Help with new user wordpress capabilities and roles custom. The media not work upload and display images in galery. image error: https://i.imgur.com/1bPbcAm.png code: if ( get_role('user_products')...
0
votes
1answer
30 views

How can I add category variable inside posts?

I want to add a category variable along with the date variable that post has been published. For example, when I go to a post, I see the following under the post title: last updated on May 10, 2019 ...
0
votes
1answer
25 views

Updating Custom WordPress User Meta Field via REST API

I have created an empty user meta field for a user called phone_number via the add_user_meta() function. When I use the get_user_meta function, I can see an empty string for the meta field which is ...
0
votes
0answers
18 views

Structure wordpress pages for magazine page: Categories vs. Tags

I am creating a wordpress page that serves as the online version of a magazine. In order to make the display and insertion of new issues as effortless as possible I am trying to wrap my head around ...
-1
votes
0answers
23 views

How to change paragraph font size for all posts in the website? [on hold]

I need to change the paragraph font for all posts on my website. Otherwise i need to change paragraph font from each post for each blocks. I surf solution but cannot find the real solution. The ...
0
votes
0answers
17 views

How to remove white border at the bottom of front page? [on hold]

Can anyone tell me how to remove the white border at the bottom of the front page? For whatever reason it only appears in the Chrome browser, not Firefox or Explore. Website: https://www.nyhedsregn.dk/...
0
votes
0answers
13 views

Save custom css class (and data) to core/columns block

I wish to add/change class for this div: <div class="wp-block-columns has-2-columns"> There is no possibly to use "wp.blocks.registerBlockStyle" because it doesn't work for core/columns blocks ...
0
votes
0answers
12 views

ninja forms spam protection input uppercase

I'm using Ninja form spam protection input field, where you choose an answer to your question. Does anybody know how you can force input to be uppercase? I've found a lot of code strings but none of ...
0
votes
1answer
11 views

How to include custom PHP file both in header and footer files

I have created a custom file that both the header and the footer needs to render certain content. If I only do include($_SERVER['DOCUMENT_ROOT'] . '/wp-content/themes/myTheme/myCustomFile.php'); in ...
0
votes
0answers
16 views

Is there a hook to add template overrides while the plugin is activated?

I have created a plugin that uses tribe_events_template() to add additional directories for the Modern Tribe plugin to look in for template overrides. The problem is that tribe_events_tempalte() is ...
0
votes
0answers
19 views

need help with a user-specific custom page template

I created a custom page template that will show sales from a hotel. I have 3 users and I want each user to only see their hotel sales on a user profile specific page. The template calls data using the ...
0
votes
0answers
26 views

Customize wp_login_form appearance

I embedded a login form in my websites header for not logged in users. I added it using this code in my navigation-top.php: <?php if ( is_user_logged_in() ) { ?> <?php } else { ?> ...
0
votes
0answers
10 views

Woocommerce custom search

I want to build a search form on the homepage where people can search by Product Name Product Category Price range I have found a few results, but a lot of them are filters which display products. ...
0
votes
0answers
18 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
1answer
20 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
23 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
11 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
14 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
24 views

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

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
14 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 ...
0
votes
0answers
71 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
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
26 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
11 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
26 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
29 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
20 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
2answers
29 views

How to automatically add a default or random image in the post? [on hold]

If it's technically possible, could you please help how can we add a default image when there is no image in the post. That default image should be aligned right. That default image or some random ...
0
votes
1answer
16 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
27 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 ...
-1
votes
0answers
21 views

Can't edit Home page on a Wordpress Industry Theme

I installed an Industry Theme on a wordpress site.I am new to WordPress so I was mostly guessing and testing the theme. Whenever I try to edit my home page, the editor is filled with lot of these ...
0
votes
3answers
56 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
23 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
22 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
37 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
votes
0answers
5 views

How can I custom edit the Owl Carousel plugin? [migrated]

I'm using the Understrap theme and installed the Owl Carousel plugin. I've loaded all my images but the plugin does not allow me to add text to display over the images. The plugin only gives you a ...
0
votes
1answer
18 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
28 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-...
0
votes
0answers
10 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
16 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
50 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
11 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
13 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
19 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 ...