All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

How do I bring a page template into a new theme with separate styling?

I currently have a page template that I have striped of all major styling within a theme (twentyninteen-child). I have a new child theme (event), that this page/template will sit under and am having ...
0
votes
2answers
93 views

12 column grid layout

I'm Looking for a way to create the grid as on the pictures. A 12 columns based layout with a simple way to add text, images, video etc. etc. Tried the Bootstrap way without success. I’m up for ...
1
vote
1answer
499 views

Is it possible to access Gutenbergs reusable blocks in CPT block templates?

What I am trying to do is to use specific Reusable Blocks, that are editable by certain admins in the back end, within block templates for custom post types. So if you register a CTP or edit the ...
0
votes
0answers
11 views

Homemade global template, advice?

For the theme I’m using there is a hook for an area just above the footer section and here I would like to output different ”banner sections” that are ”prepared globally”. So for each ”banner section”...
0
votes
0answers
23 views

index page link tag injected with wrong href attribute

Recently when I've updated my wordpress site to the latest version, the website has become incredibly slow because stalling occurs when trying to load a corrupt href link: the href attribute should ...
1
vote
1answer
105 views

create-guten-block in wordpress theme?

I'm working on a wordpress theme and want to replace my shortcodes with gutenberg blocks. I'm new to working with blocks but having looked into it a bit I've decided to try and use create-guten-block ...
0
votes
1answer
36 views

Second Loop Showing Only One Post on Single Post Page

The single.php page I am working on was able to display two loops successfully, the first being the actual page's post, and the second loop displaying the last 5 posts. However, since I have styled ...
3
votes
1answer
2k views

How to override the “inc” folder (or any folder) in a theme using child theme?

