Questions tagged [customization]

Modifications to theme and plugin files to create new functionality.

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

Wordpress Twenty Twenty theme change “Read more” text

I am new to all of this. I need to change the text of the Read more link, but i am not sure where the function which creates it is located. And even if i locate it how to change it. I have tried ...
0
votes
1answer
879 views

How to send email with wp_mail() with from email taken from contact form instead of the host?

I have set up SMTL like this, add_action( "phpmailer_init", "send_smtp_email" ); function send_smtp_email( $phpmailer ) { ini_set("sendmail_from","xyz@gmail.com"); ini_set("sendmail_path","xyz@gmail....
1
vote
1answer
20 views

How to pick the default selected value in wordpress dropdown?

First of I am pretty new to this so sorry if this has been asked before but I could not find the right answer for me. I have this dropdown on my website from compare-tech(.)fr I am trying to remove ...
0
votes
0answers
12 views

Header color changes on resize of Astra theme [closed]

Trying to help a friend who created divorce-cheap.com It’s a basic WordPress installation using Astra Elementor to build the structure. A full-page on a laptop or desktop – the header appears white. ...
1
vote
1answer
1k views

Auto delete Wordpress users according to time

On my WordPress site I require registration with email confirmation to help filter out spam users. How do I delete users that haven't activated their accounts by email automatically? Is it possible ...
1
vote
1answer
948 views

Get rid of title from static front page

I don't have an image logo header yet, rather, I'm just using one of my 'Pages' as my static front page. It's title is "Welcome" So now, 'Welcome" and links to it are appearing in three places: at ...
2
votes
2answers
1k views

Display custom post types by date field

I have a custom post type that is simply titles with a date field. I want to display these posts in a list in order of this date field (not date posted). So simply: -- Sample date Event title 1 ...
2
votes
1answer
702 views

Shortcode displays only default attribute values

For some reasons every shortcode, that I try to add to functions.php, displays only default attribute value and ignores what I specify in a post. E.g.: function my_shortcode( $atts ) { extract( ...
0
votes
1answer
985 views

Add a product attribute to permalink in WooCommerce

I have some products with Color attribute. how can I have something like this: http://example.com/shop/category-name/product-title-color/ What should I do make this kind of permalink in WooCommerce.
0
votes
1answer
34 views

Some questions about best practices for custom code

im really new to wordpress so it's currently hard to decide which approaches are better. I'm a developer and there are some wordpress principles im struggling with. What is the best way to implement ...
0
votes
2answers
29 views

Is it possible to replace PHP with NodeJS?

I started working with WordPress recently, because I don't have much familiarity with the PHP language, I would like to know if there is any way to program with NodeJS in WordPress.
0
votes
1answer
2k views

I can't add more pages to menu - menu delete pages

Two days ago I decided to add three more pages to the menu on my site. I already had like 140 pages in the menu, so this is something I know how to do. But I hadn't done it in some months, so maybe ...
0
votes
0answers
27 views

How to trigger different behavior in iFrame

I have a website in our company network from which I integrate content to other sites in our network via iframe. The source page can only be accessed with Login via SSO. However, I want to see that on ...
0
votes
1answer
2k views

How to submit form data in the same page in WordPress without reloading the page?

I have a custom PHP template - form. I'm trying to send this form in the same page using AJAX without reloading the page. Hide the form after submission and display the thank you message. This form is ...
0
votes
2answers
17 views

Static Page, need Last and Next links at the bottom

I am new here, I do not have a ton of experience with PHP but if I have a correct block I can work the different functions. I have a static page, currently, I have it set to display 5 snippets of ...
0
votes
0answers
19 views

When developing WordPress plugin, is it a good idea to create my class object by hooking to existing class constructor?

I want to create my object when another object is made. Is it a good idea to create my object by hooking to existing class constructor? for example if the main class is class WordPress_Class { /** ...
0
votes
2answers
2k views

creating a custom post template

I want to customize my individual posts. I have an example of what I'm trying to achieve below. Would I make a custom post template for this? If so how would I do this? Or should I add to my single....
2
votes
2answers
1k views

How to display custom field on homepage

I am new to custom fields thing. I am working on a movie review site. And wants to add movie story or plot field, I have successfully added the custom field named Story and its content is displaying ...
-1
votes
0answers
11 views

How to Receive and Process Paypal IPN on a WordPress Page

I have created a WordPress Page template(listener.php) and then created a WP page using that template.The Page url is like: mysite.com/thank-you. Here is the code i have place in the template(listener....
0
votes
1answer
11 views

Creating custom “player-objects”

I'm looking for a way to create "player-objects" that are then all displayed on one page. They should just contain a few text-datafields with the players name, role and an image. Since I'm very new to ...
0
votes
0answers
11 views

Move form validation error messages to top of page

When a user registers on our site (using Ultimate Member plugin, but I think it's a generic issue) and the form doesn't validate, it reloads the page with an error message right down the bottom, where ...
0
votes
0answers
10 views

I can't change my header logo somehow

Im starting of using wordpress.. I use the builder 'elementor' and a theme from 'astra. When I tried changing the logo (costumiser - header - site identity) it changed in the cosumiser but when I went ...
0
votes
0answers
4 views

Query custom post type by custom datetime field, later than field datetime value

I need to Query custom post type (esemeny) by custom datetime field,and show only later than posts that the meta value field datetime. My code working properly but i dont know how to add a Later than ...
1
vote
3answers
505 views

Auto login from custom registration form

I am trying to login a user from custom user registration form. My Code for Custom user Register is function register_user($data) { $userdata = array( 'user_login' => $data['...
1
vote
1answer
2k views

How to get the value of input hidden html from text editor to custom page template?

I have 10 or more input hidden in 10 or more pages with different values in Wordpress text editor and I want to get the value using $_POST in a custom page template. How to do this? I tried to called ...
1
vote
1answer
426 views

Creating loop within functions.php

I'm using Woocommerce on my website, on the checkout page I've got a custom select checkout field with radio buttons. I'm using this working snippet within my functions.php: /** * Add the field to ...
8
votes
5answers
19k views

Remove Categories / Tags From Admin Menu

I want to remove or hide Categories / Tags submenu under Posts in the Admin Menu. I know this works with the themes submenus: remove_submenu_page( 'themes.php', 'widgets.php' ); The same doesn't ...
0
votes
1answer
420 views

Display single post inside accordion based on form submission results

*Note - for full background see previous question here: http://bit.ly/1gaF673 Ok, so after fixing the problem above and a couple of issues that followed. My form submission returns the results I want....
0
votes
0answers
18 views

How to use same username account for multiple users?

I have an ecommerce where I need to use same username for differents customers. How can I do that? Thanks a lot!
0
votes
1answer
12 views

Custom CSS working on home page but not on NEW created PAGE

I have this WP website http://darius-mann.com/smardigo/ with a lot of custom css. Everything works fine at the home page. Which is the the last mentioned link. To finish the project I created the ...
0
votes
0answers
13 views

How to disable plugin capability : “create new category”

I tested that a capability can be disabled for any user role, but I found nothing to block the capability of a plugin. Is this possible? any help is greatly appreciated
0
votes
1answer
1k views

Remove all link title attributes

After reading this and this, I want to remove the title attribute from all links of my blog, as that is good from accessibility point of view. How this can be achieved? UPDATE I found a solution how ...
-1
votes
0answers
9 views

My personal home page

I am working on a personal homepage apt to reflect my personal interests in Christian theology, geopolitics, history, humanities, liberal learning, traditionalism, and Western Civilization. I am ...
3
votes
1answer
2k views

How to enable edit button in the theme's customize UI?

I saw on WordPress.com's theme customizer has this little blue (with a pencil icon in it) edit icon, they are SUPER user friendly! But seems default wordpress.org installation does not have it! Is ...
0
votes
0answers
32 views

Can we add an extra button on woocommerce shop page and use it to send the product info including image in a mail?

I want to add an extra button after "add to cart" It will open a form with only email field After submitting an email id, it will send product name, image, description to that email id Thanx in ...
2
votes
1answer
3k views

Woocommerce add to simple product attribute programmatically

i want to create a function which will add to specific products an attribute programmatically. i use the below code but it doesnt seem to work. $attributedata = Array( 'pa_color'=>Array( ...
1
vote
1answer
2k views

Duplicate Custom Post Type and Taxonomy Slug

I've seen a few questions that are very similar, but I haven't been able to get an exact answer, so I'm going to explain my situation here. Quite simply, I need the following url structure: site.com/...
2
votes
2answers
1k views

Customizing the default logout page of WordPress

What are the proper filter/hooks to modify the wp-login.php?action=logout confirmation page When you logout of your site using yoursite.com/wp-login.php?action=logout , You will go to a standard page ...
1
vote
1answer
999 views

Replace shortcode in substring

I've created these two functions to toggle between the first paragraph of the content and then everything but the first paragraph so when the user selects 'More' it slides out the article smoothly ...
-1
votes
0answers
20 views

How disable jumping page? [closed]

I want to disable jumping page and myself scroll to target because of jumping page is not smooth and doesn't consider header size
-1
votes
0answers
9 views

Pass Vendor ID to Payment Gateway

I want to extend a payment processor Gateway plugin. I need to pass additional Data. I am using WCFM plugin, and my payment Processor needs me to post them Vendor ID (Vendors User ID). How can I ...
0
votes
1answer
1k views

Url rewriting on custom post with CPT UI plugin

I checked all subjects in forum about this but i didn't found way to resolve my problem. sorry for my english, i'm french.. :) So.. i got a custom post listing ( with template listing pro ) there : ...
0
votes
0answers
9 views

Redirect to custom post if custom archive page has just one result?

So i have made a Custom Post Type called cars and 4 taxonomies that i use to make/edit the cars pages. I have a search&filter pro plug-in to help me sort my pages by the 4 taxonomies assigned. It ...
1
vote
1answer
500 views

Multiple Tinymce/wp_editor in WordPress >4.8

I'm struggling for two days and started here with success: Why Can't wp_editor Be Used in a Custom Widget? I managed to have multiple TMCE on one page (displayed by a widget); all save data ...
0
votes
1answer
17 views

Custom API plugin to execute 3rd party API to retrieve data

I am new to WordPress here. I have this request where I need to create a custom REST API plugin where when user triggers the following URL link: www.example.com/wp-json/v1/getCoupon/123456?CouponID=...
1
vote
1answer
21 views

Is there a way to dynamically get to your uploads folder?

I have a locally hosted site that uses bootstrap to create a carousel with pictures from the upload folder. I currently have the bootstrap markup using the source of the pictures, but I fear when I ...
0
votes
1answer
549 views

WordPress 404 Images - Images not found after deleted from media

I am trying to develop the website to find images that have been deleted from the media library as they were not needed. These Images that I have deleted have previously been on pages but have been ...
0
votes
2answers
24 views

Lightbox not showing image caption

I am using Jevelin theme and their Lightbox should showing image caption from alt attribute. Hovewer it doesn't works. Here is the link: https://www.coleopterafarm.cz/galerie-zlatohlavci/ I am ...
0
votes
1answer
2k views

Woocommerce Product Attribute Permalink doesn't work?

Normally, I can filter product by attribute via calling "mysite.com/shop/?filter_brand=tesla" However, when I tried to call it as "mysite.com/brand/tesla" but it doesn't work and show 404 not found. ...
0
votes
1answer
2k views

Creating post custom field text area

I want to make, I guess a custom field for my theme. I'm not sure is it the right way to do this with custom fields. I searched a lot, but could not find what I need. So I'm hoping that some one ...