Themes create the public (front-end) interface for a WordPress site.

learn more… | top users | synonyms

0
votes
0answers
6 views

How do I get a parent theme modification from a child theme?

I've built a child theme, and I would like to reuse some of the settings created by the parent. I hoped this would be as easy as get_theme_mod( 'setting' ) inside the child theme, but that returns ...
0
votes
1answer
19 views

Blog styling in SASS

Every so often I get a request like this: "Build a site using WordPress as the CMS [easy...]. Oh and we'll have a standard looking blog thrown in. No need to worry about styling, the default look ...
0
votes
1answer
23 views

Protecting work on client's web host

I am taking on a freelance job making modifications to a client's already existing website/Wordpress theme. What is the best way to work on the client's current web host without putting myself at risk ...
0
votes
1answer
14 views

get_page_template returning nothing

I run this code in front-page.php as well in category-foo.php <?php echo is_page_template( 'front-page.php' ) ? "yes" : "no" ?> and get both times "no" printed i tried as well <?php ...
0
votes
0answers
13 views

Theme files encoded/converted to random numbers and letters. Is it possible to fix it?

I've been working on this theme for a few months now, locally, and today, I opened up the project and some files were "encoded" into random letters and numbers. Not all of the files, just a few, but ...
0
votes
0answers
5 views

My customizer's setting doesn't set to the default and needed to click the control's “Default” button before it'll be set

