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

learn more… | top users | synonyms

1
vote
1answer
9 views

Skt full width basic slideshow problem

Background: I am making a photography website and thought that skt full width is a good theme for the landing page. It worked out all right. Then I started to get fancy. I wanted my client to be able ...
0
votes
0answers
7 views

Undefined Index in Theme Options

With debug on, saving my custom Theme Options page is throwing up the following error: Notice: Undefined index: class in {directory}/theme-options-init.php on line 445 Warning: Cannot modify header ...
0
votes
0answers
5 views

Wp_customize_image_control Use Add Media

Is there a way to use the Add Media in the wp_customize_image_control for Theme Customizations? The default image_control is very bare bones and only allows uploading of an image. There's no selection ...
0
votes
1answer
20 views

Confused by the behaviour of “front page” / “home” templates

I stumbled upon a confusing issue while trying to customize the appearance of the front page of my blog (blog.example.com) without changing the behaviour of the other blog posts index pages ...
1
vote
0answers
15 views

Theme elements not translating

Ive got a theme that is set-up for translating but didn't come with any translations. I used poedit to automatically detect the strings, and subsequently translated it in full. However certain ...
0
votes
0answers
20 views

Wordpress Adding Lines to my Theme Files

Has anyone else noticed that sometimes, after uploading a theme, when you download it or edit it via Wordpress there are line breaks in between every line? For instance: 1 First line 2 Second line ...
0
votes
0answers
13 views

How to add a custom HTML attribute to a parent element of wp_nav_menu?

I am using wp_nav_menu and I want to add a custom attribute that I need for uikit drop down component (data-uk-dropdown attribute) This is how the HTML should look like: <ul class="uk-navbar-nav ...
0
votes
2answers
24 views

What is the best way mark entries as featured?

In quite a few wordpress projects I have a request in which Projects (or other post type) have to be featured in the Portfolio page (or other listing page) instead of the default date sorting lists. ...
0
votes
0answers
8 views

how can I remove author box, category and tags section in TopNews theme? [on hold]

I bought a theme TopNews on themeforest (Demo: http://www.mvpthemes.com/topnews/) in the single post, I want to remove Author box, Category, and tags section (Image in bellow) dear everyone, how ...
0
votes
0answers
8 views

Widget code for showing Opening hours without using plug-in [closed]

I'm learning develope wordpress theme and I want to create my own widget to show opening hours for my template as image below. Can you advice for my issue? Thank everyone.
0
votes
0answers
14 views

Wordpress login error [closed]

Working on a web when all of a sudden the error message appeared. Parse error: syntax error, unexpected end of file in ...
0
votes
0answers
8 views

How to enable certain screen options on particular page page

In my screen options i have 5 different options, they are 1) Camp schedule 2) Services 3) Map 4) Address 5) Opinion form I want to enable/check these options on certain particular page not ...
0
votes
0answers
9 views

Avoid wp-load.php within a PHP/CSS file? [duplicate]

There was a similar question already but it uses ajax, and I am not. I want to have dynamic css in my theme, but I can't get the WP functions to work in my php/css file. In my functions.php file, I ...
1
vote
0answers
25 views

How Can I setup WP CLI on Windows development machine running AMPPS?

I want to setup WP CLI. On the home page it says that it needs a UNIX like operating system. I am running windows 7 for development but I could probably setup a virtual Ubuntu box or something. Would ...
0
votes
1answer
23 views

variable created in page.php is null inside of header.php

Ok, so i'm instantiating a class in page.php. Then i'm calling get_header() to include header.php now in header.php i need to access this class object and execute one of its methods but i get this ...
1
vote
1answer
38 views

Having Problem On Getting WP Post Gallery Images URL

I need to get the URL (actual Size) of all images of gallery associated with a post in single.php. The following code from Codex returns all images in very small size 150x150 which is not suitable for ...
0
votes
0answers
10 views

