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

learn more… | top users | synonyms

0
votes
1answer
28 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
49 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
42 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
21 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 ...
0
votes
0answers
14 views

width: 100%; height: auto dont work properly [migrated]

I am using Wordpress to build a website. I have set images as slider with bootstrap. My css codes are: min-width: 100%; height: auto; object-fit: contain; overflow: hidden; But it stretches itself ...
1
vote
3answers
70 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
121 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
31 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: ...
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
34 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 ...
-2
votes
2answers
39 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
22 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
14 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 ...
0
votes
1answer
35 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
19 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
41 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
65 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
44 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
65 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
38 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
26 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
26 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
34 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
29 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
29 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
29 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
27 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
46 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
59 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
23 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
50 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
16 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 ...
1
vote
1answer
73 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
25 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
192 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
86 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
20 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
28 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 ...
0
votes
1answer
32 views

Hook in parent theme Menu function

Trying to modify Parent Menus function on child theme, the original function is: function original_theme_menus() { $menus = array( 'top' => __( 'Top Menu', 'theme-domain' ), ...
0
votes
0answers
18 views

Plain text (HTML) in wordpress admin

I am developing my custom theme and I noticed that some of the links result in showing me plain text HTML instead of normal webpage. I tracked down the issue and found out that this happens when I ...
0
votes
2answers
42 views

How can I fix those issues generated by the Themecheck plugin

I've got the following error messages on the themecheck plugin in my WordPress theme. REQUIRED: The theme uses the register_taxonomy() function, which is plugin-territory functionality. ...
4
votes
1answer
98 views

Comment form not display properly?

I want to display comment form in my blog page comment_form() work properly but its display like that: Comment name email website But this form should be display like that ...
1
vote
1answer
22 views

Is accessing theme and using customizer GPL distribution?

I am theme developer and I want to make a "demo" website, where people to which I give password will have access to nearly all theme functions (except theme editor) -> they won't have full admin ...
0
votes
1answer
42 views

Bootstrap grid system is not working in my Wordpress theme

I'm a long time Wordpress user but this is the first time I dared to build my own theme (while following a tutorial though). I'm trying to use Bootstrap as the layout tool for the theme, but for some ...
0
votes
1answer
33 views

How to debug theme (Theme is causing pages to have no style or HTML <head> section)

I have a WordPress theme given to me by a client, so not familiar with it at all. Activating the Twenty Sixteen theme resolves the problem, so it's not a plugin but definitely the client's theme. ...
0
votes
1answer
34 views

How to determine if WP_DEBUG is enabled? [duplicate]

I believe I saw this done in a few plugins before, but it has been awhile and I have no clue what plugins offered this or how they offered it, but what I am trying to achieve is this... I want offer ...
0
votes
0answers
21 views

Why the output of an image gallery plugin is not displayed into a page of my custom theme?

I am pretty new as WordPress developer and I am going crazy with a theme developed by myself starting from 0. So, at this link you can download the entire theme so you can see in the details the ...
0
votes
1answer
16 views

Fixed button and slideshow in template upload per page

For all products there is a different page. Every product page will have the product template. On this template I'll have 3 download buttons and a slideshow. Now I want that when making a page for a ...
-1
votes
1answer
55 views

Convert Html5 to Wordprss

I do design a HTML5 template.now i want convert that template to wordpress theme.i was convert main page(Index.php). now i want two page, one for create a section in my theme for blog which show ...