Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (15)

0
votes
0answers
23 views

How can I create a sub menu for sections (customization page)? [duplicate]

For example, the submenu in this image would be Default Typography. I have a lot of colors the user can customize and I'd like to organize them a bit better with sub menus like title, footer, header, ...
0
votes
1answer
12 views

Create 2-layered dropdown menus for custom taxonomy and custom post type

I want to display one dropdown menu with a list of values for a custom taxonomy. My taxonomy is "issue-year" and the dropdown would look like this: <select name="issue-year"> <option ...
0
votes
1answer
26 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
22 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
13 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
16 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
18 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
28 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
20 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 ...
1
vote
1answer
13 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
25 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
24 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
67 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
6 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
83 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
35 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
77 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
38 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
16 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
27 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
2answers
48 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
22 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
28 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
18 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
33 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
20 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
57 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
42 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
35 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
102 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
19 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
23 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
28 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
34 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
40 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
21 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
35 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
30 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
53 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
27 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
33 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
44 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
77 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
17 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 ...