=== Ideo ===
Contributors: themestick
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A lightweight WordPress theme for magazine and news sites, focused on speed and Core Web Vitals.

== Description ==
Ideo is designed and developed by themestick.com. It is built around speed and Core Web Vitals and comes with featured stories, category-based feeds, editor's picks, a newsletter area and a modular homepage managed with widgets. It includes a dark theme, a mega menu, a side drawer menu and a built-in newsletter subscriber list.

Design and development: themestick.com (https://themestick.com)

== Support Ideo ==
Ideo is free. If it helps your site, please consider a small donation:
https://themestick.com/donate
Every contribution keeps the updates coming. Thank you!

== Installation ==
1. In your WordPress admin go to Appearance > Themes > Add New > Upload Theme, choose the theme zip and activate it.
2. Go to Appearance > Menus and assign menus to the "Main Menu" and "Footer Menu" locations.
3. The theme builds the homepage itself, so you do not need to set a static page in Settings > Reading. On first activation, the "Homepage Modules" area (Appearance > Widgets) is filled with a starter layout of 7 modules that you can edit, reorder or delete. If the area is empty, a hero section shows your latest posts.
4. Open Appearance > Customize to set the accent color, default theme, header button, footer, newsletter and social links.
5. Posts without a featured image use a dark placeholder so the design does not break. For the best look, add an image to every post.

== Homepage modules ==
Find the "Homepage Modules" area under Appearance > Widgets and drag the following modules into it. All of them can be added more than once, and each instance has its own post selection.

- Ideo: Main Headline - 1 large post and 2 side posts. Turn on "Split the bottom-right card in two" to show 4 posts.
- Ideo: Scrolling Posts - a horizontal strip of posts scrolled with arrow buttons.
- Ideo: Category and Tag Strip - a filter strip of categories and tags; it becomes a carousel when there are many items.
- Ideo: News Ticker - a thin strip that scrolls headlines and announcements. It pauses on hover or keyboard focus. If you do not add it, it is not shown.
- Ideo: Headlines Board - 3 small items on the left, 1 large featured story and a row of 3 cards on the right (7 posts in total).
- Ideo: Discover Strip - the "Browse by mood" strip. Each of the 6 circles can show a category, a tag or a post, with a color or a custom image.
- Ideo: Showcase and Sidebar - an optional large post and a card grid on the left, and a sticky sidebar on the right with up to 15 items (Small Post, Card or Banner).
- Ideo: Editor's Picks - one large post and up to 2 compact cards.
- Ideo: Post Feed and Sidebar - a list of posts with a sticky sidebar. If the sidebar is empty, the 5 most read posts are shown.
- Ideo: Popular Posts - a short list with small images.
- Ideo: Banner and Ad Space - one banner image or an ad code (AdSense). Every banner, including banners in the sidebar of the Showcase and Post Feed modules, has a "Show on" setting: desktop and mobile, desktop only or mobile only (tablets and phones, 1023 px and below, count as mobile).
- Ideo: Newsletter Signup Strip - an email signup strip with editable texts and background color.
- Ideo: Company Pages - a list of selected pages (About, Contact, Imprint, Privacy, etc.).

Posts in the Hero, Stories and similar modules can be pinned by entering post IDs or links, filled automatically by category and tag, or left empty to show the latest posts. A post shown in one module is not suggested again in the following modules on the same page (posts you pick by hand are not affected).

Auto-fill order: modules managed by ID/link, category and tag have an "Auto-fill order" option. "Latest posts" is the default; "Random posts" picks from the newest 100 matching posts. The pool size can be changed with the `ideo_random_pool_size` filter. Manually entered posts always come first. Random selection is made on the server while the page is built, so layout shift is not affected. If you use a page cache, the list stays fixed until the cache is refreshed.

== Newsletter ==
The newsletter form works out of the box. If you do not enter a "Newsletter form target URL" (Mailchimp, etc.) under Appearance > Customize > Ideo Theme Options, submitted email addresses are stored inside WordPress. A "Newsletter Subscribers" screen appears in the admin menu where you can view, search and delete subscribers (only administrators can see it, because email addresses are personal data). The form is protected with a nonce, email format validation, duplicate prevention and a hidden honeypot field. If you enter a target URL, the form posts directly to it.

Newsletter modal: if the link of the header "Subscribe" button is left empty, a newsletter window opens. Under Appearance > Customize > Ideo Newsletter Modal you can edit its title and description, set separate "open automatically on scroll" options for the homepage and post pages (the percentage of the page scrolled), and choose how many days it stays closed after being dismissed. Visitors who subscribe or close the window are not shown the pop-up again. Automatic pop-ups that cover the content on mobile can run into Google's intrusive interstitial rules, so keep the scroll percentage high if you use them.

== Recent Posts page ==
Tick "Enable the Recent Posts page" under Appearance > Customize > Recent Posts Page to get a page at /recent-posts/ that lists all posts in the same design as the category page. You do not need to create a page in the admin. There are separate options to show it in the header menu and in the side drawer menu; when on, it is added right after the home item (first, if the menu has no home item). If you added an item pointing to this address by hand, no automatic item is added. When the option is off, the address returns a 404.

== Customizer ==
- Support Ideo: a short note about donating to the project.
- Ideo Theme Options: accent and hover colors, default theme (light, dark or system), dark theme logo, social media URLs and more.
- Ideo Header Button (Subscribe): button text, link and whether it opens in a new tab. If the link is empty, the newsletter modal opens.
- Ideo Newsletter Modal: title, description and automatic opening settings.
- Ideo Post Page: show or hide the author, date, reading time, comment count, share buttons and text size buttons. You can also upload an author image (used for every author) and the author name links to that author's post archive.
- Ideo Contact Page: the details shown in the Contact page template and the email the form is sent to.
- Ideo Footer: page selections, footer texts and the copyright line ({year} and {site} shortcuts are available).
- Recent Posts Page: see above.

== Dark theme ==
- Visitors switch themes with the moon/sun button next to the search button; the choice is stored in the browser (localStorage). Without a stored choice, the "Default theme" setting (Light, Dark or System) is used.
- Under Appearance > Customize > Site Identity you can upload a "Dark theme logo". If you do not, the site logo is turned white automatically on dark backgrounds.
- The theme is set before the first paint, and only colors change, so layout shift is not affected.

== Side drawer menu ==
The hamburger buttons open a drawer with the main menu (submenus open with an arrow button), the latest 5 posts and your social icons. The latest posts are loaded when the drawer is first opened and cached for 15 minutes, so their images do not affect page speed.

== Contact page ==
Create a page and choose the "Contact" page template. The form is sent by AJAX with nonce validation and a honeypot field.

== Social media ==
Under Appearance > Customize > Ideo Theme Options there are URL fields for Facebook, X, YouTube, Pinterest, Instagram, LinkedIn and "Other" (three-dot icon). Filled ones appear in the header, the side drawer and the footer, in the same order.

== Performance notes ==
- Fonts (DM Sans, Playfair Display, Poppins) are served locally from assets/fonts/ with font-display: swap; there are no Google Fonts requests. The critical fonts are preloaded.
- A single small main.js is loaded with defer; no jQuery or other runtime library is needed.
- Emoji scripts and styles, unused head links and jQuery Migrate on the front end are disabled.
- The hero image is the LCP candidate, so it is marked eager with high fetch priority and preloaded in the head. If the hero module uses the "Random" order and has no manually selected post, the image cannot be known in advance and no preload is added; for the best mobile speed use the "Latest posts" order or select posts by hand.
- Other images use WordPress's default lazy loading together with automatic width and height attributes.
- The "Most read" lists do not use a view counter that writes to the database on every page view, since that hurts performance under heavy traffic; they sort by comment count instead.
- A new image size (ideo-hero-m, 768x525) is used for hero images. If you install the theme on an existing site, run a thumbnail regeneration plugin once so older images get this size too.
- style.min.css and assets/js/main.min.js are minified copies of style.css and main.js and are loaded when present. If you edit style.css or main.js, delete the matching .min file (the theme falls back to the readable file) or minify it again. Setting define( 'SCRIPT_DEBUG', true ) in wp-config.php always loads the readable files.
- Page speed also depends on hosting, page caching and image sizes. Using a page cache plugin is recommended.

== Translation ==
All strings use the "ideo" text domain. The source language is English, and a Turkish translation (tr_TR) is included in the languages/ folder. To add another language, translate languages/ideo.pot with a tool such as Poedit and save the .po and .mo files in the same folder.

== Credits and license ==
- The theme is licensed under GNU GPL v2 or later (see LICENSE).
- The fonts (DM Sans, Playfair Display, Poppins) are licensed under the SIL Open Font License 1.1; the text is in assets/fonts/OFL.txt.
- Copyright: themestick.com
