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)

3
votes
2answers
47 views

Finding Page Template and Displaying Content

So, I'm building a theme for a client with one page layout functionality. Currently, I'm allowing the user to create a parent page, and the modules within that page are separate pages that will be set ...
0
votes
1answer
26 views

underscores use of the article element on the page template

I understand and what I have seen the most is the use of the article element for blog/news posts. This makes total sense to me. article element to be used for content that can stand alone or ...
-1
votes
2answers
104 views

Wordpress Add javascript:void(0); to menu link item?

I want to add javascript:void(0); to menu link item instead of # but it is not accepting any JavaScript. Now i am thing to replace # with javascript:void(0); using filters, but could not find the ...
0
votes
2answers
47 views

Renaming a theme so it aids SEO and the theme used is hidden

We are using the Divi theme for our Wordpress site, we have also activated a Child Theme that we have named our SEO keyword. However, when you look in the "View Source" and Theme Sniffer Chrome ...
4
votes
1answer
269 views

Is the theme customizer slowing down my site?

I have built an awesome theme, which is very flexible, because it has 500 settings in the theme customizer. I generate the live css like it says in the codex: function mytheme_customize_css() { ?&...
0
votes
3answers
47 views

How to create custom layouts and static pages in themes for clients

How do I build goodlooking, custom pages into my themes. I've decided to use underscores to create custom client themes, as I need complete freedom in design, and all the tutorials I've found on theme ...
1
vote
2answers
34 views

How to remove background image from post navigation elements?

I am using a theme which shows the featured image as background image in post navigation elements (next and previous links on a single post). But I want to remove these background images. Here is ...
2
votes
1answer
39 views

Theme-Config tab in admin Pannel?

Sorry, for my broke english. There are few questions that I'd want to ask that got me quite confuse. I will try to phrase and describe my question the best way I could. Starting with a bit of ...
0
votes
1answer
23 views

Using activated_plugin to run code

I am using Site Origins Page Builder plugin and want it to install when my theme is installed, so to do that I am using TGMPluginActivation. This correctly installs and activates a bunch of plugins. ...
6
votes
4answers
290 views

What WP folder can I use to write files to?

I am working on a theme that uses dynamic in head CSS and gives admin an option to also place the same in a file. Problem is that I am not sure what WP folder is always writable. I originally added ...
1
vote
1answer
30 views

Single Theme folder for Multiple Wordpress

I ran into a scenario where I want to achieve this. WordPress Site 1 WordPress Site 2 WordPress Site 3 WordPress Site 4 I want theses four sites to have a single theme folder and it get themes and ...
6
votes
1answer
60 views

When cropping a header image, retain meta data (i.e. name, description, etc.) from original image?

I'm currently using WordPress's built in Custom Headers to get images for a slideshow on the homepage of my website. For the most part, this has worked as intended; it allows me to upload a set of ...
0
votes
1answer
32 views

Wordpress Fatal error: Call to undefined get_header() in index.php on line 15 [closed]

I downloaded a wordpress theme recently and i tried to run it but it gives me an fatal error shows that call to undefined fatal error(). Why this error generates ? I am a new bie to wordpress theme ...
0
votes
2answers
33 views

Call wp-blog-header.php header without performing a wp_query

I have setup .htaccess to map a custom url to a custom php script. This page is not part of wordpress, but i want it to use the wordpress theme. At the top of the script I load up Wordpress. And from ...
-5
votes
2answers
50 views

Is there any open source WordPress Themes?

I am a WordPress Plugin Developer. But I need to create two custom WordPress themes for a client (Client will sell those themes). It is hard me to start WordPress theme development from scratch. So ...
1
vote
2answers
46 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
1answer
46 views

Load all files from folder in theme – Security concerns?

I'm using this code below in a config file to automatically require other PHP files in the same directory and in subdirectories. This helps my work flow become more efficient. I'm concerned that I ...
0
votes
0answers
29 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: ...
2
votes
0answers
29 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
3answers
37 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 ...
-4
votes
1answer
28 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.
0
votes
0answers
19 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
32 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 href="http:/...
1
vote
1answer
34 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
19 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
0answers
75 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
15 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
1answer
44 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
24 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
20 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 ...
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 ...
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 ...
1
vote
2answers
83 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 ...
4
votes
2answers
81 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 ...
3
votes
1answer
91 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' ...
1
vote
1answer
94 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
2answers
45 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 ...
0
votes
2answers
378 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
15 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 ...
0
votes
1answer
25 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
1answer
34 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 ...
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
23 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 ...
0
votes
0answers
55 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
1k 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
44 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 ...
1
vote
2answers
335 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 ...
3
votes
1answer
37 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
0answers
29 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 ...
0
votes
0answers
26 views

How do link to the most recent post in a category (Cornerstone theme)?

Hello friends :) I am in a pickle. I am creating a website in X/Cornerstone for an artist who has many projects , each has of which has its own Wordpress site. All of them rely on blog posts to ...