Issue on Getting WP Gallery Items In cpt-single.php As Attachments

Having a "Custom Post Type" called Projects I am trying to get actual URL of images added into Post Gallery and list them in class other than WordPress built in .gallery. This is the code which I ...
0
votes
1answer
42 views

Remove h1 from 2015 theme

I'm a Wordpress newbie! I have two h1 when I list my site categories using a URL of the following format: http://www.example.com/category/YYY I get a HTML page with a header of Category: ...
0
votes
1answer
19 views

How would I get this to work - send to post from thick box

I have the following javascript which talks to about 6 elements. The first three open a thickbox for media upload and what not upon clicking on a specified button, the last three target the input ...
1
vote
2answers
76 views

Converting HTML Template to Wordpress Theme

While I was trying to convert a Static HTML page to Wordpress Theme , I had an issue . the page Doesn't run properly After Checking Google Chrome Console it turns that it loads the CSS file with the ...
0
votes
1answer
33 views

Subdirectory install error

I'm seeing the error the theme directory "twentyfifteen" does not exist for the twentyfifteen theme after trying a WordPress subdirectory install for the first time. I can access the admin ...
0
votes
0answers
17 views

Data not saved Wordpress Custom Admin Page

I try to create an option page for a Wordpress theme. I manage to create the page, the Metaboxes , but when I send the form, the data are not saved. Before I show you my code , I specify that I use a ...
0
votes
1answer
30 views

Searching post types

Is it possible to take a user input from a search form, use that to search a custom post type via the WP_Query class and then redirect the user to a page template to display the results? For example, ...
0
votes
1answer
23 views

add_editor_style not working