I am using Storefront theme (But question isn't specify to this theme, I am asking question for any theme). I can easily override files like header.php, footer.php using child theme(just copy and ...
1
vote
1answer
119 views

How to remove howdy dropdown menu content

I would like to know how I can remove content inside .ab-sub-wrapper but keep Log Out and Edit My Profile links? Just want to keep thing nice and tidy
0
votes
2answers
39 views

How to make “upgrade safe” theme for a plugin?

I've installed a "Cart and Checkout" WP plugin and am trying to make sense of a statement found on the plugin author's website: "Make your own order form template, that upgrades safe and reside in ...
0
votes
1answer
23 views

How do I target this page specifically?

I have created a Wordpress site, and am looking to hack the template so that I can have a background image at the top of my page (with the menu on top), and for the content of the page to directly ...
-1
votes
2answers
487 views

WP Customer Reviews call short code on another page [closed]

I have created some theme page and I want to call WP Customer Reviews shortcode echo do_shortcode('[WPCR_SHOW POSTID="' . $post->ID . '" NUM="1" HIDEREVIEWS="0" HIDERESPONSE="1" HIDECUSTOM="1" ...
0
votes
1answer
27 views

Selected template is not respected for home page in Wordpress

I have a theme, and I made two new files for different templates. I can now pick these templates when I post a page: This works perfectly when I go to any subpage. I made a page called Test, selected ...
1
vote
3answers
143 views

How to find a file in WordPress themes [closed]

I want to edit footer copyright section. How to know where is the file if the footer.php file doesn't contain full coding? My theme footer.php file contains such do_action. Please explain me. ...
1
vote
0answers
17 views

Advanced Custom Field DatePicker [closed]

I am using Advanced custom field + Advanced Forms (Fabian Lindfors) for appointment form. I am wondering whats the best approach to dynamically disable first two weeks in datepicker? For example if I ...
5
votes
1answer
96 views

How can I have two different urls for the same page that load two different templates?

I have the following page: http://liquidchurch.com/messages/ It appears fine on desktop and mobile web. I'm working on a mobile app and using a web view to encapsulate the page within the app. ...
-1
votes
1answer
159 views

How to add sidebar to homepage programmatically?

I am new in WordPress. I have just created my personal blog. Sidebar widgets is appearing in all pages except homepage. I have realized that I have to add some code manually to home-page.php to show ...
2
votes
1answer
20 views

I am trying to output portfolio items with a picture. This code doesn't seem to be working. What am I doing wrong?

<?php $temp = $wp_query; $wp_query = null; $wp_query = new WP_Query(); $wp_query->query('showposts=21&post_type=portfolio'.'&paged='.$paged); $count = 0; while ($wp_query-&...
0
votes
1answer
67 views

What is the point of using the front-page.php template? [closed]

You can use front-page.php to create a static front page, it will override all other templates and static front page settings, but the problem is that you can't edit the front page then. You can't ...
0
votes
2answers
899 views

Custom post type is using the index.php template

Here i read that if i create a custom post type, Wordpress will look to its specific template first, then it falls back to single.php. I registered a custom post type (i'll show the taxonomy as well),...
1
vote
1answer
497 views

Override template file i subfolders

What is the correct way to override theme template files in subfolders with a child theme? I wan't to override a theme template file with the following path: /components/theme-header/ Do I have to ...
0
votes
2answers
2k views

Overwrite template-tags.php in child theme

I would like to overwrite some content which is located in (inc/) template-tags.php file on parent theme. Content need to be changed is in function footer_content_widget_area in template-tags.php ...
1
vote
1answer
39 views

Single Page theme [closed]

I would like to build a wordpress website which is inspired by the home page of the Ace Hotel http://www.acehotel.com/neworleans. I need the content to be easily updatable by the users (non developers)...
0
votes
2answers
47 views

Need help with making a website where user can add products

I need help and advice how to make an website where user register and add products to the sites. There shouldn't be any paying function, just a user interface and the products that users add can be ...
2
votes
1answer
813 views

How can I get wp_head() as a string instead of echoing it?

I'm using PHP handlebars templates and would like to keep all of the HTML in the template file so I don't have a header.php but rather the handlebars looks like <html> <head> {{#...
5
votes
1answer
875 views

Page template in two level deep folder

Is this possible to enable WordPress to read page templates on .php files that are two levels deep inside the theme folder? Example: theme/ folder-1/ child-folder-1/my-template.php ...
1
vote
1answer
39 views

Set a them for all subset of category

I know I can set a theme template for any category , which sets the name of php file like this: category-16.php But there are many subsets for my category16. I want that template set for all of ...
3
votes
0answers
150 views

Change Theme from Plugin based on query_vars

I'm working from about 4 months on developing a Plugin. This plugin make in a page an entire app, using the powerful of Wordpress. So, I've decided to create a serires of rewrite rules using command ...
1
vote
2answers
992 views

More than one text-domain is being used because of the included templates for plugins

I added bbPress and WooCommerce in my theme and override some templates too. These templates contains textdomains like bbpress and woocommerce. Unfortunately I got the following error in Theme-Check: ...
0
votes
3answers
158 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
1answer
6k 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 ...
1
vote
1answer
190 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://...
17
votes
3answers
111k 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 ...
-2
votes
2answers
131 views

Divi Template A Few Questions

I'm new and getting stuck into to WordPress and really like the Elegant Theme Divi option, however I have a few questions I was hoping someone could help with. I do require that the site I build can ...
0
votes
1answer
584 views

Use another theme template in my theme

I want to use a different theme's portfolio page in my theme. I just want the content (portfolio layout of the other theme) but my own (active theme) header, footer, sidebar, and everything else. Is ...
1
vote
1answer
43 views

How to customize core admin pages within a theme?

Say I'm building a WordPress theme, and when this theme is active I want to display customized versions of some admin pages. Let's suppose I want a custom "Widgets" page: I can find the template for ...
0
votes
1answer
41 views

Theme Dev | Convert Template to Theme

What is the solution in theme development for section in this template Home Page so user can edit from admin panel. "Main Features" Section, at bottom of slider, it says "Strong Structure", "Global ...
0
votes
1answer
2k views

Child theme Page Template not loading

I've currently setup a multilingual multisite. But one page isn't picking up the parents page template. Working: http://www.jeroenbrugman.com/contact Not working: http://www.jeroenbrugman.com/en/...
1
vote
1answer
318 views

Change submenu markup

I've seen people recommending to edit the wordpress default Walker to change the menu markup and create your own. The problem with this is that I would like to change the markup of the submenu and ...
-1
votes
1answer
282 views

Which template file to edit to edit homepage in Mystile [closed]

The homepage I'm using is not a static page, and I'm currently trying to add a content slider to it using master slider. I'm not too sure which file the homepage takes on as it's template, so I'm not ...
0
votes
1answer
99 views

us states dropdown function and echo in theme template files

This may seem like a stupid question but for whatever reason I cant find an answer that works for me.. -- I am trying to create a simple html drop down function in functions.php so I can then echo it ...
0
votes
1answer
261 views

Is the “_s” on this `sprintf(__('Page %s', '_s'), max($paged, $page))` just refer to a text domain?

Is the '_s' value in such code which can be found on Customizing with the filter, just refer to a string of a text domain as what's documented or a literal value? /** * Filters wp_title to print a ...
0
votes
1answer
307 views

How to pass a variable from a template page to the child theme functions.php

I'm searching for a way to pass a variable from a custom Wordpress page template to my child theme functions.php file. I have the wrong scope and I'm completely lost. I'm trying to generate a google ...
-1
votes
1answer
23 views

What happens to bespoke page template references on theme change?

Apologies if this has been asked before, I have searched for an answer but perhaps aren't quite using the correct terminology. I have inherited a WordPress site that uses a custom theme. Within the ...
0
votes
1answer
137 views

Choosing different templates for categories

I was searching about changing the default template of the categories in WordPress, I saw the codex which says that the only way by making a new file with the slug or the ID of the category, like this ...
0
votes
1answer
61 views

Show posts from all categories

I have a site with 5 different categories, each of them with a notices section. I would like also to have another section to see the latest notices from any category. So far, I figured out that I can ...
7
votes
2answers
442 views

View WordPress page template usage (or unused)

When I create a new page within WordPress, I have the option of specifying which template to use from my theme (from a dropdown list on the right-hand side of the interface). I need to find which of ...
0
votes
1answer
83 views

Create theme for mobile phones and tablets only?

I've been checking the docs but I only found a way to use different style sheet for phones and tablets. Is there a way to create another different theme only for mobile phones and tablets? And I'm ...
0
votes
2answers
829 views

Advantages of wordpress theme vs wordpress as a backend only [closed]

I've been wondering what would be the best option: Creating a wordpress theme Using wordpress only as backend and using a MVC framework for the rest I've never worked with wordpress themes before, ...
0
votes
1answer
174 views

Create a Page template selector page

I'm running around with an idea in my head that I would like to make but I don't really know how or where to start. In a custom theme I had to make serveral templates for one of my clients. I ...