Themes create the public (front-end) interface for a WordPress site.

learn more… | top users | synonyms

0
votes
0answers
26 views

How to get the Clicked ID and output that ID data in another page

I am creating a WordPress theme. I created single.php, in which I have a button called "Watch Now". When "Watch Now" is clicked, it gets the ID of the current/clicked post dynamically using the ...
0
votes
0answers
9 views

Walker_Nav_Menu and menu with icons

i want to show my menu with icons and for that i use walker_nav_menu , but icons don't display : Nb : $meta-value return font awesome icon code class mywalker extends Walker_Nav_Menu { ...
0
votes
1answer
30 views

What does this mean in wordpress? Easy question

Im digging wordpress and started to look into templates to be specific blank themes/frameworks for making custom themes. I found "HTML5Blank" and was going through source code and found something i do ...
0
votes
1answer
20 views

Using AJAX to return search form results

I'm trying to take user input from a search form, build a query based on user input, and then return relevant posts using AJAX. Right now, the form builds the select dropdowns properly. The form ...
0
votes
0answers
13 views

Password protected posts are breaking my layout

I am developing a theme and I am trying to bug test it before releasing it. I loaded up a sample XML file that includes password protected posts. These posts break my layout on index.php because ...
0
votes
2answers
24 views

Adding content inside the anchor tags within WordPress main nav

I'm using FontAwesome and hence I need to include some extra code next to parent menu options that have a sub-menu, such as: <li> <a href="">About <span class="fa ...
0
votes
0answers
16 views

A Learning membership site with chat and video lessons (No grading and certification) would Sensei or WP courseware be overkill?

Hi I am working on a project with the following requirements :- 1) There would be three set of users admin, teachers and students 2) The user can see teachers and students that are online. Only ...
-1
votes
0answers
25 views

Any new plugin installed and activated won't work in custon developed Theme. Please Recommend Debug Methods?

Successfully Installed and activated plugin won't work in custom developed theme. What files should I look into to make it work?
0
votes
2answers
42 views

Recommended tools for Theme Development with SASS [on hold]

My question is - what are other people's processes in most efficiently developing WordPress themes that utilize SASS and what tools are you using? I also develop from multiple locations/machines (both ...
0
votes
0answers
13 views

adding action with in a class?

Is this possible? this class is Extension from another that trigger itself, so far any other hooks has work properly such wp_enqueue_script or apply_filters. But this functions just don't work and it ...
0
votes
0answers
22 views

Making a string translation ready (with some html in it)

A simple text string is made translation ready as: _e('Simple string','textdomain'); But how to make the string translation ready with some html in it, eg: simple string with a <a ...
0
votes
0answers
17 views

Wordpress checkbox slider

Using template Sparkling: https://colorlib.com/wp/themes/sparkling/ Here slider uses a category for displaying slides. Slider Code: function sparkling_featured_slider() { if ( is_front_page() ...
0
votes
0answers
15 views

Change font-size in relation to container? [migrated]

Currently I display my article titles with a background of 90% width of the post thumbnail, placed on top of it. Since there's only room for 1 line of text in the title, there is rare occurrences ...
-1
votes
1answer
21 views

how to insert content into wp_head after loop_end

I'm trying to access the info on a post, so I can get the post title and post content so that I can generate the respective OG tags to put in the header. Problem is that the info is only avaiable ...
0
votes
1answer
5 views

Removing non native customizer settings from a child theme

