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

learn more… | top users | synonyms

0
votes
2answers
262 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 ...
0
votes
1answer
43 views

Wp_query with 2 meta keys and array of meta values

Hi in my post_type=shop i have 2 meta keys and array of values Custom fields Name Values cu_status pending,processing,completed cu_date 12-Jan-2016 , 13-Jan-2016, ...... any ...
0
votes
2answers
49 views

Relative post date in recent posts list

I have basically worked on this all night and I realize I am quite stuck. I have a sidebar in my wordpress theme that displays the most recent posts. The sidebar looks like this: Below each title ...
0
votes
1answer
26 views

Display recent posts with thumbnail

I have the following php in a template. This lists the most recent posts. <h2>Recent Posts</h2> <ul> <?php $args = array( 'numberposts' => '5', 'tax_query' => array( ...
0
votes
2answers
27 views

New created Theme leads to malfunctioning Xampp Apache --> functions.php is cause

what I did: I installed Wordpress on XAMPP Build a correctly working theme for Wordpress Copied this theme to another folder next to the first one in my Wordpress Themes-folder Made some css ...
-2
votes
1answer
33 views

Add some fields in page setting

I'm developing a theme and I want to add some fields in page setting , like this What must I use ?
3
votes
1answer
177 views

WordPress tips for speed and performance [closed]

I have got some problems with performance, exactly page speed load on my Website. Here are things listed below: I have got WordPress installed on my VPS with Nginx platform. AMD 8 cpu's 2x SSD ...
0
votes
4answers
613 views

Custom admin logo not showing after wordpress 4.5 upgrade

I have just upgraded to wordpress 4.5 and now my custom logo for the admin doesn't work, the theme which I built uses the following in the theme functions.php: /* change admin logo */ function ...
1
vote
1answer
25 views

Is It Always a Best Practice to Decouple the Frontend from the Admin Area When Developing a WordPress Application?

Is it always a best practice to decouple the admin area from the frontend portion in a WordPress application? Are there any instances when one might want to use the admin area/screen as the ...
0
votes
1answer
23 views

What are the allowable Tags values in a theme file header?

I suspect that any searchable term can be used in the "Tags" header in the File Header for a theme. The codex discusses the File Header Requirements here https://codex.wordpress.org/File_Header but ...
1
vote
3answers
138 views

Menu item added in wp_nav_menu_items filter is never highlighted

In a Twenty Thirteen child theme I append a menu item (a link to /player-number page template, where the number is different for each user and represents her or his id in a game database) using the ...
0
votes
1answer
40 views

Unable to change the priority with 'remove_action' and 'add_action' in child theme

I am using an Woo theme. In the parent theme, there is this function: function woothemes_wp_head() { do_action( 'woothemes_wp_head_before' ); if ( function_exists( 'woo_output_alt_stylesheet' ) ) ...
0
votes
1answer
34 views

How to create and populate with few links a menu in child theme functions.php?

The official Twenty Thirteen theme defines just a single menu in the /wp-content/themes/twentythirteen/header.php file: <?php wp_nav_menu( array( 'theme_location' => 'primary', '...
0
votes
1answer
64 views

LESS not working in WordPress [closed]

How to run the CSS preprocessor (LESS) in WordPress? I'm trying to apply LESS in my child theme. I create variable.less and place it in the child theme folder css/less/variable.less and I call this ....
0
votes
1answer
61 views

WordPress Customizer Help with FontAwesome Icon

Here's the scenario - I want to select fontawesome icons from the dropdown list but it's not working. For some reason the class inside span is not adding up (I have tried jQuery().append(), CSS) but ...
0
votes
0answers
26 views

pre_get_comments or the_content filter

I am learning wordpress deveplopment. I have a litle problem for understand how to use the right hook for add my code. In this case I have to ask... what is the best practice for show social icons ...
1
vote
3answers
79 views

How to load different CSS in different Header?

I have two different files for the header in my theme. These are header.php and header-full.php. How can I load different CSS in different headers? I enqueue my CSS files in function.php like this:
1
vote
2answers
126 views

New template, where to place CSS?

Till today I never used header.php and footer.php because my theme has multiple templates and I do not know how or where to place the CSS and JS files. Could someone please explain how to have a ...
1
vote
1answer
33 views

PowerPress mobile media player

I am using the MediaElement media player for PowerPress, everything is working fine. The one thing I noticed is on mobile...affecting the podcast showing first. If you go to: http://joshrodg.com/...
2
votes
1answer
31 views

Make a custom theme translate-ready

I created a my own theme, now I wish to make it translatable. I made two files: theme.pot msgid "know_more" msgstr "Vuoi saperne di più?" it_IT.po msgid "know_more" msgstr "Vuoi saperne di più?" ...
0
votes
1answer
36 views

Display Powerpress media url

I am trying to display the url of a media file in a template. I ran across this post: https://wordpress.org/support/topic/get-media-url-only, but when I add that to my template (in the loop as it says)...
-2
votes
2answers
65 views

Fatal error: Call to undefined function the_posts_navigation()

I'm following a tutorial which is using WP 4.0 and _'s. I'm getting the following error and I don't know why. Fatal error: Call to undefined function the_posts_navigation()
0
votes
3answers
29 views

WordPress Load Only Page Text

I'm working on a page template and I need the_title to be separate from the page text. I'm not sure how to load the_content without it having the title. Can anyone help?
0
votes
1answer
15 views

Customizer_register theme options not saving

I'm trying to add a phone field to a theme's customizer, so far, I was able to add the field in the customize page, but for some reasons, it won't save, whenever I save and went back to check it, the ...
1
vote
1answer
81 views

Cannot update WordPress General Settings Site Title and Tagline

I have a WordPress 4.4.2 installation with no SEO plugins at all. The plugins that I do have activated are WooCommerce, WooCommerce Multilingual, and WPML. I am unable to update the Site Title and ...
0
votes
1answer
26 views

Correct (and secure) way to escape url when using href attribute

maybe it's not such a big deal as I think it is, but I want to escape href attribute with some text. Which one of these examples is the "correct" one - and does it actually matter? <?php printf( ...
-2
votes
1answer
49 views

Admin bar is showing up to non logged in users

Even after logout from wordpress admin, Admin bar is still showing up on front-end. Attaching screenshot here, When I change theme, Admin bar doesn't showing up. It looks like there is issue only ...
0
votes
0answers
122 views

Display form submit success message

I have created a user profile form on my website to allow users to edit their user details on the front-end. Below is the code im using which works and updates their details, however once they have ...
0
votes
1answer
55 views

Understanding Wordpress theme files and underscores

I'm just starting learning wordpress. I decided to go with the underscores starter theme to develop my own custom theme. And I've got some questions. I suppose there is an answer to my question in ...
0
votes
2answers
89 views

Displaying theme options in css

I am literally pulling my hair out trying to figure this out. I have been at it for almost 12 hours now. Being new to PHP and theme development I am having a hard time understanding how to get ...
-1
votes
1answer
47 views

What is The Best Way to Make Parallax header effect for wordpress theme ?? pure CSS or using JavaScript? [closed]

I'm new in wordpress theme development, I want ask some question here, I want to make a parallax effect for my theme header like this: TestParallax.com this is made by using some JS code, I want to ...
0
votes
1answer
27 views

How to call a widget in a loop at a specific iteration value?

On the index page of my website. I want to display a widget in the third position. I am calling the widget through "the_widget( 'Widget Name' );" code. Now the problem is, since it doesn't return ...
0
votes
1answer
31 views

New theme HTML5 Support for Search in WordPress 4.4

I'm kind of new to creating my own themes with WordPress 4.x so I hope it's not too boring. In search.php I'm using this code: get_search_form () Also, I got this code in searchform.php <form ...
0
votes
1answer
45 views

active link for most recent post on vertical tabs

I'm trying to add the css class .is-active to my vertical tab links inside my loop. By default, the page loads the most recent post first. How can I make most recent tab/post active with .is-active? ...
0
votes
1answer
44 views

How To Display Category list from Portfolio post type plugin?

I'm new from WordPress development. I want to display portfolio category list in my theme, I'm useing portfolio post type plugin what must I do ? what code or WordPress function must implement in ...
0
votes
1answer
40 views

Plugin does not work in custom theme

I created a new theme, starting by zero. The theme works correctly, but some plugins not. I installed Google Analytics & Webmaster Tools, I compiled the plugin with my track codes, but in the ...
0
votes
1answer
30 views

using part of a theme in another theme

So I have a divi theme I have been using to build a site... only thing is I wanted a portfolio section that was quite specific so I ended up using the wanchai wordpress template. I have both ...
0
votes
0answers
38 views

Customizer not working when developing on localhost using gulp

I'm hoping someone has encountered this before and has a simple solution. When using gulp to develop locally, the customizer doesn't load. JavaScript console gives the error: customize.php:1 ...
-1
votes
1answer
48 views

Using is home to get content [closed]

I'm looking to use is_home to 'get content' as I would like my blog page to echo a header, content and date/time but I only want all other pages to get the content. This is what i have so far... <...
0
votes
1answer
133 views

Wp_query WooCommerce products

I'm currently developing an e-commerce store using Wordpress and WooCommerce. I'm planning on creating a basic product filtering system and was wondering if it's possible to wp_query the results shown ...
0
votes
1answer
32 views

How to implement conditional PHP in Footer

Hoping for a little bit of help...I have added a script in footer.php and I want the script to run on all pages but not on "contact" page. What would be the coding/conditional to do this? Thank you.
0
votes
1answer
58 views

Translate a child theme with pure PHP and gettext

I'm trying to translate a child theme of a parent theme that has all msgstr empty. Therefore, I've created the file de_DE.mo using the "WordPress i18n tools" recommended in the docs together with ...
0
votes
0answers
18 views

Create a custom theme-specific page, invisible in the admin-panel?

I've learned that when I want a custom page, I need to create a page template, create my page and assign the template to it. Also I've read about fake/virtual pages, where the page is generated on the ...
2
votes
1answer
82 views

Flexible Wordpress theme creation using themes

I'm working on a plan to build new Wordpress themes very rapidly. Though, I have some question about it's implementation. Here's the plan. Discover what the content is the client wants on their ...
0
votes
1answer
30 views

How to set wp_options in functions.php for removeing the Default Front Page

I want to disable the default front page as I want to show always the first listed page in the frontend. Therefor I disable the Static Front Page. But I have also to set in wp_options the variables ...
4
votes
4answers
207 views

What is a good way to pass a variable from add_action to a Theme?

Inside functions.php: add_action('init','my_action'); function my_action() { if($dontknow) { $passme = "yes"; } else { $passme = "no"; } } Inside index.php of the ...
1
vote
1answer
89 views

Understanding the WordPress template hierarchy

I watched a lot of courses about Wordpress Development on Udemy. Also I've almost finished my "Wordpress Development" track on Teamtreehouse, but I can't understand one simple thing, because one ...
0
votes
1answer
22 views

“Add media” dialog is not showing any images

When pressing the "add media"-button on the edit post page, it opens and the loader keeps spinning without it displaying any images. The images shows up just fine in the media library tab of the ...
0
votes
0answers
29 views

Checking supported arguments in theme features ( current_theme_supports )?

I think I wan't to use get_theme_support since it returns an array of arguements where current_theme_supports doesn't (as far as I know). For example, here's a theme support in genesis for adding ...
0
votes
1answer
18 views

Weird 'theme update' error

I am developing a theme (which I am calling AsylumInfo) that gets built into a directory call /build and I have symlink from there to the wordpress setup on my computer. When I use wp-admin I get ...