I created a style sheet editor-style.css I want to load this css file using add_editor_style() function, In my functions.php function my_theme_add_editor_styles() { add_editor_style( ...
0
votes
1answer
28 views

Displaying a custom post types custom taxonomy value?

I've got a custom post type with multiple custom taxonomies + metaboxes. I've used multiple approaches from the codex and other on line resources but none seem to work. I basically want to display the ...
0
votes
1answer
18 views

How can I detect a chosen Isotope layout option from within Javascript to generate appropriate layout?

I am trying to make a custom gallery post where a user may select Isotope layout modes (masonry, packery etc.). I don't want to create a custom template for each layout mode and then get it depending ...
0
votes
0answers
32 views

Add “post option” support parameter in custom post type using Hueman Theme?

I created a custom post type and I want to add "post option" in my custom post type where in I would be able to select if I would include a sidebar or not, a layout option. I would like to ask if what ...
0
votes
1answer
12 views

Never actually adding the action? Or do I have to call the action?

I have the following class that is instantiated in the function.php file. In the constructor I am setting up a activation and a deactivation hook for the theme. How ever neither seem to be called when ...
1
vote
1answer
50 views

“Cheatin’ uh?” error message on multple theme directories

In my wp-config.php I've added another theme directory; register_theme_directory( dirname( __FILE__ ) . '\..\themes' );. I'm not sure if this is the correct place to add it. When I then try to ...
0
votes
1answer
55 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 ...
0
votes
0answers
15 views

Safe way to echo wp_trim_words

Is this unsafe to echo as following in the theme? $excerpt = get_the_excerpt(); $trimmed_excerpt = wp_trim_words( $excerpt, 30); echo $trimmed_excerpt; If yes, please let me know what is the safe ...
5
votes
2answers
256 views

Should I create a theme or a plugin?

I'm working on a pro bono project to try to learn WordPress. I've been provided with a rough design (see screenshot below) and I'm struggling trying to think of how to approach the issue. My main ...
0
votes
0answers
38 views

how to pass variable of shortcode of wp to javascript

I have create a shortcode of google map in my theme. whole code is below. function google_map_view_scripts() { wp_enqueue_script( 'googlemap', get_template_directory_uri() . ...
0
votes
0answers
27 views

The 'default' attribute from $wp_customize->add_setting() method not in db?

At theme customization, the values from the 'default' attributes, which I added when calling the add_seting() method within the functions.php, are properly filled in. They are not filled into the db ...
0
votes
2answers
42 views

How to Display CPT Posts on index Page

I have created Custom Post type called "Natural Food" and displays the Post of this CPT Under Natural Food Menu, my index page also contains some post, as well as i want to display "Natural ...
0
votes
0answers
23 views

Add button in “Manage Themes Page” or change default link “customize”

I'd like to redirect to another URL the "Customize" button of current theme, or hide that one (I could do it with display:none) and add a custom button. (the blue button in the image). I googled it ...
-1
votes
0answers
18 views

Dynamically insert Settings API fields

I'm developing a WordPress theme aimed at clubs and organizations. It contains a 'facebook' part which consists of a list of all the club's members' names associated with their respective pictures. ...
1
vote
0answers
31 views

Override a theme function in a child theme?

Most if not all of the answers to this question are pretty old, or are for edge cases. I have a child theme for a commercial theme ("Total"). The parent theme's functions.php loads functions from ...
0
votes
0answers
23 views

Displaying Page Title on index.php

I have my posts page set as index.php, and on there I have my main heading (as I do on all pages). I'm having trouble displaying the page's heading however. The page is called 'Blog' in WordPress, ...
0
votes
2answers
47 views

Only the latest post shows up on post page?

disclaimer: this is my first foray into wordpress I'm creating a custom theme and in the single.php file, i have the main loop, however if i navigate to different posts, all that shows up is the ...
0
votes
2answers
55 views

Pagination not working on custom post page

I have created custom post type called natural food In my page-natural-food.php <div class="main container"> <div class="content left"> <?php ...
0
votes
1answer
79 views

current-menu-item class not working

current-menu-item class not working for particular menu in my theme, My css code is .mainNav ul li a { color: #686868; font-size: 14px; height: 38px; line-height: 38px; display: inline-block; ...
1
vote
1answer
68 views

Theme Options page not showing up in admin menu

I'm currently developing a WordPress theme and would like it to have a preferences pane in order to specify the user's Google Analytics tracking code for example. Following the instructions I got on ...
0
votes
0answers
29 views

Video Background Replacing Full-width image background

I have a client who would like to change their current theme so it can use video backgrounds instead of full-width image backgrounds. I thought the easiest way to accomplish this would be by using ...
1
vote
0answers
27 views

Overwrite Parent Theme add_image_size in Child Theme

I'm using a child theme of a parent theme. Now on my parent theme, theveloper adds some custom image sizes like this - if ( function_exists( 'add_image_size' ) ) { add_image_size( ...
0
votes
1answer
25 views

Get all Custom Post Types

I am creating a WP theme with a built in custom post type (and I am using WPAlchemy to add a couple of custom metaboxes). $theme_custom_metabox = new WPAlchemy_MetaBox( array( 'id' => ...
0
votes
2answers
47 views

Show different website layout if no sidebar added

I have a question about website layout with and without wp widges in sidebar. Here is the code i have for my registered sidebar. <?php if ( !function_exists('dynamic_sidebar') || ...
0
votes
0answers
37 views

Fully editable footer

I'm making a theme from scratch and I want to add a footer with editable stuff like copyright / social network / About author excerpt / some link. I looked around on google but I find answer who say ...
0
votes
1answer
36 views

Filter URL and shortcodes from the_excerpt

I just noticed a weird behavior on a theme I'm working on. If I have a post with just one link or shortcode, the_excerpt will print that URL or shortcode. But if I have some text in the post, below or ...
0
votes
1answer
17 views

Changes to template not showing up unless ?reset=1 added to URL

As title states, I added something to a template file: echo '<img src="'. get_site_url() . '/wp-content/themes/enfold/images/leverage.png" />'; But on firefox and IE, the addition won't show ...