Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (17)

0
votes
1answer
29 views

WP plugin calls for custom pages

I'm trying to create a custom landing page for my site. I am using wordpress because of the SEO plugins they offer. Mind you I'm not an expert so this might be an obvious question (please be gentle) ...
1
vote
1answer
28 views

How to add custom control to a page?

I want to add a simple control to a page that allows the user to change the background. Something like this: Since there could be any number of pages and colors I thought it would be best to do it ...
0
votes
0answers
20 views

Editing specific text on Custom Page Template

I'm a Wordpress beginner and made my first personal theme from a static html website. Currently I'm trying to edit specific text on for example the homepage. I did manage to changing background color ...
1
vote
1answer
26 views

How to customize core admin pages within a theme?

Say I'm building a WordPress theme, and when this theme is active I want to display customized versions of some admin pages. Let's suppose I want a custom "Widgets" page: I can find the template for ...
1
vote
1answer
22 views

Blog Posts in Custom Menu

I have a custom menu but would like to put specific posts on each one. for example: my menu consists of: cooking, beauty and style. How can i put all cooking posts on the cooking tab, and all beauty ...
1
vote
1answer
40 views

Search result page redirect ex.com/?s=searchterms to ex.com/searchterms

I want to redirect search result page to a static page like example.com/?s=searchterms to example.com/searchterms or example.com/?s=searchterms to example.com/searchterms.html Any possibility in ...
1
vote
1answer
22 views

How to customize a permalink (URL) structure?

i am using $post->guid to get the URL of an attached file to my post. the output is something like this: http://example.com/foo/ [where foo is the file name]. now i want to make a URL like http://...
1
vote
1answer
18 views

Is it possible to add a custom page to a free Wordpress site? [closed]

I'm trying to add a custom page to my Wordpress website. I found this link, which says that I need to add the template to the theme folder, but I have a free Wordpress website, so I don't have access ...
1
vote
1answer
28 views

Publishing html directly from ftp to wordpress

I have a program for a booking programme and within that is an "Update Website" button which originally would ftp the html created straight in place of the old one meaning once you click update ...
0
votes
2answers
31 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
241 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
225 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
57 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
253 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'); ...
2
votes
1answer
62 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
27 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 type=...
0
votes
0answers
18 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
31 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
77 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
29 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
36 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
22 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
46 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 relevant)....
0
votes
0answers
37 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
139 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
64 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
112 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
118 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
39 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
17 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
69 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
50 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 identity&...
0
votes
1answer
50 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, $post;...
0
votes
0answers
43 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
75 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 single-product....
0
votes
0answers
61 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
46 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
99 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
42 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
38 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
79 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
118 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
28 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 menu'...