Themes create the public (front-end) interface for a WordPress site.
0
votes
0answers
54 views
Stepping into WordPress theme development [closed]
I am planning my summer in hopes to create my own WordPress themes. That said I am trying to do my homework and prepare for the task and I don't see any threads in regards to the idea of creating a ...
0
votes
0answers
32 views
Columnist Theme Front Page
I downloaded a theme, The Columnist Theme, which has a very specific design.
I assume that the front page has a template where I can dub over with my info, however I do not know where to access the ...
0
votes
1answer
32 views
Which hooks are essential for post templates?
Im in the process of building a very custom theme and Im beginning to work on the post templates, but I dont know which hooks are essential for them.
So like, I've seen (but cant remember where)some ...
2
votes
0answers
71 views
Custom Comments - Parent / Nested Reply
I am making a custom theme and have edited comments.php, but I'm unable to get the comments to save as a reply to another comment. I have succeeded in showing the comment parent id to show as a hidden ...
0
votes
0answers
41 views
Change default pagination style in wordpress
I am beginner in WordPress and started to learn it. I am designing a new child theme from an existing parent theme. The Pagination of Home page in parent
« Previous 1 2 3 Next »
But I ...
0
votes
0answers
33 views
WP_debug and Krumo [closed]
Using WP_debug to debug a theme and i'm getting strange errors at the bottom of the theme that isn't being triggered by anything in the theme, but the debug plugin it's self. What does that mean? Is ...
0
votes
3answers
51 views
Theme thumbnail in dashboard
I'm not sure whether this question belongs here but I don't know where else to ask it : do WordPress designers/developers usually create a dashboard theme thumbnail when they completed the WP theme ...
0
votes
3answers
105 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 ...
2
votes
0answers
82 views
Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
I am registering sidebars and sidebar widgets.
The theme currently supports two sidebars. Primary and Secondary.
add_action('widgets_init', array($this, 'add_sidebars'), 10, 2);
public function ...
2
votes
2answers
42 views
What is wrong with this code I have to make a blockquote shortcode
I have a shortcode for a blockquote [blockquote]this is the quote[/blockquote] ... this is the code.
function shortcode_shortcodetest( $atts, $content = null ) {
$return = '<div ...
5
votes
1answer
84 views
Why doesn't default Wordpress page view use force_balance_tags?
I noticed that the default WP theme uses force_balance_tags for listing posts' excerpts. This way, it doesn't cause major html breakage whenever someone writes a post like
<div><b>This is ...
0
votes
1answer
59 views
Custom image size doesn't work
I'm developing my own theme. I'm trying to remove the default WordPress image sizes medium, large and full. I also want my own image size, vividflow-full-width. I'm using this Sumtips tutorial.
At ...
3
votes
1answer
138 views
When to use esc_url, esc_html, esc_attr, and friends?
Discovered esc_url today while customizing an _s theme. I understand what the function does (sanitizes the URL inside), but what I'm unsure of is the scope of its use.
It makes sense to me that if ...
0
votes
1answer
48 views
Wordpress with broken paging page 3
I am working with a blog page that uses the following query:
<?php
$paged = (get_query_var("paged")) ? get_query_var("paged") : 1;
...
5
votes
3answers
280 views
Get 'page' number with infinite scroll
I added infinite scroll support of the Jetpack plugin to my own theme using this tutorial:
add_theme_support( 'infinite-scroll', array(
'container' => 'content',
'footer' => false,
...
0
votes
1answer
55 views
Retina ready for uploaded images which are cropped
I used the search but couldn't get the right answer for my issue.
I developped a theme, which on the portfolio template take the selected featured image of the different portfolio items and crop them ...
0
votes
1answer
120 views
Debugging an error: wp_enqueue_style was called incorrectly
I've just uploaded a new, custom theme to find that the container is a fraction of the intended width, and the sections below the home section(this is one single page, long site utilizing ids/anchors ...
2
votes
1answer
45 views
Editing Theme to apply Co-Authors Plus
I'm trying to implement the Co-Authors Plus Plugin. It says that you will need to change some PHP in the theme. The documentation outlines the changes.
I believe I have found where I would need to ...
0
votes
1answer
59 views
add_theme_page is not working
Newbie in wordpress coding. please tell how to create theme option pages.
function my_plugin_menu() {
add_theme_page('Theme Options', 'Theme Options', 'edit_theme_options', 'theme-option-slug' ...
0
votes
2answers
95 views
Are seven additional image sizes are too many?
I am developing a theme which uses different image sizes. So I will be adding 7 image sizes, are they too many? Could that break anything like the image size selector, other parts of the interface or ...
-1
votes
1answer
52 views
How do I line up my post titles in this grid? [closed]
hopefully you can help me. I think this problem is pretty simple.
I created a grid with 3 columns.
Each column retrieves and displays 3 posts from a different category.
My problem is 2 fold:
1 - ...
0
votes
2answers
35 views
Including Javascript options
For a Wordpress Theme I know javascript files (ending in .js) must be included using wp_enqueue_script in functions.php but how do I include additional javascript code, for example say I need to add ...
0
votes
1answer
86 views
Infinite scroll loads new posts several times
I've added infinite scroll support of the Jetpack plugin to my own theme with:
add_theme_support( 'infinite-scroll', array(
'container' => 'content',
'footer' => false,
'render' ...
1
vote
2answers
52 views
Edit the markup of categories list
I want to list x number of categories. I'm using wp_list_categories function, it generates the following markup
<li class="cat-item cat-item-1"><a ...
-1
votes
1answer
94 views
Override methods in Yoast SEO breadcrumb class
I've been trying to figure out if it is possible to override the output of the Yoast SEO breadcrumb class rather than editing the original file?
Each url segment is wrapped in ...
0
votes
1answer
34 views
Theme options not displaying correctly after theme update
I am redesigning a theme options panel but when I present to a client, the display is not exactly the same with the one I made. I investigate on this problem and it seems that he is actually seeing a ...
0
votes
1answer
30 views
Recommended sidebar / content widths
I'm developing my own theme. Does WordPress recommend or require a minimum or maximum when it comes to the width of the content or sidebar elements of an post, page or archive page? If not, are there ...
0
votes
1answer
77 views
Paginated WP_Query doesn't return 404's, even when posts don't exist
I'm currently building a theme for a client, and one of their requirements is endless scrolling on a "Charts" page. They want this to be paginated, and the endless scroll to load the next page below ...
0
votes
1answer
71 views
Settings API enable default settings on theme install?
I am still learning settings API so please forgive my noob question. I have three fields: a checkbox, colorpicker and text field (they are working), but I would like to do this:
when the theme is ...
2
votes
3answers
3k views
woocommerce shop page to use my custom template
Before asking the question I want to tell you that I have already asked the question in http://stackoverflow.com/questions/15025213/wordpress-woocommerce-template-file-overiding
I am using woocommerce ...
0
votes
1answer
91 views
WordPress Page Reload Takes forever during theme development
OK, I'm hacking my way through my first theme (while reading Prof. WP Design & Development 2nd Ed.) and ....
EVERY TIME I change -for example- a p tag or a div tag or a css rule, when I then go ...
0
votes
1answer
116 views
Weirdness in jQuery supplied with WordPress
I've got a problem with the jQuery supplied with WordPress. The following HTML exhibits this problem:
<!DOCTYPE html>
<html>
<head>
<script ...
0
votes
1answer
84 views
Set default screen option for appearance -> menus
Is it possible to have any control over the screen options for Appearance>Menus. I am working on a theme and with a fresh Wordpress install where I had never touched any of the screen options ( at ...
0
votes
2answers
131 views
My jQuery is enqueued properly. So why isn't it working?
I'm just trying to add a simple bit of Show/Hide jQuery to a child theme.
$(document).ready(function(){
$("#openbtn").click(function(){
$("#openingtimes").toggle(300);
});
});
I've saved the ...
1
vote
1answer
163 views
Primary navigation menu & footer not showing in category / tag page
I tried to find a solution for primary navigation not showing in some pages, ie. archive.php.
I found one from here but it's still giving me notices.
I'm using Reverie Theme in WordPress ...
1
vote
1answer
79 views
Import media to online WordPress from local development
I have a site being developed locally and I want to import the contents to an online installation. I used wordpress "import" but it cant get the media files. Is there any "wordpress" was of doing this ...
0
votes
0answers
17 views
wp insert attachment from local drive [duplicate]
Is there some way to upload images from local drive to posts without using dashboard.
Something like function wp_insert_attachment, bur for that function is a rule that files must be on server.
0
votes
3answers
46 views
Trying to display ads on only a third of posts in a loop. Keep getting Error 500?
I'm thinking it's just a PHP code error, but for some reason the following code won't work, it just keeps giving me Internal Server Error 500
<?php
$ajfl_adLuck = rand(1,3);
if ($ajfl_adLuck ...
0
votes
1answer
54 views
Theme Functions run a function upon activation or preview
My theme currently has the following line in the function.php file:
if ( $_GET['activated'] == 'true' || $_GET['preview'] == 1 ) If this statement is true the code runs a function.
I am getting a ...
1
vote
0answers
46 views
Keep sticky posts out of query unless they have featured image
I have a query running which prevents posts without various criteria from appearing, one of these is the necessity to have a featured image. Sticky posts however seem to end up in the query ...
0
votes
1answer
48 views
Theme Checker Text Domain
$output .= '<li class="recentcomments">' . sprintf(_x('%1$s %2$s - %3$s %4$s', 'thst'), get_avatar( $comment, 48 ), (...);
This is my line of code and Wordpress Theme Checker tells me "Text ...
0
votes
1answer
44 views
Display Today's date outside the loop?
Is there any way to display the Today's date outside any loop/post using WordPress date/time function instead of using the PHP date() function?
I'm using the PHP date() function but it does not ...
-1
votes
1answer
54 views
How can a 'scripts' directory be hooked into wp_head();?
So I'm trying to get my head round <?php wp_head(); ?>.
I understand that it loads in the stuff needed for plugins etc., but I'm using a theme that seems to be using it to load in scripts for ...
-1
votes
1answer
115 views
Setting different CSS for all pages except home.php
I'm creating my first WordPress theme and I'm new to PHP. I've done some looking around but I can't seem to find my specific answer.
In my header.php I want to include some conditional logic to set ...
0
votes
1answer
53 views
Do I need to include a textdomain if my theme doesn't support translation?
According to the codex
Themes are required to use theme-slug (or a reasonable facsimile) as textdomain for translation
Does this mean that my theme needs to include a textdomain even if my ...
0
votes
1answer
109 views
Add tinymce to widget textareas
I've got several custom widgets which are extended from WP_widget. Many of these have textarea fields. I'd like to be able to apply a special css class to certain of these textareas in order to ...
0
votes
1answer
115 views
Unable to pass variable on theme cusomizer add_settings()
I have theme options saved as serialized data. And I have named the option name by getting theme name.
$theme = wp_get_theme();
$settings = sanitize_title($theme).'-options'; // do not change!
But ...
0
votes
1answer
30 views
How to check if a certain theme option settings has already been set
I am using the following lines to check if the theme setting already exist or set but it's not working:
if (get_theme_mod('mysetting')==FALSE) {
Aside from get_theme_mod, how to really check if the ...
0
votes
1answer
118 views
Get author full name
I'm trying to display the first and last name of an author without having to change the "Display publicly as..." setting. Problem is, I can only seem to find solutions for either or, or at best ...
0
votes
2answers
1k views
Custom user profile, registration, login page with theme
WordPress user profile page uses the administration interface, and its user registration / login page is not part of the theme. I would like to
change it into the custom theme of my site
customize ...

