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

learn more… | top users | synonyms

0
votes
0answers
16 views

Can compromised theme files lead to WordPress core files being modified?

I was recently given a website that had been hacked before I took over maintenance for it. There was a script injected to the top of every core WordPress and theme PHP file. The first step was to ...
0
votes
0answers
30 views

How To Add Memory?

I just installed wordpress on WAMP localhost win8. However at the very end of the Wordpress installation a little box popped up saying something about there being no disk space, which I regret not ...
0
votes
1answer
1k views

Custom theme won't use search.php

I have a custom searchform.php and search.php in my theme. However, when searching for something all I see is the front page (with mysite.com/?s=something in the adressbar). I use a filter to make ...
-4
votes
0answers
28 views

Use cases for modifying themes and plugins [on hold]

I'd like to make the leap from "implementer" to serious "developer" and would like some useful projects to work and learn on. It would be great if I could get a list of real use cases for modifying a ...
0
votes
2answers
992 views

How to add custom page elements to the WYSIWYG editor?

On a plugin-less Worpress installation the WYSIWYG editor allows to write a page down from top to bottom with style buttons (lists, font, italics, bold, add picture ...). What I am missing is the ...
1
vote
2answers
742 views

How to display future posts - modified query still yields 404

I have a very strange problem and I am stuck. I want the single page to display posts with the post_status of publish and future. So I added this code to my functions.php in my theme: function ...
0
votes
1answer
68 views

The post order is different for logged-in and non-logged-in users? [on hold]

I noticed that for some reason on my site, the post order changes depending on whether a user is logged in or not. When I am logged in as the admin, the posts display is chronological order. But when ...
0
votes
1answer
13 views

How do I use the add_query_arg function in a template tag like previous_post_link?

I am trying to change the output of the previous_post_link and the next_post_link and basically add a query argument to them. The documentation just mentions that you can use the %link placeholder ...
1
vote
3answers
153 views

Feature Survey - What would you want in a resume theme?

I've been toying with the idea of developing a custom resume/portfolio theme for some time ... but just haven't gotten around to it. Lately, though, I've fallen in love with a few new site designs ...
0
votes
1answer
23 views

Setting a fluid content width

I'm thinking about setting the content width theme feature in my theme's functions.php file using: if ( ! isset( $content_width ) ) { $content_width = 600; } My understanding is this will set ...
0
votes
1answer
22 views

Shortcode call not working in WP Template

