Provide zblog template_zblog them_wordpress template download and customization

Emlog distinguishes between homepage template and list page template

Tianxing Studio 2015-05-17 22:19 Emlog Tutorial twelve thousand nine hundred and twenty-one 3 Comments


emlog It is a light blog program and has no home page Template Of. "Log_list. php" is the template file shared by the home page and the list page.

What if the home page and list page are completely different when encountering a more complex emlog theme?

At this time, it is necessary to distinguish between the homepage template and the list page template. The codes are as follows:

 <? php if($pageurl == Url::logPage()){include View::getView('index');exit;}?>

Put it at the top of "log_list. php", and then create a new "index. php" file, which is the emlog homepage template file.

The previous screenshot shows the specific location of the code:

 Emlog distinguishes between homepage template and list page template emlog homepage template file emlog template emlog tutorial page 1


Can't find a tutorial that can solve your problem?

You can try to search or ask questions directly online. We also provide charging technical support. If you need it, you can contact us online.

Online questions Online Service

yes three Comments from netizens:

  •  Jiang Chen

    Jiang Chen Seven years ago (2017-02-04) reply

    Boss, how to enter the list page?

  •  Netizens of Tianxing Studio

    Netizens of Tianxing Studio Nine years ago (2015-06-06) reply

    Don't you think the theme editing plug-in of emlog is very useful, with code highlighting, and zblog doesn't have it...

    •  Tianxing Studio

      Tianxing Studio Nine years ago (2015-06-06) reply

      I don't think zbp has kod. For our theme developers, kod kills the theme editing plug-in of emlog

welcome you Comment: Cancel Reply

 Please fill in the verification code
  • Latest articles
  • Hot article ranking
  • Most Comments
Label aggregation
  • Sign in
  • Registered account Forgot your password?
  • register
  • Already have an account? Direct login Forgot your password?
  • Social account login