Inerys

For You

Following

Channels
Business
Crypto
Culture
Entertainment
Show all
Publishers
CNN
The New York Times

The New York Times World News 5 hours ago

Who Is Claire Shipman, the New Interim President of Columbia?

Digital Trends Technology 9 hours ago

Samsung's hyped budget foldable phone finally shows its face

Cointelegraph Crypto 6 hours ago

Kalshi sues Nevada and New Jersey gaming regulators

To use this code in WordPress with Elementor: Create a new Page or Edit an existing one in your WordPress dashboard. Click on "Edit with Elementor". Create a new Section (the "+" icon). Add a "HTML" widget to the section. You can find it by searching in the Elementor widgets panel on the left. Paste the code provided above into the "HTML code" area of the HTML widget. Explanation and Customization: Structure: The code uses Elementor's container structure to create a two-column layout. The left column is for the sidebar (25% width), and the right column is for the content (75% width). Sidebar: "For You" and "Following": These are created using "Heading" widgets. "Channels" and "Publishers": These are created using "Toggle" widgets to mimic the expandable menu. Inside the toggle content, "Heading" widgets are used for the sub-items. We use "Toggle" for simplicity to achieve the expand/collapse effect and the "+" icon using default Elementor Toggle widget icon settings. If you need more advanced menu features, consider using Elementor's "Nav Menu" widget and styling it or using custom JavaScript for interactivity. Content Area: Each news card is created within an Elementor Section (you can also use Container if you prefer). Image: "Image" widgets are used for the article images. Placeholders from via.placeholder.com are used. Replace these with your actual images. Source, Category, Time: "Text Editor" widgets are used for these lines. Font Awesome icons are used for the globe, laptop, and bitcoin icons. Ensure Font Awesome is enabled in your Elementor settings (usually enabled by default). Article Title: "Heading" widgets are used for the article titles. Bottom Right Icons: "Icon" widgets with Font Awesome icons for settings (fa-sliders-h) and refresh (fa-sync-alt) are added in a separate section at the bottom. Positioning: To make these icons stick to the bottom right, you'll need to adjust their positioning in Elementor's Advanced settings for the icon widgets. Set "Positioning" to "Fixed" and then adjust "Horizontal Orientation" to "Right" and "Vertical Orientation" to "Bottom". You might need to adjust offsets as well to fine-tune their position. Styling: Background Colors: The code includes classes like elementor-element-background which you can target with custom CSS to set the dark background colors for the sidebar and sections to match the image. Text Colors and Typography: You will need to use Elementor's Style tab for each widget (Heading, Text Editor, etc.) to set the text colors, font families, font sizes, and other typography properties to match the design in the image. Spacing and Padding: Adjust margins and padding in Elementor's "Layout" tab for sections, columns, and widgets to control the spacing and layout precisely. "+" Icons for Channels/Publishers: The "+" icons in the "Toggle" widget are the default toggle icons. If you want to customize them further or place them more precisely, you might need to use custom CSS or icon widgets and position them relative to the "Channels" and "Publishers" text. Important Notes: Replace Placeholder Images: The code uses placeholder images from via.placeholder.com. You must replace these with your actual images in the Elementor editor by selecting the Image widgets and uploading your own images or using images from your media library. Font Awesome: Ensure Font Awesome icons are enabled in your Elementor settings for the icons to display correctly. Customization is Key: This code provides the basic structure. You will need to use Elementor's visual editor and style settings extensively to match the exact colors, fonts, spacing, and visual details of the original image. You might also need to add custom CSS for finer control over the layout and appearance. Responsiveness: Test the layout on different screen sizes (desktop, tablet, mobile) and adjust Elementor's responsive settings as needed to ensure it looks good on all devices. This HTML code and the Elementor editor will allow you to build a website layout that closely resembles the image you provided. Remember to use Elementor's styling options to achieve the desired visual appearance.