Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (15)

0
votes
2answers
27 views

Media Upload not working after hiding some elements from functions.php

I have put the below code in functions.php. (It's used to hide some options from client.) But the problem is, after adding these codes, images are not uploading, can't even even uploaded photos from ...
5
votes
2answers
187 views

Add custom html to last sub-menu item

I'm adding a custom menu to my wordpress theme. I need to add custom html to the final submenu item - before the primary sub-menu closes </ul> I have registered my new menu //functions.php ...
1
vote
0answers
9 views

Navigation label for page in custom theme

In Appearance -> Menus, one can change a page´s navigation label. The label is what shows in the menus. However, i´m using a theme with a custom menu, always showing the full page´s title in the menu. ...
2
votes
1answer
161 views

Add CSS animation as Preloader to WordPress

I found a CSS animation snippet on Codepen, and would like to add it in my WordPress site for preloader animation, but I couldn't find any related help or plugin that would allow me to add a Preloader ...
0
votes
1answer
52 views

How to redirect WooCommerce shop URL?

Is there any way to redirect WooCommerce default 'http://website.com/shop/' URL to 'http://website.com/shop/all/'? After a long research found this : How does Wordpress redirect to WooCommerce shop ...
4
votes
1answer
189 views

How to remove Profile Picture section or the message “You can change your profile picture on Gravatar.”

How to remove profile picture section from WordPress admin panel or the link "You can change your profile picture on Gravatar." add_action('admin_footer-profile.php', 'remove_profile_fields'); ...
1
vote
1answer
55 views

Landing / Static HTML page

I want to use static HTML for a landing page on a WordPress site. For example: example.com - WordPress already running in root folder landingPage.example.com - I purchased this static landing page ...
0
votes
0answers
21 views

Custom wordpress form with get method

I try to setup custom wordpress from its probably easy but... I made template and inserted this code: <form action="" method="GET"> <label>NAME:</label> <input ...
0
votes
0answers
15 views

Customize the header's image change on hover

-I am using the Twenty Twelve theme if that matters- What I try to do is add a custom field on Customization Menu where I will be able to pick the image I want in order to replace the header image ...
-1
votes
1answer
29 views

How do I add functionality to images?

How would I add functions to images? I host a photography site, in which I'd like to add options to favorite an image or attach it to a product for ordering. Is there a hook or something that I can ...
0
votes
1answer
63 views

Centering one product on a single page [closed]

I have one minor issue that I cannot resolve and that is being able to center a single product on a page. I have managed to research this site and others and been able to center the text however I ...
1
vote
0answers
27 views

non-hierarchical post type with hierarchical url structure

I want the url for my custom post type to be like : "example.com/parent-custom-post/child-custom-post/grandchild-custom-post/" without setting the hierarchical(for custom post type) to true. I heard ...
0
votes
2answers
33 views

Add Member's birthdate from Backend and shows it on frontside [closed]

I want to add functionality like Add member record with birthrate and as per the current date it shows on page. Ex : Add record - [name] [birth_date] [position] And on the front page we can shows ...
0
votes
1answer
20 views

How to use a WP_Customize_Control outside of the Customizer?

I have a few custom WP_Customize_Control classes that are shown within the standard WordPress Customizer area. These are working fine. Is it possible to pull some of these out of the customizer and ...
0
votes
0answers
17 views

Limit registration to predetermined addresses on multisite

I would like to limit the people who can create a blog on my multisite. I have a product that will come with a subdomain name for them to enter to create their blog. I don't want anyone else except ...
-1
votes
1answer
30 views

Best way to modify theme

I have to custom differents pages of my theme like archive.php or single.php, I want added my code without lost these in future update of theme. It is possible ?
0
votes
0answers
39 views

Wordpress Admin custom error notice

I followed some advice around here in order to display custom error notices after clicking the update button in the admin area (here it is related to a custom post type, i don't know if it's ...
0
votes
0answers
31 views

How to get WordPress to accept the <style> tag in articles (or other alternatives)

WordPress (i.e. TinyMCE) automatically strips the tag from articles in newer version. This means, you can only rely on inline CSS which makes the code ugly for more complex styling options and is ...
1
vote
0answers
119 views

Custom Navigation build using wp_nav_menu and walker

What I have Right now I have an old template in plain HTML. In there I use a custom Navigation menu built like this: <div class="collapse navbar-collapse main-menu main-menu-1" id="main-menu"> ...
0
votes
1answer
54 views

Remove link from page title

How can I remove the link from the page title in my WordPress theme? Here's the link to my test site and below is the code responsible for that: <h1 class='post-title <?php echo $titleClass; ...
0
votes
1answer
80 views

same template for multiple custom post type single

I know we could use single-custom-post.php But i have multiple custom post type like america nepal norway i can do single-america.php , single-nepal.php , single-norway. But they almost have same ...
0
votes
3answers
113 views

Static text above category page

I'm trying to add some static (welcome) text above my post excerpts, for which the posts page has been set up to display a category, in this case News. Link I've tried entering the following: ...
0
votes
1answer
37 views

same archive template for different custom post

Suppose i have registered five custom post type like this america china nepal norway chile And to template the archive i should use like this inside theme folder isn't it? archive-america.php ...
3
votes
1answer
20 views

Custom theme sufficient or custom plugin neccessary for this feature set?

I plan some sort of an event website. There are organisations, which can host zero, one or multiple events. Events are never published on their own. Events will be published as 'inline' snippets only, ...
0
votes
1answer
16 views

How can you control what a user is allowed to post in the backend?

Let's say when a user makes a post, rather than having them able to enter just anything into the Post Title input box, can I change that to be a dropdown with specific predetermined items? I've never ...
1
vote
1answer
49 views

Unable to sanitize in customizer and escape in theme without removing ability for user to use “< br >” to insert a line break

I have been unable to figure out how I can properly sanitize (in the customizer) and escape (in the theme, while allowing the user to use "<" and ">" to insert a '< br >' and add a line break ...
0
votes
0answers
41 views

How to add 'Site Identity' capabilities to customisation for editors

I was able to give most capabilities to editors for the Customisation. However I'm lacking the Site Identity capability. I found this thread How to change in customizer the "site ...
0
votes
1answer
43 views

Accept HTML in custom function

I have a custom field for a WordPress page to display a subtitle. How do I get the following function to accept HTML code such as elements? function cms_page_sub_title(){ global $cms_meta, ...
0
votes
0answers
42 views

Show posts in numeric price order using meta query combining 2 meta keys

I've built a custom estate agency website for a client but I'm stuck on this one last thing before it's good to launch. I'm using custom meta fields to allow for additional meta data such as Price, ...
0
votes
2answers
43 views

Using single.php from plugin folder instead of default template folder

I am trying to figure out how to use another single.php for a custom plugin I'm making. It's for a custom post type. Because if people install this plugin, they won't have the custom ...
0
votes
0answers
46 views

mysql_query() not works in new wordpress version

in my wordpress template, we using some new tables, and we fetchs this using mysql_query() functions from same database, but after wordpress upgrading these shows error, Is this is not possible in new ...
0
votes
1answer
41 views

Add styles with wp_add_inline_style only if modifications exist wp_add_inline_style

I am building a theme that lets users make modifications to their WP site through Customizer. I use wp_add_inline_style to output css changes based on user input. Right now inline styles are added to ...
0
votes
2answers
83 views

Theme file structure best practice

I'm building a custom theme and want to have an organized file structure. Is there a standard best practice? I looked at the file structure of popular starter themes and they all use different ...
0
votes
0answers
35 views

wp query custom orderby not custom field

I am working on a products archive page where I show 20 products on each page with pagination. Each product's price is calculated by a formule which gets his parameters by data saved in the database. ...
0
votes
1answer
34 views

Undefined index: custom_sidebars

I am implementing custom sidebars on a theme I am developing. Everything works fine when I add new custom sidebars. However, when if I remove these new added custom sidebars I get the error Undefined ...
0
votes
1answer
65 views

Add data-id attribute to child page links

The should be simple but I just can't figure it out nor find an answer. I need to add a data-id attribute to the <li> parent container of the respective child page <a> links. The HTML is ...
0
votes
0answers
8 views

Default widget for custom theme [duplicate]

I'm Currently developing some themes, in this theme, I need to make default widget, so when user activate my theme, the widget is automatically activated in the sidebar. I know I just can place the ...
0
votes
1answer
78 views

Custom Post Type

I have the following code that brings in 3 posts or project posts; But I'd like it to show only posts form the current post category; <?php get_header(); ?> <article class="post"> ...
0
votes
1answer
19 views

Is there a way to easily manage Project options (custom-fields)

Im currently rocking the Fluxus theme on a website for a client of mine. The theme offers project options (custom fields) where you could add in information about your artwork. As my client has ...
0
votes
0answers
83 views

Empty Woocommerce Shop page Cart

I need to clean/remove/empty my cart from items added on the shop and single product page. This is not on the cart page. This cart counter is added with this code under functions.php: <?php ...
0
votes
1answer
26 views

How to edit plugin's html? [closed]

Hello Dear Wordpress Developers, I'm using Awesome Sticky Header by DevCanyon plugin on my website. I want to edit this plugin's html. Because with plugin's settings only thing that I can add is ...
2
votes
1answer
35 views

Modifying loop on a custom page, strange behaviour

I want to setup a custom page on my site that pulls in posts from only one category. I've taken my main blog page template, duplicated the file and assigned it as a template to my new page. I've then ...
0
votes
0answers
20 views

Custom options for WordPress sidebars

I am curious if it is possible to add custom options for each sidebar on the widgets page. Something like this (the part with the "Mobile" option): I'm having trouble finding a hook or action that ...
0
votes
0answers
32 views

Add Postbox for Featured Image Caption in wp-admin/post-new.php

I'm newbie here. I want to add postbox / meta box in my wp-admin/post-new.php page. Someone please help me. Last days i have try to search it in any tutorial, but i cannt solve it. I try to modify ...
0
votes
0answers
8 views

How to show only certain Level depths in Custom Post Attributes

I have created a custom post type named Notes. And there are many pages having childrens, grand childrens , grand grand childrens. Now whenever i try to add new grand children in Page Attributes i See ...
0
votes
0answers
10 views

WordPress Custom Widget Media Upload

OK I am not a programmer and after reading lots of tutorials I have managed to make one custom widget that just works with texts. Now in this code of mine I want to make a media uploader. Can anybody ...
5
votes
1answer
70 views

.maintenance and maintenance.php also in multisite install?

I would like to customize the standard maintenance page which gets shown during plugin updates. For single sites the process is clear to me. Putting a maintenance.php into /wp-content. But how does ...
0
votes
1answer
40 views

get_the_term_list without specific category

I am using : $term_link = get_the_term_list($post->ID, 'portfolio_category', '', '<br />', ''); to get the category and link to it. There is any way to get all category despite specific ...
1
vote
0answers
62 views

polylang + category/tag custom language link

under wordpress user can define url part for categories/tags, e.g., page.com/category/some-cat where category is user defined string part. Is there a way to define "category" (same goes for tags) for ...
1
vote
0answers
62 views

Filtering *out* a taxonomy from the admin post list

I've got a custom post type 'Speakers' that, after some time, are added to a custom 'archive' taxonomy so that they can be sorted into different sections of the site. I'd like a way to hide any ...