Questions tagged [wordpress-theming]

The WordPress Theme system provides a unique platform to enhance the visual aesthetics of your WordPress powered blog or website.

The custom post type feature in Wordpress is completely transforming the URLs for various types of posts, pages, and content

I have created a custom post type named 'Services' in my WordPress theme by adding the following code to my functions.php file. // Register Services Post Type function services_custom_post_type() { $labels = array( 'name' = ...

Challenges with Wordpress themes

Currently working on developing a Wordpress Theme, nothing too special. Ran into an issue the other day. The problem is as follows: when I insert the below code into header.php <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory& ...

"The WordPress site functions properly on my local setup, but encounters issues when accessed on the online

After developing my WordPress site on a local server, I encountered a 404 page not found error when trying to upload it to the live server. I have confirmed that my index.php file is correctly redirecting. Here is the code: <?php define('WP_USE_ ...

Reduce the size of the header in the Sydney theme for WordPress as you scroll

Currently, I am attempting to reduce the size of the header once scrolling down. My focus is on refining the child theme. Displayed below is a screenshot illustrating the appearance of the header at the top of the page: https://i.stack.imgur.com/wojGf.pn ...

Trouble with CSS in a WordPress theme utilizing a two-column layout

After setting up my wordpress blog (http://raptor.hk), I encountered an issue with aligning the right sidebar correctly. It seems like I have overlooked something in the CSS code. The div responsible for the sidebar has been assigned the name "rightbar". I ...

Dynamic WordPress Website Designs

Seeking recommendations for responsive WordPress themes that offer extensive CSS and structural customization options. The goal is to retain all of WordPress's built-in features, such as blogging capabilities, while having the freedom to completely contr ...

Showcasing a personalized post type archive page as the main landing page

I'm having an issue with my functions.php file where the custom post type 'events' posts are not sorting by the meta value 'upcoming_date' as needed. The sorting is also not in ascending order, and I was wondering if it's poss ...

Adding events to a TinyMCE iframe in WordPress

Recently, I implemented some customized div wrapper styles in Wordpress. However, when utilizing these styles on a page, I encountered difficulties adding content below them. Despite using CSS:after within the divs to generate a selectable area, this metho ...

What is the best way to merge multiple pages along with their respective templates into a single page?

Is there a way for the CMS to have separate pages (such as "Careers", "Jobs", "Team"), each with its own template, but also be able to combine them into a single scrollable page named "Our Company" with its own template? How can this be achieved? I rememb ...

Resizing Your WordPress Header Logo

Hi there! I am struggling to resize the logo in the header of my website www.cookingvinyls.com. Despite my efforts, I can't seem to override the hardcoded version. I attempted to modify the width and height lines in header.php, but unfortunately, it did n ...

Custom background options for Wordpress developer

I have been exploring the WordPress codex to learn about incorporating custom background options, similar to this example $defaults = array( 'default-color' => '', 'default-image' => '', 'default-repeat' => ' ...

Discover the simple steps to integrate a timezone dropdown feature into your WordPress website using the Contact Form 7 plugin

I am designing a website and I need to implement a query form with a customizable time zone selection. Are there any specific steps to add a time zone drop-down menu using Contact Form 7? Here is the desired result I'm aiming for: Your assistance will be ...

Utilizing Wordpress post images to dynamically change background URLs in CSS

Is there a way to dynamically set a background image in CSS using PHP, specifically the Wordpress post image? background: <?php if(has_post_thumbnail()){ $img = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'dest ...

Customize WordPress zerif-lite theme with CSS to decrease page width temporarily

Is there a way to decrease the width of a specific page on my website without modifying the current theme that I am using (zerif-lite)? I want to accomplish this task by adding custom CSS to styles.css. However, I am facing difficulties as I only want to a ...

Is it necessary to include the 'html' and 'body' tags in a WordPress Page Template?

Currently, I'm in the process of creating a unique Page Template for my WordPress website. In the file named newpagetemplate.php, I have included only this code: <html> <body> <?php /* Template Name: CustomPage */ ?> <div> < ...

What is the best way to incorporate several php files into a WordPress post?

I have developed a system that retrieves information from a database and presents it in multiple text files. Now, I am looking to move this system to a page on a WordPress website. I have already created a custom page named page-slug.php and added the ne ...

Manipulate classes based on scrolling (Wordpress)

Trying to manipulate a widget by adding and removing classes based on user scroll behavior has proven to be quite challenging. Specifically, I aim to add one class when the user scrolls down by 50px and remove it when they scroll back up. Website: Check o ...

What is the technique for linking to a different WordPress PHP file using a href?

I have a question regarding working with WordPress. I am using Stacks, a blank theme to convert an HTML template to WordPress. I need to create a hyperlink or button on a landing page that redirects to another PHP file within my website directory (e.g., lo ...

Solving the WordPress Issue: "Hello, world! Update me in Site Preferences to change This Category/Section's Lower Description Bar"

After inheriting an unfinished website built on WordPress 4.2.2 with the Wise Guys theme, I encountered an issue on the gallery page where the Lower Description Bar displayed the unattractive message "Hello world! Please change me in Site Preferences -> Th ...

My attachment.php template is not utilized by WordPress

Recently, I encountered an unusual issue with a WordPress site where attachments/images were displaying using an old template. Despite updating and revising the attachment.php file, the production site continued to show the outdated template. Here is a com ...

Attempting to call a nested div class in JavaScript, but experiencing issues with the updated code when implemented in

Seeking assistance. In the process of creating a nested div inside body > div > div . You can find more information in this Stack Overflow thread. Check out my JSFiddle demo here: https://jsfiddle.net/41w8gjec/6/. You can also view the nested div on the ...

Optimal Usage of URLs in WordPress Style Sheets

I've been doing extensive research on the pros and cons of using relative versus absolute paths for images in my CSS. After perusing this online discussion, I am leaning towards utilizing absolute paths. My primary concern is not so much about cross-domain ...

Best practice for integrating react js into a wordpress roots theme

This is my first time using the Wordpress roots theme and also bower for the first time. I am looking to integrate react js into my theme and would like some guidance on the correct steps to take. I proceeded by running "bower install --save react"... As ...

How do I display featured posts in my post stream on Wordpress, specifically using the Twentyfourteen theme?

After setting up my WordPress site with the twentyfourteen theme and creating a child theme, I began customizing my index page to achieve a specific goal. Unfortunately, I haven't been successful so far. My aim is to have featured posts appear on my homep ...