All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

How to make one click installation for theme which includes Elementor pages?

i make themes with Elementor but i dont know how can i make one click installation for them.the installation must include pages; which created with Elementor also need different plugins/addons which ...
-1
votes
1answer
24 views

How do I get information about a page, such as featured image, except, and title?

Assuming that I learn how to do this, how do I pull information about the user's selected page and display them? Obviously, I start with $mytheme_f_page[1] = get_theme_mod( 'mytheme_featured_page_1'...
0
votes
0answers
16 views

Custom theme index layout not displayed correctly

I'm making a custom theme that I'm planning to sell. I'm reading some guides about themes creation, I have already experience with wordpress but this time I want to make a nice theme. I'm facing a ...
0
votes
0answers
51 views

Pages not displaying as sections on static page

I'm currently working on the Twenty-Nineteen theme. I'm trying to make each "page" display as a section on my homepage. This has worked in previous themes (i.e. Twenty Seventeen), however I'm clearly ...
0
votes
1answer
23 views

How to code custom special page

I'm looking for how to code custom "special" page as use many plugins. An idea is that I have in theme links to the custom special page. Then admin can chose which of his pages is the one "special" ...
0
votes
1answer
15 views

How to show metabox on page if it is using a template

I was creating metaboxes for a special kind of pages. But i got stuck when showing metaboxes to the pages only who currently have the template 'Sky'. my template file name is sky-template.php and ...
0
votes
0answers
14 views

Correct approach to build dynamic links between translated pages

I have a simple website, www.recconsulting-services.com and I have the pages translated both in Italian and English. As you can see on top of the screen (header.php) I set two anchor flags images. If ...
0
votes
1answer
17 views

makeing a terms of use page that is part of the theme

I need to make a "terms of use" page. The only way I see to do so involves the user needing to manually add a page in the admin. But I need to implement it as an integral part of the theme. Is ...
1
vote
3answers
25 views

How to create a custom page(not a template) in a theme

I have been searching for theme developing info but all that are related to this subject are talking about a custom page at page.php. What I am trying to achieve is different. The scenario is that I ...
1
vote
1answer
30 views

Highest number of WordPress Custom Page Templates?

I'm little bit rookie in understanding WordPress core. But I would like to know that, is there any limit or should we limit to how many custom "page" templates we make in our custom theme? My ...
0
votes
1answer
27 views

Creating a theme just to deploy a single page

I'm working on creating a simple single-page web app for an art project. This is mostly a lot of JavaScript, and a custom UI. I was told early on that the organisation commissioning the piece will ...
1
vote
1answer
95 views

Convert a complex webpage into WP theme

I am new to the whole WP theme development, but I have undertaken a couple of courses and watched a few tutorials on how to convert HTML/PHP pages into a wordpress theme. However, every single ...
1
vote
1answer
623 views

Can't load WP function into external function

I created a bookshop website and got header function, footer function and login menu on my front page. All functions are declared in functions.php and connected to hooks. My front page runs ...
0
votes
1answer
198 views

Problem with Displaying Custom Theme Page's Content

I've created a custom theme, and I want to display a custom theme page that I created, whose file name is page-about.php. The only way that I know that it's possible to display custom theme pages in ...
0
votes
1answer
19 views

Show About and Contact Us page when they're clicked in the top menu.

I have a page.php file wich simply looks like this: <?php get_header(); ?> <div class="clear"></div> <div class="clear"></div> <?php get_footer(); ?> On the ...
1
vote
1answer
30 views

editing fonts of category links from the_category() funtion

I have multiple pages using content-featured.php I'm having trouble pasting the code.. that file uses the_category function The_category function displays names/links of categories. I'm having ...
0
votes
1answer
281 views

WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages

Can you WordPress Gurus please help! I have tried adding some code suggestions found on the web to my style.css file in my theme folder to solve my problems but they have no effect. I've have so far ...
1
vote
1answer
67 views

Populate editor with some content of a page with a page template

I have a page template like "page-salespage.php". what i'm trying to do is show default content in tinymice editor when this page template applies to a page. here's how i tried to achieve this, but i ...
0
votes
3answers
594 views

Use .php file as page instead of wordpress page & template file?

Im trying to find a tutorial for this but i can't seem to find one, and im just newbie in wordpress. Is it possible to use certain php file as page on a wordpress site instead of the regular ...
0
votes
1answer
435 views

How to add custom meta box when you have a custom page template file

I've been trying to add a custom meta box in the Edit Page panel for a page using a specific template, in this case front-page.php. I have attempted to use both get_page_template_slug( $post_id ) and ...
0
votes
1answer
21 views

Alter theme pages on language switch

I stumbled upon an issue that I'm not sure how to go forward with. My theme creates two pages on activation. The fact that there are two doesn't matter, it could be 10 pages but just for the ...
0
votes
1answer
351 views

wp_editor some functionality not working on custom theme

