Skip to content

Add Akshant News Pro WordPress theme starter and plugins guide - #2

Open
journalist-prashant-tiwari wants to merge 1 commit into
mainfrom
codex/clone-prabhat-khabar-website-template
Open

Add Akshant News Pro WordPress theme starter and plugins guide#2
journalist-prashant-tiwari wants to merge 1 commit into
mainfrom
codex/clone-prabhat-khabar-website-template

Conversation

@journalist-prashant-tiwari

Copy link
Copy Markdown
Owner

Motivation

  • Provide a ready-to-use WordPress news theme inspired by Hindi news portals for deployment on a WordPress site for Akshant Media Solution with Owner branding for Prashant Tiwari.
  • Deliver a complete starter theme (templates, styles, minimal JS) so the site can show a breaking strip, hero story, story grid and archives out of the box.
  • Include a concise list of required ("jaruri") plugins and setup steps to make the theme production-ready.

Description

  • Add a new theme at wp-content/themes/akshant-news including style.css with theme metadata and responsive styles.
  • Add functions.php to register theme supports, a primary menu, enqueue stylesheet/assets/js/main.js, and register a homepage widget area.
  • Add template files header.php, footer.php, front-page.php, index.php, and single.php implementing the homepage layout, post listing, and single post view.
  • Add assets/js/main.js as a placeholder and README.md documenting setup steps and recommended plugins.

Testing

  • Ran php -l across the theme PHP templates (wp-content/themes/akshant-news/*.php) and the command reported no syntax errors.

Codex Task

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d5dcdbf271

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<h2 class="section-title">ताज़ा खबरें</h2>
<section class="two-col">
<?php
$latest = new WP_Query(['posts_per_page' => 6, 'offset' => 6]);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Ignore sticky posts in the third homepage query

The "latest" section query omits ignore_sticky_posts, while the hero and side queries explicitly set it to true. When a site has sticky posts, WordPress re-injects them at the top of this third query, which can duplicate stories already shown above and make the offset skip the wrong non-sticky posts. Add ignore_sticky_posts => true here to keep homepage sections consistent and non-overlapping.

Useful? React with 👍 / 👎.

'theme_location' => 'primary',
'container' => false,
'fallback_cb' => function() {
echo '<ul><li><a href="#">होम</a></li><li><a href="#">देश</a></li><li><a href="#">राज्य</a></li><li><a href="#">खेल</a></li><li><a href="#">मनोरंजन</a></li></ul>';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Provide a functional fallback navigation menu

If no menu is assigned to primary (the default right after theme activation), the fallback outputs links with href="#", so every item is a dead link and main navigation is effectively broken until manual setup. A fallback should route to real pages (e.g., wp_page_menu) or be disabled, rather than rendering nonfunctional links.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant