Register Now


By registering, you agree to the Terms of Service and Privacy Policy.

Login

Forget


Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.


Add question

Please type your username .

Please type your E-Mail .

Please choose an appropriate title for the question to answer it even easier .

Please choose the appropriate category so others can easily search your question.

Please choose suitable Keywords Ex : question , poll .

This question is a poll ? If you want to be doing a poll click here .

Browse

Anonymous asks

Do you need a video to description the problem better ?

Choose from here the video type .

Put here the video id : https://www.youtube.com/watch?v=sdUUx5FdySs EX : 'sdUUx5FdySs'.

Notified by e-mail at incoming answers.

By asking your question, you agree to the Terms of Service and Privacy Policy.


x

Login

Forget


Register Now

Thank you for registering with WPTricks

Create an account
x
  • Login
  • Add Post
  • Badges
  • Contact Us
Ask a Question
  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

Login

Forget


Register Now

Thank you for registering with WPTricks

Create an account
  • Login
  • Add Post
  • Badges
  • Contact Us

wptricks

  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

templates

Home/ templates

How to get custom page template being edited in gutenberg editor

Question
I want to know custom page template name (the one chosen in page attributes - template) in PHP, before page opens in order to enqueue additional scripts according to chosen template. I know how to get this information in javascript admin frontend part, however it would be more convenient if I cou
0
admin, block-editor, customization, pages, templates Lovor 2 years 0 Answers 55 views

How to add attributes to tag when template cannot be directly modified

Question
This is similar to How to add data- attribute to <body> tag but different in that I am n ow searching for a solution that does not require modifications to the template file. I ha
0
filters, hooks, templates Daveh0 2 years 0 Answers 65 views

Are there any guidelines/standards for post styling?

Question
I am a beginner in Wordpress Theme development. I have been trying to create my first theme and I have already started by adding some basic styling. I am using single.php as a template for loading the content of a single post. I started by applying some basic layout, margins and padd
0
posts, templates, theme-development Abrar Hossain 2 years 0 Answers 57 views

Default Template Selected After Changes in Elementor

Question
I'm working with custom templates in WordPress. I'm using the Elementor plugin to build the site. When I open any page and make some changes in Elementor and then click the update button, I see that the default template is selected automatically. e.g Before updating the pa
0
page-template, templates Ali Bhutta 2 years 0 Answers 53 views

Modify the order to display: post title – thumbnail – excerpt for odd column?

Question
Hi to all I'd like to modify my wordpress template (blog-entries category) to display starting from column4 and only for odd columns: 1) thumbnail 2) post title 3) excerpt. The now schema is title-thumb-excerpt for all columns. For selecting odd column I thought about NTH-CHILD selector but I don
0
templates Ric 2 years 0 Answers 62 views

Uncaught Error: Call to undefined function twentytwenty_the_post_meta()

Question
I'm working with WordPress customization, I created a template who has the following code <?php /* Template name: Master Template */ get_header(); ?> <body> <?php if(have_posts()): while(have_posts()): the_post(); the_content();
0
customization, fatal-error, templates, wordpress.org Ali Bhutta 2 years 0 Answers 59 views

Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?

Question
So I'm currently using Woocommerce and managed to figure how to override templates based on the documentation. Now I have a problem, so i managed to override a specific template let's say upsell.php. Right now I need to create another upsell.php template that provides a
0
php, templates, woocommerce clestcruz 2 years 0 Answers 40 views

Passing variables to template parts

Question
I have one template file videos.php which has the following line of code in it (aswell as a load of HTML): <?php get_template_part('loop', 'feed-videos' ); ?> inside that template part, I have the following: <?php $video = 'video-
0
get-template-part, globals, include, templates, variables pealo86 2 years 0 Answers 57 views

Adding a custom page template to a plugin generated page

Question
I have a page template, which is fully working throughout the website other than the pages where the plugin has generated a page such as a job description page, as the plugin that I am using is WP Job Manager. I have tried to include the php file in the functions of the theme and also the templat
0
plugins, templates miotk 2 years 0 Answers 45 views

Change title only in dynamic page

Question
I've been trying to change the title in a dynamic page without any luck. What I did is I created two page-templates from where I load items (occasions) from an external database. In one page-template I load the single-page occasion: <?php include 'Occasions-files/single
0
page-template, php, seo, templates, title Ptrckk 2 years 0 Answers 50 views
1 2 … 19
  • Recent
  • How to Fix the Error

    If you get an error message “Error Establishing Database Connection,” this means that your website is unable to connect to ...

    May 30, 2021
  • Onitir – IT Solutions WordPress theme

    Onitir - IT Solutions WordPress

    LIVE PREVIEWBUY FOR $29 Onitir is a Modern & ...

    September 18, 2020
  • WhatsApp Chat – WordPress WhatsApp Chat plugin

    WhatsApp Chat - WordPress WhatsApp

    March 19, 2020
  • Tabula – Art, Music & Language School

    Tabula - Art, Music &

    Tabula – Art & Language School WordPress Theme Tabula is a Multi-Purpose WordPress Theme for all kinds of ...

    March 19, 2020
  • Mega Posts Display for Elementor – Premium WordPress Plugin

    Mega Posts Display for Elementor

    Welcome to Mega Posts Display for Elementor. With this awesome plugin for Elementor you can create a posts layout ...

    March 19, 2020
  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

Recent

  • How to Fix the Error

    If you get an error message “Error Establishing Database Connection,” this means ...

  • Onitir – IT Solutions WordPress theme

    Onitir - IT Solutions WordPress

    LIVE PREVIEWBUY ...

  • WhatsApp Chat – WordPress WhatsApp Chat plugin

    WhatsApp Chat - WordPress WhatsApp

Popular Questions

  • How to echo the_excerpt without

    In the code snippet below, I trying to get the_excerpt to be ...

  • How to update meta fields

    I have an app written in Delphi and Indy components for Windows ...

  • 404 error - Page not

    ...

Copyright 2019 WPTricks - WordPress Tips, Tricks and Hacks | Privacy | Terms

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.