I am creating a custom theme. In this theme I have some custom options in the edit page screen. For this I have a custom button which appears and when clicked it opens a overlay div which I created (...
0
votes
2answers
402 views

How to track a users last visited page?

There are certain pages with a certain template in my wordpress site that all of them lead to a single page(S). I want the content of the single page(S) to change based on where the user has came ...
0
votes
1answer
529 views

Use WordPress function in php file

I have a WordPress Child Theme and I have added a php file to this child theme. Also I want to use WordPress functions in this file ( I want to show header, menu and footer ) So I try <?php $...
0
votes
1answer
48 views

Creating Slider in wordpress theme with custom post

Im trying to integrate an html template.It has a slider.Each of the slide contains 6 images.clicking on the image opens a modal,which contain details about the image.Currently im implementing this ...
0
votes
2answers
463 views

Display Featured Posts Grid on Static Page (Gazette)

I'm using the Gazette theme which has a jet pack enabled featured posts grid when the front page is set to show latest posts. I would like to use a static page instead of recent posts, but keep the ...
0
votes
1answer
111 views

how to get title to custom tags page

how to get title to custom tags page ? & how to make if condition like to my taxonamy if ( is_page() ) { the_title(); } elseif ( is_tag() ) { single_tag_title(); } tax: add_action( '...
0
votes
1answer
523 views

Display content on Single page

I am building a single page theme, And I am having a problem with get_post_meta() The Problem This code bellow does not work, and I cannot see anything on the website as it's blank. Here is my index....
0
votes
1answer
219 views

One-Page WordPress Template

I have created four custom PHP file pages page-about.php page-services.php page-portfolio.php page-contact.php I have entered custom php code for every page that will show up on the homepage as ...
0
votes
1answer
40 views

How to store a number (coming from cookie) into query vars for later usage in other filters?

I have a small HTML5 game playable (as "canvas") at different social networks, which sets an HTTP cookie. When a player comes to my WordPress site (acting as help and support website for the game), I ...
1
vote
1answer
327 views

Custom category code not showing all posts

I have a PHP template I am applying to several pages on my site so that they show a list of all posts in a category with the same name as the page. However, this is not working correctly in that posts ...
5
votes
1answer
127 views

Is it possible to manipulate the list of page templates?

After answering this question I wondered if it is possible to manipulate the dropdown list of possible page templates that's available when you edit a page. WordPress derives this list from the ...
0
votes
3answers
161 views

WordPress Load Only Page Text

I'm working on a page template and I need the_title to be separate from the page text. I'm not sure how to load the_content without it having the title. Can anyone help?
0
votes
0answers
74 views

Create a custom theme-specific page, invisible in the admin-panel?

I've learned that when I want a custom page, I need to create a page template, create my page and assign the template to it. Also I've read about fake/virtual pages, where the page is generated on the ...
0
votes
0answers
873 views

How to create multiple pages in a client theme?

How do you go about creating multiple pages in a single theme? Say a clients existing website is just a non wordpress site, using multiple HTML pages and a single CSS stylesheet. You have a homepage ...
0
votes
1answer
24 views

How to add pages in wordpress using codes?

I am trying to add wordpress pages using codes on theme activation. But the main problem is i cannot check whether the page with that particular slugs exist or not. Our code looks like this : ...
0
votes
2answers
34 views

How does the loop know which post to view?

I think I have understood most of how to create my own themes but this one thing: How can a loop in say page.php know which page to view when it loops through all the pages on my site? If I load one ...
0
votes
1answer
75 views

How can I display and excerpt of all pages with a meta_key and meta_value on index.php?

I need to create some pages with a custom field called categoria-pagina so I can display a list of these pages and their excerpt on my theme's index.php. I have already tried the code bellow, but if I ...
0
votes
2answers
70 views

Create fixed static pages

I have inside a theme two important static pages. One is a confirmation page (after signing up for a newsletter) and the other one is a thank-you page. I am using these in various functions and ...
0
votes
1answer
804 views

Pagination fuction in shortcode always displays on top

Pagination function in shortcode always displayed on the top. Please have a look on below code /*-------------------------------------------------------------------------*/ /* Custom Pagination */ /*-...
0
votes
1answer
86 views

Advantages/Disadvantages Using Theme Editor Instead of Pages

I'm working on a site and I prefer to create the site using the WordPress pages system. A co-collaborator assisting me with the site prefers to add pages using Theme Editor. My first thought what is ...
1
vote
1answer
1k views

page.php showing loop of posts and not page content

My front page displays the latest posts using index.php. My page.php contains the wp_header up top, the wp_footer below, and this in between: while (have_posts()) : the_post(); get_template_part(...
0
votes
1answer
147 views

Injecting pre-defined text from custom page template to editor

I am creating a custom page template: < ?php /* * Template Name: sliding content * Description: Sliding category contents */ get_header(); ?> <div id="primary" class="content-area"> ...
1
vote
0answers
31 views

how to setup custom content structures

I have some custom pages I need to develop, and I want them to be easily edited by my client. The problem is that the markup is fairly complicated, I want to be able to give them the ability to edit ...
0
votes
1answer
813 views

Theme development: menu links a tabbed page with page jumps

This might sound like a basic question, but It is my first time developing for wordpress: I am developing a theme, I need to have: A landing page with navigation menu Another page that the landing ...
0
votes
1answer
37 views

Can you create a custom page with content in the center already defined?

Is this possible? So for example, you select from the templates a page called "custom-blog-home" and on this page in the centre you have two section, one is a set of blogs being pulled in and styled ...
0
votes
1answer
61 views

how to make a new page affected by a theme's index.php layout?

I need to create some new pages for my website e.g. Gallery, Audio collection, etc. I want them to have a layout similar to my theme's index.php. How can I do this so that the layout updates for the ...
0
votes
1answer
57 views

Issue On Displaying Pages with Post Name Permalink

I have a simple Theme like below Right now when I navigate to localhost and site root directory I am able to see content from header.php , footer.php and page.php. then, I simply generated some ...
1
vote
2answers
381 views

Where can I access my custom page template?

I understand that to create a new page template, all I have to do is create my custom template (in this case, page-custom.php) file, and save it in wp-content/themes/mytheme/. However, where can I ...
0
votes
2answers
42 views

Why in the static pages of my theme are showing these information?

I am working on a WordPress theme and I have some problem with the pages\posts layout. For example if you go here: http://lnx.asper-eritrea.com/lassociazione/ This is a static page that show some ...