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

learn more… | top users | synonyms

-2
votes
1answer
25 views

Getting error on function.php

<?php define('TEMPPATH',get_bloginfo('stylesheet_directory')); define('IMAGES',TEMPPATH."/images"); add_theme_support('nav_menus'); if(function_exists('register_nav_menus')) { ...
-4
votes
1answer
52 views

Isotope overlapping .items because of featured images - HELP! [closed]

I need urgent help as I'm having a nightmare with Isotope. All was working well through my desktop server but once live, Isotope items are overlapping (see http://www.skinsave.co.uk/30-2/) How can I ...
0
votes
0answers
27 views

How can I add pagination to my loop? [duplicate]

That's my current loop: <main id="main"> <?php // the query $args = array('posts_per_page' => 10 ); $the_query = new WP_Query( $args ); ?> ...
2
votes
3answers
42 views

Wordpress loop specific thumbnail size

That's my loop: <main id="main"> <?php // the query $args = array('posts_per_page' => 10 ); $the_query = new WP_Query( $args ); ?> <?php if ( $the_query-...
6
votes
4answers
290 views

What WP folder can I use to write files to?

I am working on a theme that uses dynamic in head CSS and gives admin an option to also place the same in a file. Problem is that I am not sure what WP folder is always writable. I originally added ...
1
vote
1answer
30 views

Single Theme folder for Multiple Wordpress

I ran into a scenario where I want to achieve this. WordPress Site 1 WordPress Site 2 WordPress Site 3 WordPress Site 4 I want theses four sites to have a single theme folder and it get themes and ...
1
vote
2answers
132 views

Fatal error: Maximum execution time of 60 seconds exceeded in H:\wamp\www\custom\wp-includes\class-wp-http-curl.php

I imported the Theme Unit Test xml file with the wordpress importer. But all of the data is imported as pages. I am following an online tutorial to build a wordpress theme development and I believe ...
0
votes
1answer
46 views

Change single.php template based on parent category

I have the following code working but with split() being depreciated and not available in php 7, I need some help. The idea here is this code is inserted in my single.php (in child theme). When a ...
1
vote
1answer
22 views

Custom category code not showing all posts

I have a PHP template I am applying to several pages on my site so that they show a list of all posts in a category with the same name as the page. However, this is not working correctly in that posts ...
-5
votes
2answers
42 views

Is there any open source WordPress Themes?

I am a WordPress Plugin Developer. But I need to create two custom WordPress themes for a client (Client will sell those themes). It is hard me to start WordPress theme development from scratch. So ...
0
votes
0answers
44 views

Issues with title-tag and document_title_parts

Wordpress version 4.5.1 I'm trying to dynamically update page titles on a particular template. After lots of digging and learning about the wp_title() changes, I'm attempting to use ...
0
votes
0answers
27 views

Noticed strange thing in new Wordpress versions

In the latest WordPress versions, for ex: 4.5.2, the function of displaying post comment reply link (comment_reply_link()) is not working. When I var_dump() it returns NULL. I'm using custom function ...
1
vote
2answers
42 views

Example of a theme organization without all the default wp files in root

I know I can get rid of some of the default WP theme files required using get_template_part() for instance. But some files still need to be present - for instance, how would I move page.php to a ...
0
votes
1answer
51 views

Cherry framework - Overriding function in template-general.php

In wordpress Cherry framework, I am trying to edit template-general.php file functions, but it's different not able to do so. I tried to follow this link, but does not help. Link for Cherry framework ...
0
votes
1answer
55 views

How to add aria role and schema markup to custom walker container

Edit: after doing some research I've found that in the wp_nav_menu function uses the following code to display the containers value. if ( $args->container ) { /** * Filter the list of ...
1
vote
1answer
39 views

Building a Treatments Page, What Do I Use?

I am currently building a site for a local day spa and I have hit a dead end in regards to the treatments page. I just don't know what I'm doing, I have been stuck on this problem for a couple of ...
1
vote
0answers
36 views

Following Web Performance Optimization techniques to output static and dynamic css

I have always felt the way styles are handled in WordPress is not optimal regarding the web performance optimization (WPO) techniques that are related to css. From a theme developer point of view, ...
0
votes
1answer
16 views

Make a plugin page out of influence of the theme's style

I have to make several change to my style to be with what i want, when i export a project to a wordpress plugins : Based on this : When including it into a plugin, i finally got this : This ...
0
votes
0answers
36 views

Angular js template to wordpress theme conversion

Hi all currently i am working for angular template conversion to a wordpress custom theme development, I can able to fetch the post data, I am bit get stag with getting our menu's as dynamic. Here is ...
-1
votes
1answer
27 views

Best Way to Inventory the Media Library of a 200+ Multisite Installation?

I have a multisite installation of WordPress with 200+ sites. I recently was tasked to do an inventory of each site's media library and was wondering if this could be accomplished programmatically ...
0
votes
2answers
71 views

Ideal inline dynamic CSS injection

There is a code in here that dynamically load custom script. <?php function my_styles_method() { wp_enqueue_style( 'custom-style', get_template_directory_uri() . '/css/...
1
vote
1answer
32 views

Is it possible to place custom post type files inside a folder in theme directory?

I have created a custom post type called customtype. From my understanding the template file for it would be single-customtype.php which is placed inside wp-content/themes/mytheme. Can I place the ...
0
votes
1answer
17 views

Category page returns 404 error

I'm developing custom theme that should show all categories on a single page in /category path. When i navigate to /category/some-category, i can see all posts that belong to that category, but when ...
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
44 views

inline css causes multiple copies [closed]

This is a question that' stumpled me and I don't know how to ask the right question. If the question is labeled incorrectly, please rename it. I'm using an inline CSS to make the featured image a ...
0
votes
1answer
28 views

What Does “Cannot modify header information?” Mean

I have come across a rather concerning issue with my theme that continues to crash my site whenever I enter a new post. I turned on debugging and I'm given the following errors messages: Cannot ...
-4
votes
1answer
66 views

Twenty sixteen - full height

I want the twenty sixteen theme to "fill up" the height even if the page is empty. So.. If the content does not fill it up, it will be minimum full height.
0
votes
1answer
17 views

get_page_templates only return templates with “home” in the filename

I have the following custom page template filenames: template-about-1.php template-about-2.php template-home-1.php template-home-2.php I have this function to get_page_templates: function ...
0
votes
0answers
13 views

Update get_page_templates function to pass template filename into select option value [duplicate]

I am using the following function to pull page templates into a select menu in WordPress' Theme Customizer: function get_page_templates_select() { $teh_cats = get_page_templates(); foreach ( $...
0
votes
1answer
24 views

Load get_page_templates into select menu

I am using WordPress' Theme Customizer where I would like to add an option for the user to select the page template used. Here is the code to get the page templates. This is the section that needs ...
1
vote
1answer
44 views

Using WordPress' Theme Customizer to select page templates that update layout in the preview

I wasn't sure where to post this question.. I recently discovered WordPress' "Theme Customizer" and am using it to make the pages easier to update for clients. Rather than the standard way of editing ...
0
votes
1answer
25 views

How to transfer one domain to another domain without losing theme options (customizer)?

I have developed the one wordpress site with custom theme, Here I used the custom customizer options. Then site completed on my local machine I mean localhost (http://127.0.0.1/wordpress). Now the ...
1
vote
3answers
34 views

What happens to child theme if I change to new version of parent theme?

What happens to child theme if I change to new version of parent theme? Tesseract theme came out with new version. But what happens to all changes saved in original Tesseract child theme? Will changes ...
0
votes
1answer
31 views

have_posts() return false on single post

I'm a little bit confused with the use of the Loop. This is my first theme and i just use index.php currently to display all my pages. It works fine for pages but have_posts return false when i try to ...
1
vote
1answer
73 views

How to load a different header based on post format?

I have a difficult question. What's the best way to load a different header based on a post format? I guess I could load another loop around the header but I noticed the site does slow down. This is ...
0
votes
0answers
70 views

How to include jQuery UI smoothness theme - without conflicting with Contact Form 7

After copying the following HTML-code from jQuery UI selectmenu example into my twentythirteen-child/front-page.php file: <form action="#"> <fieldset> <label ...
-1
votes
1answer
38 views

Bestway to write php functions

I have seen that every theme use this format if( !function_exists( 'blogrock__f' )) : function blogrock__f () { /// code here } endif; add_action('after_setup_theme', 'blogrock_setup'); I ...
1
vote
0answers
26 views

Dynamically generated wordpress customizer options?

I looked for a while, but I couldn't really find anything about this. So I'm trying to generate a customizer panel with a single option and setting attached, initially. This options is something like ...
0
votes
0answers
18 views

Custom Post Type - after disable 'Add New', I can't edit and delete post

I need to disable 'Add New' button for my CPT, but when I add: 'capabilities' => array( 'create_posts' => false, 'edit_posts' => true, 'edit_post' => true, 'delete_post' =&...
1
vote
0answers
29 views

Responsive Images - crop don't seem to work

most likely I didn't got the idea of responsive images right know, so please consider pointing out misunderstandings in that concept. What I want to have: I have a page where I query for custom ...
0
votes
0answers
44 views

Foundation 6 Dropdown Menu & WordPress

I'm trying to incorporate the foundation 6 dropdown menu with WordPress's menu. WordPress currently outputs <ul id="menu-menu-1" class="menu"> <li id="menu-item-24" class="menu-item ...
0
votes
2answers
49 views

If user is logged in and has a role echo statement

I currently have a dive set up which I would like to display different bits of information when the user is logged in and has a specific role. I have three roles 'administrator' 'adoption-agency' ...
4
votes
2answers
74 views

Password-protect a custom rss feed

I've created a custom post type and would like to send those posts to FB Instant Articles and Apple News via a RSS feed. I've created a custom RSS feed and need to know what's the best way to make ...
0
votes
1answer
15 views

Missing hashtag with theme customizer header color

I'm trying to add a color to my theme for the <h2> tag on my website. But now I've got the following problem: The hashtag is missing before the color. So I get 000000 instead of #000000. It ...
3
votes
1answer
87 views

How to get the registered sidebar's name by its id?

Let's say I have this code in my "functions.php": function mytheme_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Sidebar Name', 'mytheme' ), 'id' ...
0
votes
0answers
15 views

Click to expand menu

I have the following menu in Wordpress: https://jsfiddle.net/L3y2rno8/ (renderd HTML) The menu is using a custom walker in my theme functions.php: function wp_nav_menu_attributes_filter($var) { ...
0
votes
1answer
43 views

jQuery accordion menu

So I have just started developing a theme with _s (underscores) as a basis. For three days straight (almost) I have been trying to make an accordion menu sort of like this: Example: https://codyhouse....
0
votes
2answers
259 views

Adding Bootstrap to WordPress TwentySixteen Theme

How can I add Bootstrap to the Wordpress TwentySixteen Theme without using a plugin? I've tried linking to the stylesheets and scripts within the header/footer, however the theme seems to override ...