I'm working with a Visual Composer shortcode to call a text resizer into being. When using the Visual Composer or the classic WYSIWYG, if I insert it's shortcode [enlarge_text small='A' ...
1
vote
0answers
41 views

What is better way to use Bootstrap inside admin panel?

I need to use Bootstrap CSS for better UI in wp-admin but if I enqueue the bootstrap.css, it's affecting the admin default UI by changing background colors, etc. How can I use bootstrap.css inside wp-...
0
votes
0answers
211 views

How to call function in functions.php in external file inside same theme?

I'm trying to develop a theme by my self. In my theme, I have a function inside functions.php and a php file named ajax.php. I was trying to call a function inside functions.php in ajax.php, but it ...
0
votes
1answer
503 views

get_option() returning empty

I'm building a settings page for a theme and the get_option() that I'm using to retrieve the settings returns only string(0) "" even though there is a checkbox field. What I want is to retrieve the ...
0
votes
3answers
3k views

How to remove dashicons.min.css from frontend?

Is there any way to remove the dashicons.min.css file from the frontend? I know that they are used by the admin panel, but my theme doesn't use them so it's an unnecessary request.
-1
votes
1answer
506 views

Theme now uses require.js and enqueue script no longer works

I created a small custom script that fixes a sidebar at different point depending on if there is a banner. I used enqueue script in my child functions file and then a custom.js file with my ...
0
votes
1answer
420 views

Add new panel inside parent panel in WP Customize?

Is possible, add a panel within another panel. example: First Panel > child Panel > Section > First Setting ... Second Panel > Section > First Setting ...
2
votes
2answers
2k views

Get category slug and display it on a query_post

I just read "How to create option page for wordpress theme" in wp.tutsplus.com - I have a problem with getting categories . there is two parts to my question - Part A - Get category slug and ...
0
votes
1answer
26 views

tiny_mce_before_init: 'exact' => true has no effect

For a custom theme, the editors want to be able to select three different font sizes in the post editor. I thought about using a standard font size plus defining two extra classes: <p class="...
6
votes
3answers
11k views

Get first image in a post

I am using this code directly from the codex. function echo_first_image ($postID) { $args = array( 'numberposts' => 1, 'order'=> 'ASC', 'post_mime_type' =>...
1
vote
2answers
81 views

Unhook action from child theme

I have decided to use a WooCommerce Storefront child theme called Galleria, when I have previously used the Storefront theme I have used the common remove_action to unhook the defaults and replaced ...
0
votes
1answer
2k views

How do I implement jPanelMenu?

I have serious problems trying to implement jPanelMenu to the theme I'm building. The theme is nearly finished, I'm just trying to figure out this menu and I can finally start using it. Anyways, if ...
0
votes
0answers
12 views

How to deal with payed libraries per user when selling a wordpress blog [closed]

This might not be the best place to ask for a question regarding licenses and payings, but I'm sure is the one in which most people had to deal with this issue when building themes or components for ...
0
votes
1answer
2k views

How to make Isotope and Wordpress work together?

I am trying to make my Wordpress theme using Isotope plugin. http://isotope.metafizzy.co/ So far, I have such a result after doing that was suggested: I believe that Isotope Masonry should not ...
4
votes
1answer
254 views

Is the theme customizer slowing down my site?

I have built an awesome theme, which is very flexible, because it has 500 settings in the theme customizer. I generate the live css like it says in the codex: function mytheme_customize_css() { ?&...
48
votes
6answers
10k views

Where to put my code: plugin or functions.php?

Is there an easy to understand scheme to decide what kind of code belongs to a plugin or the theme’s functions.php? There are many cases and many debates about that topic, mostly because there are ...
0
votes
0answers
19 views

In a Gallery with limited image posts, how do I not limit images on single post?

I created a function for a theme that limits the amount of images displayed in a gallery. This is within the Gallery post format. However, I want to limit gallery images on all pages except for the ...
2
votes
2answers
871 views

How to Use WordPress Color Picker API in Custom Post Type Metabox

I have a Custom Post Type called "Banner" which has a custom Meta box with two advanced fields "Title" (text Field) and "Color" (color Picker). Can you please let me know how to use the WP Color ...
3
votes
2answers
37 views

In theme development, are there functions which write HTML in a standard fashion to reduce “spaghetti code”?

For example, if I'm building a list in a plugin that loops over an array to produce a list ul or ol. I typically see code as follows. foreach($list as $item) { $output .= '<li>' . $item['...
-1
votes
1answer
34 views

Why functions metaboxes is causing White Screen in Admin [closed]

I am having an issue after migrating a project to other server. When I go to /wp-admin I am getting a 'White Screen of Death'. If I access to /wp-login.php instead I get the login form but with an ...
1
vote
1answer
81 views

Load a page into a div with Ajax

I'm really a noob when it comes to Wordpress, right now I'm working on a theme that basically is all static, if you want to edit something you'll have to edit the .php file than rather doing it on the ...
0
votes
1answer
22 views

Make page accessible from another URL

I have the following fictitious URL which returns a page: www.test.co.uk/park/leisure-village/overview/ Is it possible to make the following URL www.test.co.uk/park/leisure-village/, also display ...
5
votes
4answers
11k views

theme path in javascript file

I need to include the path to my theme file within a javascript file. How would I go about this? I have already tried: var templateUrl = "<?php get_stylesheet_directory_uri(); ?>"; function ...
0
votes
3answers
54 views

Can a new theme cause permanent damage?

I am low on tech skills and I have hired a developer to make a new theme for a wordpress site. He is requesting ftp access to the theme directory for final touches on the theme. Is there any ...
0
votes
1answer
919 views

Add content after get_header

I'd like to add content directly after the div#main (end of header.php) and before /div#main (beginning of footer.php). I'm using an own child-template (of twentythirteen), that contains only style....
4
votes
2answers
96 views

Custom attribute for the title tag with wp_title()

Can i add the itemprop to the title element and still use wp_head() and add_theme_support( "title-tag" )? I want to create a theme and get it approved on wordpres.org which uses microdata. The ...
-1
votes
0answers
25 views

How to create wordpress child theme for mobile only

I create my own theme for specific website. I want to create a child theme that take a part only for mobile (under 768px screen width) users. Ho can I do that?
-2
votes
1answer
25 views
0
votes
2answers
2k views

Conditional tags issue for multiple is_page() conditions in sidebar.php

I've been pulling my hair out today trying to get this right. Basically I have a sidebar, which makes requests to individual files (such as sidebar-home.php, sidebar-residential.php) and different ...
0
votes
2answers
1k views

Magnific Popup - Add Caption to Images

My theme uses Magnific Popup as follows in theme.js /* add lightbox for blog galleries */ $(".gallery a[href$='.jpg'],.gallery a[href$='.jpeg'],.featured-item a[href$='.jpeg'],.featured-item a[...
0
votes
1answer
29 views

Is there a way to optionally hide the title bar when logged in?

When I'm creating a theme and I'm logged in, there is a wp admin bar that runs across the top of the page. This is helpful for normal use but it makes it hard to see what I'm working on when I'm ...
0
votes
0answers
38 views

Numbered List works on localhost but not online [closed]

I have the same styles.css on my localhost and website, but the ol (numbered list) is not working on my website online. ol { list-style: decimal; list-style-position: inside; padding: 0 0 ...
1
vote
2answers
854 views

WP Customize refresh problem

Hi I am adding options to WP Customize. Mostly everything works, but One of my variable is not refreshed in the preview window. $wp_customize->add_setting('checkbox', array( 'capability' =...
0
votes
3answers
421 views

Custom meta box in custom post type not working

As a wordpress newbie I am having problems in adding custom meta box in my "slider" custom post type which I used in some old wp theme. I'm getting a warning: Warning: call_user_func() expects ...
0
votes
0answers
19 views

admin-ajax.php 404 not found [on hold]

I'm trying to edit theme color , when i press save and publish button it shows the error as in the picture , any possible solution ?
2
votes
1answer
30 views

Change setting name in Customizer and keep the data

I created a theme while back when I was new to Customizer API and for some weird reasons I named theme settings as: $wp_customize->add_setting('thefunk_theme_options[header_color] Instead of just ...
0
votes
4answers
567 views

Allow different <span> tags in widget titles

How can I make widget titles allow HTML? I want to add icons from an iconfont to the titles like <span class="icon-someicon">Widget Title Here</span> I tried the following but it does ...