A WordPress Theme is a collection of files that work together to produce a graphical interface with an underlying unifying design for a blog.

learn more… | top users | synonyms (2)

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
2answers
773 views

Widget Option is Missing

My Widget Option is missing in the Dashboard area. How can i make that appear? I have downloaded this Blank Theme from Chris Coyiers site. sidebar.php <?php /** * @package WordPress * ...
0
votes
0answers
22 views

Orderby one meta key, remove posts with another

I am trying to order custom posts with a custom taxonomy with a meta key value. I am also trying to remove posts from that loop if they are past the date set by another meta key. Here's my code: ...
0
votes
3answers
35 views

Updating a theme

I am creating theme for WordPress which I hope to maintain. The current method of updating a non-WordPress hosted theme is to either replace the old theme with the new theme through FTP or switch to ...
0
votes
3answers
832 views

FTP Username and password wrong while installing theme

I followed Failed to connect to FTP Server 127.0.0.1/:21 And was able to solve that problem. But now when I try to upload the theme then I get username and password failure. I have added following ...
1
vote
0answers
24 views

Disable plugins on cron and ajax page

I want to disable few wordpress plugins on my cron and an ajax page. I have already tried option_active_plugins filter but it's not working. I have checked and found most of the people say that ...
0
votes
2answers
964 views

How to add custom page elements to the WYSIWYG editor?

On a plugin-less Worpress installation the WYSIWYG editor allows to write a page down from top to bottom with style buttons (lists, font, italics, bold, add picture ...). What I am missing is the ...
-4
votes
1answer
24 views

How to make a page extend full screen [closed]

For some reason my wordpress theme has invisible margins on both sides of the page, forcing all my content into the middle. Example.
2
votes
2answers
2k views

Add social icons in a theme through custom admin menu

Is it possible to make a theme with an option of configuring social icons with links through the custom header control panel? I googled it and found nothing that could help me, any help on that topic ...
0
votes
2answers
714 views

Get data from Theme Options and use them into meta options field in custom post type

I want to grab data from my theme options and have to use them in meta option fields in custom post types. I know how to grab theme option data and show them on front pages but don't know how to grab ...
0
votes
0answers
14 views

Remove/Disable “Automatically add new top-level pages to this menu”

Is there any way to disable or remove the "Auto add pages - Automatically add new top-level pages to this menu" functionality via a theme? I suppose I could hide it with a bit of CSS, but I'd rather ...
1
vote
1answer
25 views

Get WordPress to use another custom “author.php” file (“custom-author-file.php”)

currently, this example code in WordPress: <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author(); ?></a> turns into: <a ...
1
vote
3answers
526 views

How can one update a theme on a live site without interruption?

So i have a WordPress-based site with a custom Genesis child theme. Once the site goes live, we are obviously going to need to make changes periodically to the child theme's code — modifying CSS and ...
1
vote
1answer
30 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
0answers
16 views

update_option() is not working properly on my side, xampp and wampp is crashing

I'm using update_option() inside a validation callback on a custom options page for my theme, but every time I execute or save the settings page, Xampp and Wamp are crashing. Here is my code: ...
1
vote
1answer
9k views

Forbidden 403 error, permission to access, unable to read htaccess

Recently clean-installed (with exception of themes and content/upload folders) an old wordpress to the latest Wordpress 4.2.2. I continue to get this error below whenever I load files such as ...
1
vote
0answers
62 views

disable active plugins for specific theme

I want to disable some plugins from a specific theme.I am using deactivate_plugins hook to deactivate. following is my code. add_action('wp_head','disable_plugins'); function disable_plugins(){ ...
0
votes
2answers
74 views

Theme not showing after uploading

Hey I am developing a website for my client, and I'm having some issues with the theme upload. The theme I am uploading is http://themeforest.net/item/stockholm-a-genuinely-multiconcept-theme/8819050. ...
0
votes
1answer
9k views

How to add “Template” option in page attributes panel?

I am new in WordPress. In my theme, I do not have "Template" option in 'Page Attributes panel'. I want to add this option. I tried to solve this problem from the following post. But It did not work ...
0
votes
2answers
14 views

WordPress core update fails - no issues with plugin updates

My WP installation does one-click plugin / theme updates without any hiccups, but updates to the core always fails. No specific reason is cited, except for a suggestion that it may be due to file ...
0
votes
2answers
672 views

404 Error while accessing the font files

Added a custom font as follows Uploaded web-font files and given them the 777 permission http://example.com/wp-content/themes/mytheme/css/fonts/ Added rules to the css file @font-face { ...
0
votes
0answers
47 views

Theme Unresponsive in Wordpress 4.5 (4.4.2 Ok)

We're testing WP 4.5 in our Development Environment and found that our custom theme is wrecked by the update; more specifically, the page stops loading content but acts as if its still loading after ...
1
vote
1answer
77 views

Could not create directory

This question is already asked however none of the solution seems to work in my case. I am trying to install a theme for my new website. I just downloaded a brand new theme zipped it and tried to ...
0
votes
1answer
22 views

Removing comma from 'entry-date' in Twenty-Sixteen theme

I would like to remove the comma persent in the entry-date in the entry footer of Twent-Sixteen theme for styling purposes. (Month-Date, 2016) Looks like the date is coming from the function below. ...
0
votes
1answer
17 views

How to get dynamic template-function generated CSS into HEAD?

In a WordPress theme I have a custom function that generates some HTML and CSS based on factors on the page. Previously I had simply dumped the generated CSS into embedded <style> tags. However, ...
1
vote
0answers
18 views

Getting 503 on various files

I'm having issues with BeTheme, to say the least. I can't figure out why loading a page, either on the front end or back end, always gives me TONS of 503 errors for the various javascript, css, or ...
2
votes
1answer
64 views

Theme Customizer not loading

I have created a new theme and i use it in some of my sites (multisite) but at one site the customizer preview does not load (spinner never stops). Loading the customizer preview of other themes work ...
0
votes
0answers
13 views

Theme switch is working but clears options

I have written the following code which allows me to switch themes and set a cookie based on the URL param '?t=' This works just as intended but it does some weird things that I can not seem to ...
4
votes
2answers
68 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
0answers
24 views

Where to place functions and actions if functions.php is encoded? [duplicate]

I've got an encoded theme but I need to run this function on every post status change. So I don't know where to put this code cause function.php is encoded. I am using this function on another theme ...
0
votes
1answer
55 views

A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom

Everything was working well, but somebody wrote a post with the following inside: <iframe blablabla (a video) </iframe> <div style="clear: both; height: 3px; width: ...
1
vote
2answers
41 views

if ( is_home() && ! is_front_page() )

I see the following code a lot in index.php files. I understand that is_front_page() returns true when viewing the Site Front Page (whether displaying the blog posts index or a static page), while ...
1
vote
3answers
752 views

Copying theme from Localhost to Live does not copy all theme settings with it?

This has happened on a number of occasions now where I move my site from Localhost to Live environment and the theme settings such as the logo, and other settings are not copied with it, so I am ...
0
votes
2answers
2k views

Current theme broken - after server and domain migration

I'm migrating a Wordpress install and trying to get down the correct process for doing so. I've tried using the method I thought would work, but it didn't. My files and database are in place, but ...
3
votes
1answer
82 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
2answers
174 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
2answers
34 views

how to load rtl.css file before style.css [duplicate]

we all know that some languages have right to left "rtl" direction and we can add rtl.css file to modify theme layout in one of the languages that uses RTL direction. the problem here is that, when i ...
22
votes
3answers
9k views

Custom Post Type Templates from Plugin Folder?

I'd like to offer my custom post type as a Plugin, so that people can use it without touching their theme folder. But custom post type templates -- such as single-movies.php -- reside in the theme ...
0
votes
4answers
649 views

Is it possible to stop a theme activation when a certain plugin is not activated

So I am planning a theme that will depend on a plugin (for instance Timber or Themosis). So of course a theme will break if it can't use it's depending plugin's. So I would like a way to stop the ...
0
votes
1answer
10 views

Get images / media attached to a page by page ID

I have a series of pages which have images included on them by means of the HTML editor in the admin area. I need to access these while NOT on the the actual page in question, i.e, I need to access ...
1
vote
2answers
236 views

Theme broken after upgrading to WordPress 4.5, missing stylesheet?

Updating to WordPress 4.5 broke my theme, ThemeWoot Emulate. It appears that perhaps a stylesheet is somehow missing. Example symptoms: The mobile menu is shown by default The top search box is ...
0
votes
1answer
23 views

How to translate a string that contains a WordPress sitename

currently I have this code: <?php _e( 'Follow ' . get_bloginfo( 'name' ) . ' on Facebook', 'yanse' ); ?> But I just get Follow to translate and it echoes "Seguir 'Site name' on Facebook"
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 ...
0
votes
1answer
28 views

Wordpress add taxonomies/terms list as a menu in archive page

I create a custom post type (deals), terms (project), menu (top_menu) and archive page (archive-deals.php) on my theme. I want to display terms post list in archive page. But when I click terms menu ...
-2
votes
1answer
22 views

wordpress theme breaks in inserting an external php ? possible mistake in folder config?

I am new to wordpress and following is my scenario. I am inserting an external php script in wordpress by creating a new template in the theme and then using that template in a new page. When I do ...
1
vote
1answer
469 views

Divi Theme - images not showing on front page [closed]

I have been using the Divi theme for this site (http://www.evaecho.com) but all of a sudden without changing anything the images are not appearing on the front page (they are for all other pages). ...
0
votes
1answer
33 views

All custom links suddenly lack href attributes

Short version: before updating to WP 4.5 and on a day when the only known change was adding a page to a submenu via the navigation menu admin all of the menu links of type Custom Link where we specify ...
3
votes
1answer
36 views

Extra themes - ok or bad?

I know I am a newbie here, but I'm just wondering, if you keep extra themes in your Wordpress setup, will it add bloat to your site? Can these other themes provide a security risk even if they aren't ...
0
votes
1answer
25 views

TwentyFourteen Theme : Changing grid layout

I have been plugging away making my new site and it is going great with only one issue so far. How would I go about changing the featured posts grid so that instead of displaying 3 featured posts per ...
0
votes
0answers
23 views

How to List subcategories of a single category alphabetically

Imagine there is a category called Info ( id = 40 ) that has many subcategories . Now I want to show the ones that start with " A " and " D " somewhere else . Is there a way to kind of get ...