Here's my sample customizer's setting and control: $wp_customize->add_setting( 'themename_img', array( 'type' => 'theme_mod', 'default' => ...
0
votes
1answer
21 views

License of the used Bootstrap Theme is not GPL compatible

I have made theme using material design html & css https://github.com/FezVrasta/bootstrap-material-design. But my theme is no getting approve because License of the used Bootstrap Theme is not GPL ...
0
votes
0answers
8 views

Coding color opacity options in theme options admin panel

I wanted to give the user the ability to change the opacity of a navigation menu background color from the theme options admin panel. I have already been able to achieve giving the user a color ...
1
vote
1answer
22 views

How can my theme allow users to take advantage of advanced html tags in posts

Not sure how to phrase this question. Let me paint a simple Wordpress setup for single.php: <div id="container"> <?php the_content(); ?> </div> But what if, inside ...
0
votes
2answers
55 views

Custom taxonomy page template

I'm working on my own wordpress theme for the first time. I registered a new post type with custom taxonomy, but I can't display the posts by terms. I duplicated the archive.php and renamed it to ...
0
votes
0answers
9 views

wpmail in conditional statement in theme template

I am using a theme which uses PostRelations to create courses, lessons and plans. A plan can be set for a certain period such as a month, year etc. The plan expires when this period is over. I am ...
0
votes
0answers
7 views

Menu for Showing the Children of 2nd Level Menu Items on 2nd & 3rd Level Pages

The title may be confusing, but please follow along. I have a 3-tier menu. There are the parents (1st tier), and some have children (2nd tier), and some of those children have children (3rd tier). I ...
0
votes
0answers
11 views

Building URLs with Custom Post Type

Here is my current dilemna. I have created two custom post types, Verticals and Products. The Products information is fed into the Verticals and there is an interior nav with anchor links that ...
0
votes
0answers
4 views

Save the outputted image into the Media Library, with a different filename and extension

For example, I have this "/image.php" file in my "/theme-directory": header ('Content-Type: image/png'); $im = @imagecreatetruecolor(120, 20) or die('Cannot Initialize new GD image stream'); ...
0
votes
2answers
41 views

Getting Permalink within the loop

I have a (Roots/Sage-based) theme with a home.php template override and on that page am displaying excerpts and featured image for each post. <?php while (have_posts()) : the_post(); ?> ...
0
votes
1answer
13 views

Featured Image Module Randomly Disappears

I've been running into an odd problem on our WP blog that has me befuddled. I custom built the theme we use and I enabled Featured Images by adding the following line to the beginning of the ...
0
votes
1answer
38 views

Replaceing _custom_background_cb

I'm making a theme where I'm adding support for the custom background feature with this standar function: // fig. 1 <?php function custom_theme_support() { ...
0
votes
0answers
21 views

How to assign navigation menu to certain location with Settings API?

Using the code below, one can assign a menu with id $term_id_of_menu to 'primary-menu' location. $locations = get_theme_mod('nav_menu_locations'); $locations['primary-menu'] = $term_id_of_menu; ...
0
votes
1answer
18 views

Best strategy for providing theme options using customizer

I am making a free distributable theme and I wish I could provide theme options in the best possible way. I have doubts (mostly about widgets) and sidebars. Here we go: Is it a good idea letting the ...
1
vote
0answers
13 views

Pull request in Wordpress repository?

I have to translate a theme adding translation files (.mo and .po). After it, I would like to contribute adding such translation to the theme repository. Is there any kind of pull request in ...
0
votes
1answer
30 views

There's an image named g.gif somewhere in my WordPress site

I am looking for this pixel which appears full width in my mobile site, so I want to remove it. Image URL: ...
0
votes
0answers
25 views

Best practice: What belongs in theme and what in plugin for large eCommerce website

I am about to create a large custom eCommerce website that does not fit within WooCommerce. (Most of the times I use WooCommerce for eCommerce.) It has also a completely custom design. However I know ...
0
votes
1answer
38 views

How to organize functions.php content

When building custom themes, I often add my own functions inside functions.php: <?php function my_function() { // Do something... } Should I organize all my custom functions ...
-1
votes
0answers
8 views

How to create custom ajax registration form for wordpress? [closed]

Requirement : I want to username password retype password email state/country birthdate: month/date/year submit then it is agree with private policy and agree with terms of use the user must agree ...
-1
votes
0answers
20 views

Custom animation coding on my theme [on hold]

I'm developing a site for a client and want to adjust the level of animation on the intro page welcome elements. Here's the site in development: http://o8c.co.uk/red-star/ There is some animation ...
-3
votes
0answers
23 views

Updated: Encountered two errors

I'm creating my own theme. The problem is I'm getting these error: Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the ...
0
votes
0answers
26 views

use add_action('wp_head') in a widget for generating dynamic CSS styles

I have been working on a 'Custom Pop Links' widget for use in a theme which is ready for distribution. User can change the color of a link using a color picker inside widget. Untill now, I used inline ...
1
vote
1answer
22 views

Make custom CSS changes and use built in theme customizer later?

Our company hired an outside developer to make changes to our WordPress header and theme colors. After he made the changes, we attempted to update the logo and change the header menu font color by ...
0
votes
0answers
14 views

Sorting CPTs with multiple taxonomies

I'm currently rebuilding my company's website as a WordPress site, and I've hit a bit of a snag. Background: I work for an FMO that supports independent insurance agents, and on our current website ...
0
votes
1answer
44 views

Sort and paginate custom post taxonomies alphabetically

I need to sort and paginate custom taxonomy post types. i have a page where i have next and previous link. on clicking next and previous link next or previous brand(custom taxonomy) should load. I ...
0
votes
0answers
12 views

Use URI to query database and display info in main page

I am sorry if this question has been asked before, but I haven't been able to find a potential solution to my problem. I developed a custom plugin, which has a custom table (very simple, 4 fields, ...
4
votes
3answers
150 views

Using Docker for WordPress development

I am getting started with Docker and I'm still new to professional WordPress development practices. I would like to set up a Docker development environment (on my Mac) so that I can do custom ...
0
votes
0answers
15 views

Displaying post form catagory saved in array

I am using option tree framework plugin.In my option, the catagory id is saved in array. The var_dump is as follows $tmq_social_items = ot_get_option( 'tmq_social_items' ); ...
0
votes
0answers
33 views

Add a sidebar for menu item?

I want to modify the WordPress navigation menu. I have added a custom checkbox in the menu items custommenu. If that is enabled, then I want to remove the submenu items for that item and include a ...
0
votes
1answer
24 views

Taxonomy-$taxonomy-$term not working

This question might seem very simple, but I cannot find a proper answer for it. In my example I should have multiple pages that should display 'FAQ'. For that I have added custom taxonomy page_type ...
0
votes
1answer
20 views

Having Issue on Getting Metabox Checkbox Value

I have a Custom Post Type with two Metabox attached as: $offerPrice = isset( $productValuesl['offer_box'] ) ? esc_attr( $productValuesl['offer_box'][0] ) : ''; $offer = isset( ...
0
votes
0answers
12 views

Wordpress select adding an extra post

I have this script that is supposed to pull all of the posts with the same category id as the page titles name. So if the page titles name is "non-profit" it pulls all the posts with the category ...
0
votes
1answer
23 views

Wordpress Custom Search By Alphabet and order by asc and sesc

I am new to word-press but i can easily work on core php and other mvc framework,acutally i want to add custom search for only subcategory post. The search will with below Search post By old to new ...
0
votes
1answer
105 views

Custom entity search and display

I am developing a custom plugin that adds a new product entity with its own tables to the database. I would like to perform custom queries on those products through a custom search form -the classic ...
0
votes
0answers
30 views

Category Page showing all posts

I created a menu for my categories. (Some links have sub menus). I added this to the top of my index.php page <?php wp_nav_menu(array('theme_location' => 'lib-menu', 'container_class' => ...
0
votes
1answer
6 views

get_theme_mod returning no output

I can't work out why this isn't displaying anything. The option appears in the appearance - customise menu, I input my settings and display using:- <?php get_theme_mod( 'twitter' ); ?> <?php ...
0
votes
0answers
11 views

is it possible to get update link of a theme or plug-in?

I have a custom theme that I developed. I would like to show a admin notice to user who can manage wp. via function cyn_admin_notice(){ $info['last_update'] = ...
0
votes
0answers
19 views

Problem with get-pages and custom template

I build a one page wordpress theme and i use get-pages to load all pages in front-pages.php , but i can't load pages with custom Template . this is my code in front-page.php $pages = ...
0
votes
1answer
25 views

get_pages can't load pages with custom post types

I built a one page theme and I use get_pages() to load all pages in front-pages.php, but I can't load pages with a custom post type. This is my code in front-pages.php: $pages = get_pages( array( ...
0
votes
0answers
24 views

Best way to access variables in template markup

I am making my own mini OOP wrapper for working with wordpress themes. I have a main $settings variable that contains all of the information like definitions, scripts, menus etc.. I then pass this ...
4
votes
1answer
77 views

Getting instance variable in scope of 'wp_enqueue_scripts'

I need a little help getting my head around passing instance variable to a hook. I am reading the CSS files I need in my template dynamically and storing them in a $settings object that I am keeping ...
0
votes
1answer
22 views

wp_nav_menu work in functions.php but not in the theme

I use wp_nav_menu with this code in functions.php: register_nav_menus( array( 'sidebar_menu' => 'Sidebar menu', 'topmenu' => 'topmenu', ) ); $args = array( 'theme_location' => ...
-2
votes
1answer
40 views

Should I create a child theme for a parent custom theme? [closed]

I am going to create a mobile version of a desktop theme. Device Theme Switcher plugin will use a correct theme based on the client device. The desktop theme is a custom theme. So should I create a ...
0
votes
1answer
23 views

Showing ads in the specific category and its sub-categories

I would like in each category and sub-category of its own ads to be displayed. I used the in_category function but not displayed Advertising in sub-categories. Please advice.
0
votes
1answer
24 views

CSS preprocessor file messed up after compiled

I'm using LESS for WordPress theme development, but I have a bit of problem that after compiled CSS file mess up. Like this: LESS body { color: white; background-color: black; } CSS body ...