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

learn more… | top users | synonyms

0
votes
0answers
5 views

Add data to li tag in loop?

Im trying to change <li> to <li data-sr> , how would i add the data-sr when the li code is like the following : <ul class="<?php echo $typecol; ?>"> <?php while ( ...
0
votes
2answers
21 views

How to add image for custom taxonomy

I was trying to add category images for custom taxonomy I am using this plugin taxonomy-images but I don't know how to get that custom taxonomy image I tried to keep print apply_filters( ...
0
votes
2answers
10 views

Using piklist meta box, strange behavior

I'm trying to get into wordpress theme development. I currently work at agency which uses Roots framework and piklist. I created a custom post type into which i wanted to add an icon from ...
1
vote
1answer
20 views

How to post data to same page in wordpress

I am trying to submit form and get that data in same page when i used the_permalink i am getting page not found i used this code <?php /* Template Name:testing */ if(isset($_POST["name"])) { ...
0
votes
0answers
23 views

How To Learn WordPress Properly [on hold]

I have worked with WordPress for a long time, like 5 years. But I just learned on my own with hands on experience messing with themes at first and eventually making my own. I have probably made 6-7 ...
1
vote
0answers
12 views

Underscore Based Theme File Permissions in Git

I'm using underscores to develop my theme. For some reason git is saying that my file permissions are being changed from 10644 to 10744. I can override this in git's settings this but is it safe for ...
2
votes
0answers
22 views

Is it good to always use the __($str) and _e($str) translate functions whenever there's a text that'll be going to output?

I'm currently developing a non-trivial theme right now, most of the time I'm not using a __($str) translate function when there's an HTML tag therein the text. Is it good to always use the translate ...
0
votes
0answers
9 views

Getting an array of parent menu links and titles and all children links and titles

I am developing a theme with wordpress and trying to develop a sidebar that changes based on the users menu selection. So if a user clicks on the 'Fruits' link on the menu and it has children menu ...
0
votes
1answer
23 views

Custom WP_Query doesn't display all posts

I'm building an options page which allows users to choose three posts and three custom images that display on the site's front page. I am using the Settings API to create a custom WP_Query which pulls ...
-2
votes
0answers
16 views

Display posts in a loop for bootstrap framework [on hold]

How to show posts in a loops for bootstrap Here is the code I used <div class="row"> <?php if(have_posts()):while(have_posts()):the_post();?> ?> <div class="col-md-6"> ...
0
votes
0answers
5 views

Perform a 'refresh' transport or open the site in new tab, after saving the theme in Customizer

Is it possible to perform a 'refresh' transport after saving the theme in Customizer? Can you help me about this? If it is not, then my plan B is just to open the site in new tab after saving the ...
0
votes
0answers
13 views

Sticky Posts cause problem with pagination

I'm using following function to display the pagination. This works otherwise fine but if there is any sticky post, then it ignores the number of posts on the first page. For example if it is set to ...
0
votes
1answer
14 views

Types Plugin - Display options(select) in template [on hold]

I have created a custom "select field" in admin panel using types plugin. Is it possible to get the values and use it somewhere outside the plugin(in theme or in another plugin)? I like to update the ...
0
votes
0answers
14 views

Practices to Avoid Plugin & Theme Conflicts

I am developing a WordPress Plugin and it includes the javascript library Require.js. This is causing a conflict with my theme. How can I avoid my plugin javascript affecting other plugins and ...
0
votes
1answer
32 views

Onepage with shortcodes

i build a onepage wordpress theme , and for showing all my pages in one page i use a loop , but shortcodes don't work (Ex : contact form 7 : the form is showing but don't work at all) this is my code ...
0
votes
1answer
36 views

Theme CSS background-image keeps throwing 404

I have a Wordpress site I am developing with the Sage starter theme. I have set a static home page, and added a new div to that page that is going to act as my stage. I would like to add a ...
0
votes
0answers
20 views

Prediction of required workflow? [closed]

I wish to develop a website that is very similar to this one : https://buysellads.com I am not very experienced with web development/design, and would like to hire a freelancer for this task. I would ...
1
vote
1answer
26 views

Default header image does not display

Clarification: My default header image will not RE-display (by clicking suggested image) after it has been removed using theme customizer "Hide Image" option. I added theme support for Custom Header ...
0
votes
0answers
23 views

WordPress Ajax Spitting out a page as a response?

So I have attempted to create a class to contain the ajax based functions and what not, in PHP and then call that through the functions.php and then use javascript to make calls back. But I am so ...
0
votes
1answer
25 views

How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme?

I have to create a child theme to implement some changes to a WordPress theme and avoid that these changes are lost when the theme will be update. So I have some doubt about how do it. I am ...
0
votes
2answers
39 views

What is the correct way to include my new functions and scripts in WordPress?

To include new functions we can write them in the theme's functions.php. But I have to write my own functions in a new file rather altering the theme's function.php. I can write any custom js action ...
0
votes
1answer
28 views

multiple html/css files for wordpress theme?

Ok so I am teaching myself how to code wordpress themes from scratch. I am using c9.io as an editor. I had a question. I have been looking at different tutorials at the template files they use, and ...
0
votes
0answers
21 views

Using Customizer value in an external PHP file inside a theme

I'm working on a theme for a company and they don't want the users to touch the code at all. So as I love, they asked me to use Customizer API. Now, there's a PHP file in the theme which we don't ...
0
votes
0answers
23 views

Different wordpress menu showing in frontpage and blog page

When I select "Your latest posts" from "Front page displays" I want to show a custom menu which will show in blog,single,page and archive page. But when I select a static front page than it will show ...
0
votes
0answers
15 views

How to make a local cache of mshots images

I am using the Wordpress mshots api to generate automatic thumbnails of websites from the site url. I am using a customfield to capture the website url and pass the value to the mshots url to return ...
0
votes
0answers
5 views

Have pre defined menus when developing a theme

I am trying to develop a theme with customizable menus, like a header with menu options and footer with menu options. In my theme menu page right now, in "Select a menu to edit" there are only 2 ...
1
vote
0answers
20 views

Automatic Theme & Plugin Updater for Self-Hosted Themes/Plugins

I trying to update my theme with this plugin: https://github.com/jeremyclark13/automatic-theme-plugin-update In my style.css I have Version: 1.0. In update.php I set $api_url to ...
-1
votes
0answers
15 views

How to avoid to lose my theme customization when the theme will be update? [duplicate]

I have the following problem. I have to modify a JQuery function into a file named custom.js into the theme that I am using for my website. I have no problem to implement my customization to the ...
0
votes
2answers
30 views

Reliable method to detect mobiles

I'm running a WordPress site and wanna setup a mobile site based on it. I've tried some plugins like Mobile Themes which allows me to implement a different theme for mobile. The problem is when I ...
0
votes
0answers
25 views

get_the_excerpt() removes all p tags in page!

I have written some shortcode to be able to place the latest post excerpt anywhere on the page, but I got a problem that I have trying to solve for days now! And I can't find the reason why the ...
0
votes
0answers
25 views

Designing custom templates and managing conent

I am web developer with little wordpress experience. What I am trying to do is develop and style a website to my liking using pure html and css and then use wordpress to allow the end users to edit ...
0
votes
1answer
17 views

Where to find this broken link in order to remove it

I have many broken links of this type - http://isngs.com/wp-content/plugins/merobuilder/so-widgets-bundle/widgets/so-services-widget/css/fonts/service-background.eot?-7p8gp3 Please tell me how can i ...
0
votes
0answers
17 views

Backslashes being stripped from CSS

The title explains my problem. Upon saving CSS stylesheet in the "Appearance > Editor", single backslashes are being stripped out of the stylesheet. For example: content="\foo" becomes: ...
0
votes
0answers
15 views

Instead lightbox image links to file directory

I have created my own template using http://html5blank.com/ wordpress theme blank and also installed a Foogallery plugin and free lightbox. Problem is that after pressing image it's taking me to image ...
-1
votes
0answers
37 views

woocommerce product addons add to cart via ajax [closed]

I am using woocommerce product addons plugin from woothemes http://www.woothemes.com/products/product-add-ons/, my website has just archive pages means no single product page, the addons are ...
0
votes
0answers
20 views

Custom theme and plugin updating

History: I'm working on a project for a client that involves building 27 unique websites that are built on wordpress. I say unique, because (for reasons that are not worth going into here) they ...
-1
votes
0answers
28 views

How save is _s (underscores) for designing/developing a theme for the market? [duplicate]

I am using _s for my theme right now and I'm just wondering if there is a any issue on anything like security, seo, load issue... etc. I s there any better solution/ ways for developing themes.
0
votes
0answers
18 views

How to use _() function in custom theme file in wordpress

I have .php file in theme folder in which I am calling function _() but it is showing Call to undefined function __() error although I have activated qtranslate-x plugin enabled. I have added this ...
0
votes
0answers
13 views

Theme similar to Gymondo.de / livestrong.com webpage [on hold]

Does someone know a theme which is similar to gymondo.de or live strong.com? And someone can help me build/ customize this similar webpage as freelancer? I did some work with WP, but this kind of ...
0
votes
1answer
22 views

Fail to install theme on development copy of WordPress on Webmatrix

I am a newbie on WordPress and the development copy of company WordPress site is running on WebMatrix. One very first thing I try to do is to install a theme to the development copy to make sure it ...
0
votes
0answers
18 views

How to add php to theme that uses single post loop file on html format?

I am trying to add some php to the single.php file, namely sharing buttons. I am using the "Fast Forward" theme for CosmoThemes and this is what is included in the single.php file. <?php // AJAX ...
0
votes
0answers
19 views

Using require_once for parent-directory not working but is working in sub-directories

I'm building a custom theme and I'm attempting to use require_once __DIR__ . '/templates/variables.php' in my footer.php file, to keep from repeating code that contains variable information... I keep ...
2
votes
1answer
42 views

Is it safe to enqueue a font style without putting http or https?

I have seen a few WordPress sites and tutorials enqueuing fonts like this. Does this work with http and https sites? Is it safe to do this? I see these exact URL's in the source code when testing ...
0
votes
0answers
20 views

wordpress not calling peliegro functions.php?

I'm very confused with this question because I'm not really sure what is happenning, but as far as I know, my "father" functions.php is not being called. I'm using peliegro and peliegro Child. What I ...
0
votes
2answers
26 views

Change WordPress Resource URL

I have recently finished developing my latest WordPress theme for my own site and as usual I was going to use maxcdn and w3tc to make it faster! However my Hosting company have started up their own ...
2
votes
1answer
30 views

How do I create an archive page for standard posts?

I've been tasked with creating a portfolio website for a client who also wants a blog. What I've Done Thus Far: I’ve created a custom post type to separate the portfolio work from the blog posts and ...
1
vote
1answer
27 views

Can't login unless twentyfifteen theme is active

Yesterday, I tried to clone an online website to localhost for doing some work on my theme. I did a fresh Wordpress install on localhost and used mysqldump for copying the remote DB to localhost. I ...
0
votes
1answer
21 views

How to remove WP Title Tag?

I have add custom title tag for a custom post type in header.php like this if(is_singular( 'news' )){ global $wp_query; $postid = $wp_query->post->ID; echo '<title>'. get_the_title() .' ...
0
votes
0answers
11 views

whats the best practice to make specific links accessible in theme?

I have a bunch of links I need to reference in my custom theme. Since it should be flexible and the page is also translated (using WPML) hard-coded links are not an option. Right now I use registered ...
0
votes
1answer
93 views

How to show a manageable list of images on a post?

I've created a custom post type called product. On my theme's product page, I want to be able to show a basic list of images (ul>li>a>img) on a sidebar like this (quickly googled :P): I ...