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

learn more… | top users | synonyms

-1
votes
1answer
9 views

Add a field to the taxonomy editor?

I would like to add an additional image field to WooCommerce Product Taxonomy Admin page as part of my theme. It works fine by modifying the existing class within the plugin, but it will be replaced ...
-1
votes
0answers
11 views

Modify Header file of Optimizepress [ op_theme_file('header') ]

I have tried to edit the default header of Optimizepress, I have edited the blog header, but it seems I can't edit the default page header. On header.php its written <?php op_theme_file('header') ...
0
votes
2answers
25 views

How to remove dashicons.min.css from frontend?

Is there any way to remove the dashicons.min.css file from the frontend? I know that they are used by the admin panel, but my theme doesn't use them so it's an unnecessary request.
0
votes
1answer
58 views

Theme Development for a Newbie

TL;DR, Skip to Trouble I am a programmer and web developer by trade. I'm attempting to launch my own small business website in order to showcase my talents. As such, I've created subdomains for ...
0
votes
0answers
11 views

Deleting files and directories with theme activation hook

Has anyone got some insight or good resources for a function to delete the standard plugins and themes upon activation of a custom theme? There does not seem to be a whole lot of info on the topic and ...
0
votes
1answer
27 views

Js file is not adding using this code in functions.php

Sorry i am noob in WordPress. I am using following code in functions.php to add the .js file in wordpress. function your_function_name() { wp_localize_script( 'function', 'my_ajax_script', array( ...
0
votes
1answer
28 views

Where is the sticky post option?

So I finally need to include sticky posts in a theme but it looks like the feature is gone. When I create a new post, and click "visiblity", the sticky option is missing. I checked a couple other ...
0
votes
0answers
19 views

How to generate embed code

I have made a proxy server with Google's app engine. I want users to share it where ever they can, on their blogs/forums/websites etc, but it has a small glitch. I want only the main box shared (like ...
0
votes
0answers
9 views

How to implement Photo Collection like Stock Photo site in WordPress? [on hold]

I am implementing a site in WordPress that kinda work like a Stock Photo site like iStock or sxc.hu. The only difference is that it won't ask for any username or any credits to download the images ...
-2
votes
0answers
23 views

Wordpress Dashboard Jquery conflict, no drag and drop , widgets missing [on hold]

Wordpress Dashboard Jquery Conflict. Drag and Drop not working, All widgets not showing up, Menu drag creates blank spaces.. Tried to disable all plugins, but no luck. changed theme to twenty twenty, ...
1
vote
1answer
4k views

How do I cleanly override a plugin's CSS with a child theme?

folks! I have taken it upon myself to adhere to WordPress conventions so I can have a clean, sexy child theme. However, I am unsure how to proceed on a certain issue. I would like to override the ...
6
votes
4answers
204 views

How to add custom “Menu Settings”

I want to be able to tell the wordpress menu's on what page to show. The way my menu is shown now: I want to have the option in the menu settings like so: But I cannot find any documentation ...
0
votes
1answer
375 views

Get all first images of posts in same category

I am trying to build a list of thumbnail images linked to their associated single content pages within the same category. So, when I am in the category of 'x' the list returns all image attachments ...
2
votes
2answers
1k views

Get category slug and display it on a query_post

I just read "How to create option page for wordpress theme" in wp.tutsplus.com - I have a problem with getting categories . there is two parts to my question - Part A - Get category slug and ...
1
vote
1answer
388 views

Adding WordPress colorpicker in widget settings

I want to add the WordPress default colorpicker in widget settings form. Here's what I'm trying: In my functions.php, I have this: function widgets_scripts( $hook ) { if ( 'widgets.php' != $hook ...
0
votes
1answer
19 views

Why the dynamic_sidebar() call is putted into an ul tag?

I am pretty new in WordPress development and I have the following doubt about how the sidebar are putted into a WordPress theme. Looking into the official documentation: ...
1
vote
2answers
29 views

one time popup after theme activation

I've written a custom theme which does some one-time setup chores after activation - things which I need to do every time I use it on a fresh copy of wordpress, like creating a nav menu and ...
0
votes
0answers
16 views

How can i get the bg-img I set to a div to show black and white and a bit transparent [on hold]

So this is the problem: I set the background image to a div containing the title and some meta like in the first answer in this thread: Default featured image set as background image. Worked like a ...
0
votes
1answer
18 views

Add rel to all images in a post

I want to add a rel to all images in a post. I am trying following filter but it will wrap only the images which are in the gallery. It does not wrap the images which are added individually without ...
0
votes
1answer
334 views

How to use WP switchEditors.switchto(this) JS function in your own script?

I have a tab switching theme that lets the user choose 3 editing modes when adding new pages (HTML and Visual- these are WP defaults and the new Syntax mode using Code Mirror). I have issues when ...
-1
votes
0answers
18 views

Will WordPress get my server hacked? [closed]

I'm building a web application where the needs of security are the most important thing. If my server/website were to be vulnerable for an attack, my entire business would collapse and my brand would ...
0
votes
1answer
10 views

child comments not displaying as nested

I'm having some trouble getting my comments to display as nested from other comments. My current max level of depth is set to 5 through the wordpress admin panel, but all my comments appear on the ...
-1
votes
0answers
19 views

How to add a comments reply link?

I've used a custom comments.php file and it doesn't have a reply link, and when i use comment_reply_link i get nothing. It's some sort of emergency and i can't change my code. What should i do? This ...
0
votes
2answers
322 views

What it means <link rel=“profile” href=“http://gmpg.org/xfn/11”> is it support HTML 5 or not?

While doing the integrate HTML for my new WordPress Theme , I stumbled across a new meta tag <link rel="profile" href="http://gmpg.org/xfn/11"> what it means or is it necessary to mention and ...
1
vote
1answer
449 views

Allow non-logged in users to see a future post after clicking on a list of future posts

I have been able to list out pages that are set for future in a custom template like this: ...
0
votes
0answers
22 views

What is proper way to change or edit specific theme options? [closed]

I have installed WP property real home theme and now want to add some extra fields in it. My questions are Is there any plugin which add some extra fields to this particular theme. Do i have only ...
0
votes
1answer
19 views

the_category() tag not styling HTML or CSS

I am having problems getting my the_category() template tag to style accordingly with the rest of my theme. I believe this is because the HTML isn't output the same way as the the_author() and ...
-2
votes
0answers
12 views

Why in this page can't use this CSS class also if the .css file is correctly imported? [duplicate]

I am not so into HTML and CSS and I am finding some problem with this WordPress theme that I am developing using BootStrap* CSS framework. If you open this page you can easily understand what is the ...
0
votes
1answer
30 views

Add new panel inside parent panel in WP Customize?

Is possible, add a panel within another panel. example: First Panel > child Panel > Section > First Setting ... Second Panel > Section > First Setting ...
0
votes
1answer
16 views

How can I fix the even/odd child classes comments so that the comments are unaffected by the top-level even/odd?

Sorry if the title was confusing, I'm having a bit of trouble explaining here. I'm working on a theme for my site, and I'm using a slightly modified version of a custom comments template found here. ...
0
votes
4answers
45 views

Does code in function.php differ from theme to theme

I have gone through some tutorials and I found that for every HTML to wordpress theme conversion, they write function.php file. Now I noticed that there is some common lines in that function.php.So ...
0
votes
1answer
25 views

How to show an entire post content and not also the excerpt?

I am pretty new in WordPress theme development and I have the following problem showing posts. You can easily understand what I mean opening this link: ...
1
vote
2answers
306 views

Get url of thumbnail from the media uploader

I want to select image from the WordPress 3.5 media uploader. I can get the image URL with the following code, but it gets the full size image. I want to get the thumbnail image url,how can I get ...
-1
votes
1answer
61 views

Trouble with conditional tags

I've got some code I want to run on every page other than the blog page and the archive page. If I use <?php if ( !is_home() ) { ?> The code correctly doesn't show on the blog page. If I ...
0
votes
1answer
44 views

How to include plugin without activation?

I need to include plugin in my WordPress theme without plugin activation. I have these lines: include_once dirname( __FILE__ ) . '/math/class-constrained-array-rounding.php'; include( ...
1
vote
2answers
29 views

How to display future posts - modified query still yields 404

I have a very strange problem and I am stuck. I want the single page to display posts with the post_status of publish and future. So I added this code to my functions.php in my theme: function ...
0
votes
1answer
338 views

Creating a Link Text like Submit Button in Admin Page

I'm making an admin page for my plugin and I'd like to make a text link designed like the form button of admin pages. I tried this but didn't work well. <a href="" cless="button-primary" ...
2
votes
6answers
1k views

What are WooCommerce starter themes? [closed]

I've done created a lot of Wordpress themes and plugins, but I haven't done much with the Wordpress WooCommerce plugin from WooThemes. If someone asked me what general theme they should work with to ...
0
votes
2answers
324 views

How to add icon over specific thumb

I wanted to do the following, and I know its possible, but I don't know how. I'm looking at in_category, but it doesn't make to much sense. Basically what I want to do, for an example on my homepage, ...
0
votes
0answers
19 views

How do I get my theme scripts to load in a custom theme built from Bootstrap

I have created my own theme, pretty much from scratch, using Bootstrap 3.x. If just refer to the scripts from my footer.php file, it works. However, if I try to do it the right way, using ...
0
votes
0answers
18 views

Why does has_nav_menu return false when get_registered_nav_menus shows the opposite?

I'm working on a new theme to replace an old one. The existing theme has custom menus and I can't figure out why in my new theme a call to has_nav_menu is always coming back false. In my ...
1
vote
1answer
21 views

Where can i design and modify a new mail template for sending emails to users when commenting?

the mail sent by Wordpress is ok but its template is very simple and has no style or even a header or footer! its message has no information about my blog or logo. where can i edit its message body ...
0
votes
1answer
318 views

How to add menu support to a theme?

I tried few tutorials. All i think is i should use register_nav_menus() and then add the menu in header.php Here is the code i tried in functions.php from this help site itself function ...
1
vote
1answer
38 views

Can't show custom post thumbnail sizes as background images

I'm trying to work out a solution for responsive background images in Wordpress to use on my clients' sites. This is what I got: 1) I created some custom thumbnail sizes: function ...
0
votes
1answer
26 views

How to add custom field option with menu?

Please take a look at below image. Here we can see URL, Navigation Label & Title Attribute under Menu Structure >> Home. I need there a more option called "Data Description". I have a task to ...
1
vote
2answers
484 views

Custom header images won't appear when set to random

I'm using a custom theme, developed from Boilerplate (some time ago). I noticed that the header images work fine when set statically, but fail to appear when set to random. I tried switching themes, ...
0
votes
0answers
30 views

Hook pages by id on static front-page

I would like to build a one page website upon the Wordpress CMS. I'm looking for a way too hook my pages on a static frontpage by id, since I have several page types. I've tried: $id=6; $post = ...
3
votes
1answer
30 views

Translate third party plugin and save translation files in custom theme

I'm using Codestyling Localization and I want to translate a plugin and I want the translation files to be saved in the translation directory in the theme I'm building and not in the plugins ...
0
votes
0answers
28 views

Storing post meta values in an array

I want to create multiple metaboxes to store some values (for example 10 values). Currently I store them with different keys (val_1, val_2..). How can I store all of the values in a single meta key ...
2
votes
1answer
42 views

Prevent WordPress updates from overriding custom language translations?

my site's language is persian and persian is a right-to-left language. Wordpress has a default installation package for this lang but for some cases like very bad translation for dashboard or default ...