For removing settings, controls and sections of the customizer, we can just simply use the remove methods like this: function remove_custom($wp_customize) { $wp_customize->remove_setting('id'); ...
0
votes
1answer
35 views

Theme Options Page - User Updates Logo

I'm a newbie to WordPress Development so bear with me. Site: https://wordpress-portfolio-zacnespral21.c9.io/ On the site above I would like to add an option in the themes options page for the user ...
-2
votes
0answers
16 views

How to remove certain contents of the header in wordpress bistro theme [on hold]

so I'm using the Bistro theme for wordpress and I need to know how to remove just certain contents from the header. How do i do that?
0
votes
0answers
22 views

How do I include pre-installed images in a theme?

If I made a theme or converted an HTML one into Wordpress, how do I include images so that they sort of come pre-installed with the theme? Is there a way to do it by pre-programming it or the only ...
-1
votes
0answers
9 views

cant load any image for logo modifying jetpack plugin

!Dont know whats wrong in my coding but it just doesnt upload image for logo ...i added coding in my custom theme
0
votes
1answer
26 views

How to create custom page templates with default page layout framework?

I'm writing a custom theme. Most of the content will use the regular index.php, header.php and footer.php. The index.php looks like <?php get_header(); get_sidebar(); ?> <div ...
0
votes
0answers
22 views

Show posts from all categories

I have a site with 5 different categories, each of them with a notices section. I would like also to have another section to see the latest notices from any category. So far, I figured out that I can ...
0
votes
0answers
14 views

How to update premium themes? [on hold]

I have a question about premium themes in general, not a specific one. When you need to update a premium theme, a lot of websites suggest that you deactivate and delete your existing copy of the ...
0
votes
1answer
23 views

Add option for administrator to submit link

I created a theme, and the theme have social icons in the header, now i want a theme feature, where administrator can link their profile to social icons that I have on my theme. I researched on this, ...
0
votes
1answer
18 views

How do I get a parent theme modification from a child theme?

I've built a child theme, and I would like to reuse some of the settings created by the parent. I hoped this would be as easy as get_theme_mod( 'setting' ) inside the child theme, but that returns ...
0
votes
1answer
20 views

Blog styling in SASS

Every so often I get a request like this: "Build a site using WordPress as the CMS [easy...]. Oh and we'll have a standard looking blog thrown in. No need to worry about styling, the default look ...
0
votes
1answer
26 views

Protecting work on client's web host

I am taking on a freelance job making modifications to a client's already existing website/Wordpress theme. What is the best way to work on the client's current web host without putting myself at risk ...
0
votes
1answer
15 views

get_page_template returning nothing

I run this code in front-page.php as well in category-foo.php <?php echo is_page_template( 'front-page.php' ) ? "yes" : "no" ?> and get both times "no" printed i tried as well <?php ...
0
votes
0answers
15 views

Theme files encoded/converted to random numbers and letters. Is it possible to fix it?

I've been working on this theme for a few months now, locally, and today, I opened up the project and some files were "encoded" into random letters and numbers. Not all of the files, just a few, but ...
0
votes
0answers
6 views

My customizer's setting doesn't set to the default and needed to click the control's “Default” button before it'll be set

Here's my sample customizer's setting and control: $wp_customize->add_setting( 'themename_img', array( 'type' => 'theme_mod', 'default' => ...
0
votes
1answer
24 views

License of the used Bootstrap Theme is not GPL compatible

I have made theme using material design html & css https://github.com/FezVrasta/bootstrap-material-design. But my theme is no getting approve because License of the used Bootstrap Theme is not GPL ...
0
votes
0answers
8 views

Coding color opacity options in theme options admin panel

I wanted to give the user the ability to change the opacity of a navigation menu background color from the theme options admin panel. I have already been able to achieve giving the user a color ...
1
vote
1answer
22 views

How can my theme allow users to take advantage of advanced html tags in posts

Not sure how to phrase this question. Let me paint a simple Wordpress setup for single.php: <div id="container"> <?php the_content(); ?> </div> But what if, inside ...
0
votes
2answers
58 views

Custom taxonomy page template

I'm working on my own wordpress theme for the first time. I registered a new post type with custom taxonomy, but I can't display the posts by terms. I duplicated the archive.php and renamed it to ...
0
votes
0answers
11 views

wpmail in conditional statement in theme template

I am using a theme which uses PostRelations to create courses, lessons and plans. A plan can be set for a certain period such as a month, year etc. The plan expires when this period is over. I am ...
0
votes
0answers
10 views

Menu for Showing the Children of 2nd Level Menu Items on 2nd & 3rd Level Pages

The title may be confusing, but please follow along. I have a 3-tier menu. There are the parents (1st tier), and some have children (2nd tier), and some of those children have children (3rd tier). I ...
0
votes
0answers
11 views

Building URLs with Custom Post Type

Here is my current dilemna. I have created two custom post types, Verticals and Products. The Products information is fed into the Verticals and there is an interior nav with anchor links that ...
0
votes
0answers
7 views

Save the outputted image into the Media Library, with a different filename and extension

For example, I have this "/image.php" file in my "/theme-directory": header ('Content-Type: image/png'); $im = @imagecreatetruecolor(120, 20) or die('Cannot Initialize new GD image stream'); ...
0
votes
2answers
43 views

Getting Permalink within the loop

I have a (Roots/Sage-based) theme with a home.php template override and on that page am displaying excerpts and featured image for each post. <?php while (have_posts()) : the_post(); ?> ...
0
votes
1answer
13 views

Featured Image Module Randomly Disappears

I've been running into an odd problem on our WP blog that has me befuddled. I custom built the theme we use and I enabled Featured Images by adding the following line to the beginning of the ...
0
votes
1answer
41 views

Replaceing _custom_background_cb

I'm making a theme where I'm adding support for the custom background feature with this standar function: // fig. 1 <?php function custom_theme_support() { ...
0
votes
0answers
23 views

How to assign navigation menu to certain location with Settings API?

Using the code below, one can assign a menu with id $term_id_of_menu to 'primary-menu' location. $locations = get_theme_mod('nav_menu_locations'); $locations['primary-menu'] = $term_id_of_menu; ...
0
votes
1answer
19 views

Best strategy for providing theme options using customizer

I am making a free distributable theme and I wish I could provide theme options in the best possible way. I have doubts (mostly about widgets) and sidebars. Here we go: Is it a good idea letting the ...
1
vote
0answers
13 views

Pull request in Wordpress repository?

I have to translate a theme adding translation files (.mo and .po). After it, I would like to contribute adding such translation to the theme repository. Is there any kind of pull request in ...
0
votes
1answer
41 views

There's an image named g.gif somewhere in my WordPress site

I am looking for this pixel which appears full width in my mobile site, so I want to remove it. Image URL: ...
0
votes
0answers
25 views

Best practice: What belongs in theme and what in plugin for large eCommerce website

I am about to create a large custom eCommerce website that does not fit within WooCommerce. (Most of the times I use WooCommerce for eCommerce.) It has also a completely custom design. However I know ...
0
votes
1answer
41 views

How to organize functions.php content

When building custom themes, I often add my own functions inside functions.php: <?php function my_function() { // Do something... } Should I organize all my custom functions ...
-3
votes
0answers
23 views

Updated: Encountered two errors

I'm creating my own theme. The problem is I'm getting these error: Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the ...
0
votes
0answers
31 views

use add_action('wp_head') in a widget for generating dynamic CSS styles

I have been working on a 'Custom Pop Links' widget for use in a theme which is ready for distribution. User can change the color of a link using a color picker inside widget. Untill now, I used inline ...
1
vote
1answer
22 views

Make custom CSS changes and use built in theme customizer later?

Our company hired an outside developer to make changes to our WordPress header and theme colors. After he made the changes, we attempted to update the logo and change the header menu font color by ...
0
votes
0answers
14 views

Sorting CPTs with multiple taxonomies

I'm currently rebuilding my company's website as a WordPress site, and I've hit a bit of a snag. Background: I work for an FMO that supports independent insurance agents, and on our current website ...