Covers all flavors of HTML: HTML5, XHTML and old-school HTML 4.

learn more… | top users | synonyms

0
votes
1answer
9 views

Finding and removing unnecessary redirects

I have a bunch of redirects to sites like sharethis, media6, and some random character urls. Most of these are leading to a blank pixel or each other. I know a lot has to do with facebook and needed ...
0
votes
0answers
11 views

Css help - background images and margins [migrated]

im trying to change the custom CSS of my page headers, but every time i try to add a top-margin to one of the nested divs, it moves the entire background image down. Current code (abridged): ...
0
votes
0answers
10 views

Get posts of specific post format, extract youtube link and use ID for image thumbnail

I am looking to query four posts of which I'll display the title and the video thumbnail. Something like this maybe? $args = array( 'tax_query' => array( array( 'taxonomy' ...
0
votes
0answers
19 views

Passing string from a form to another page [migrated]

I have tried several plugins to try and pass a text field to another page via PHP and a HTML form. The form works and displays what was entered if there are no text input boxes in the form. The end ...
0
votes
1answer
22 views

Once css class at multiple place but different styles [closed]

I am using wordpress and I have div whose classname is "page" on three different pages. Three pages slugs are home aboutus and contactus. I want the width of page class div on aboutus page to ...
0
votes
0answers
28 views

Custom post type as HTML/PHP table

I have a custom page which displays some WP members (students) using $wpdb to query the database and display these members in a HTML table. This table gets generated (populated with records) when the ...
0
votes
3answers
55 views

How can I edit HTML page codes in a theme?

I am using a replete theme for a web using a commercial things. Anyway, I am trying to edit(particularly, remove) some HTML tags on main front page but I cannot find out which php file includes the ...
0
votes
0answers
6 views

simple custom lightbox failing

I've built a simple lightbox, easy enough with organic pages, I have the code working on codepen and a local file, however the second I throw it in wordpress it isn't working, maybe you guys can help ...
0
votes
1answer
27 views

How to get html tag ids from template?

I'm new with WP so I need advice. I'm workig on plugin where is required adding some new atrributes to selected div or paragraph. Is there any way how to get html tag (DOM) IDs from current template? ...
0
votes
1answer
12 views

How to avoid repeating similar properties for all tds of a table in a wordpress post

Consider the following table. <table> <tbody> <tr> <td style="text-align: right; direction: ltr;">1</td> <td style="text-align: right; direction: ...
0
votes
0answers
42 views

Theme option not saved if in wp_editor() and html decoded

i'm trying to add wp_editor() to my theme-option page but it is not saved when html is decoded. so this is the issue: in the theme option page i successfully added a new option called ...
0
votes
0answers
31 views

Improve my timetable's code

I'm working on a wordpress theme and creating a time table who will be easy to complete by users. In the back-office, there are a checkbox for each days : <input id="checkbox1" ...
0
votes
0answers
14 views

How to do full width on simple blog

I hear that there isn't, technically, anything call "full width". What, then, are the most common ways to do full width, on a simple blog, in this current time period? I'm very new, and do not know ...
0
votes
2answers
26 views

How to prepare the HTML for Wordpress [closed]

Right now I'm finishing a design in Photoshop and I'm about to turn it to HTML. After that I'm want to turn it into a Wordpress theme using Underscores starter theme. How can I prepare the HTML so the ...
1
vote
1answer
38 views

Altering html structure and creating custom menus

I'm fairly new to Wordpress and am trying to do something very specific. I am currently using the awesome html5blank to create my custom theme. I am using the native menus for my nav tabs. I am ...
0
votes
0answers
34 views

WordPress Permalink Problem

I have a blog with 3,000 post permalink using the "% postname%" now I want to change it and make it into html "% postname% .html". Everything works except for the old link on facebook and in the ...
0
votes
1answer
23 views

Add shortcode in my div

I want to add a shortcode in a div created by me in my theme This is the div: <?php if(!is_home()): ?> <div id="cristi"><?php echo get_the_content(1); ?></div> ...
0
votes
1answer
31 views

Function Display article [closed]

I am new in Wordpress ... I developed a theme and I want to display the contents of a specific item ID in a div. For example...I create this div. <div id="myarticle"> //function php WORDPRESS ...
0
votes
0answers
28 views

Inserting jQuery in a WordPress Code Block

I have a theme that already uses jQuery, so I thought I could use some of it by inserting <script type="text/javascript"> jQuery(window).load(function() { jQuery('form').css( ...
0
votes
1answer
18 views

Most valid way for the URL html structure

I'm building my own theme, and trying to create links to articles this way: <a href="URL"><img src="THUMB" /><div>TIME_STAMP</div><h3>THE_TITLE</h3></a> ...
0
votes
1answer
35 views

Blank <title> on static home page?

The <title> of each page on my site shows correctly with the following code: <title><?php wp_title(''); ?></title> But on my home page, which is set to a static page called ...
1
vote
1answer
176 views

Blank space at beginning of <title> tag?

The HTML output of all my WordPress pages has a blank space at the beginning of my <title> tag. You can see the effect here. My header template contains this: <title><?php ...
0
votes
2answers
50 views

Add HTML to single post <head> tag

If I have developed a separate HTML page that I wish to include inside my Wordpress site what is the best way of including it? In this case it requires a javascript library or stylesheet that is not ...
0
votes
1answer
18 views

Main menu effect visited

I want to create an effect that when the user clicks on a menu item hover effect my stay. This is my link: http://avocat.dac-proiect.ro/wp This is the CSS code for the full menu. .menu-item a ...
0
votes
1answer
34 views

WordPress HTML Helper

I've played recently with WordPress Hooks and I've noticed that in order to create layouts based on the hooks the main practice is to use html in functions and combine them with logic. I've searched ...
0
votes
1answer
30 views

Strange iframes added in wordpress 4.1 localhost

I have a strange iframes added in my code, that you can see in the images below. I disabled all the plugins but this iframes still appeared. I tried to track where this code is in the project, but no ...
1
vote
1answer
37 views

How to add a post or page tag to the list of classes appearing in the body tag's class attribute?

Good day, Perhaps you are willing to help out a php-beginner. I'm trying to add a post or page tag to the list of classes appearing in the body tag's class attribute. These classes are printed onto ...
0
votes
0answers
28 views

Echo outside HTML

I'm new to Wordpress and I want to echo a script and a css file inside the footer.php . This is the code that I use. echo "<script src='file.js'></script>"; echo '<link ...
0
votes
0answers
51 views

Why doesn't a custom template page with pure html work?

I've tried to create a landing page on my website from an HTML template I have. Everything worked fine until I copied the contents of HTML into the custom page file I created. So, the problem is when ...
1
vote
2answers
128 views

Converting HTML Template to Wordpress Theme

While I was trying to convert a Static HTML page to Wordpress Theme , I had an issue . the page Doesn't run properly After Checking Google Chrome Console it turns that it loads the CSS file with the ...
0
votes
2answers
198 views

How to use custom previous/next link ?

I have this : <?php the_posts_pagination( array( 'prev_text' => __( 'Previous page', 'twentyfifteen' ), 'next_text' => __( 'Next page', 'twentyfifteen' ), ...
0
votes
1answer
65 views

With over a page of content the footer remains where the bottom of the screen was at top scroll

I've been building an artist website to promote my music and I've ran into an obstacle with my footer. What I want is very simple (or so it would seem). I'm trying to create a footer that sits under ...
0
votes
1answer
69 views

checkbox function not working for dropdown menu

I have created a dropdown menu that shows when a checkbox is clicked. It works perfectly outside of wordpress see JS Fiddle - http://jsfiddle.net/s7w2ueah/ however when I add it into my WP theme ( ...
-3
votes
1answer
85 views

Can you not edit the HTML and PHP of your WordPress without paying?

Sorry for the noob question. I'm new to WP. I'm not seeing where I can edit the HTML and PHP of my blog. I see a bunch of GUI options to change colors, etc. but nothing to change my blog's source ...
0
votes
2answers
269 views

Edit HTML of Wordpress navigation bar

Is there a way to change the html of my wordpress page's navigation bar? (I'd like to add in several divs that will be controlled with media queries.) Thanks for reading!
-1
votes
1answer
28 views

Wrap posts from a category in HTML

I want to get multiple posts content from a particular category. I would also like to wrap each post around some HTML. Any ideas on how to best do this?
0
votes
1answer
39 views

How are the HTML classes generated?

I've just created a "full-width" template page for my theme, allowing me to set the width of the site content to maximum if there are no sidebars active. What I've noticed is that this gave me a HTML ...
0
votes
0answers
110 views

How to modify wp_kses_post() so it will escape unknown HTML instead of remove it?

I have a site that uses the basic editor (not TinyMCE) to allow registered users to create posts. However, they need to be able to have text in their post that LOOKS like html. Since these are not ...
0
votes
1answer
32 views

get_post_custom stripping styling issue

I found this thread: Paragraphs removed when using get_post_custom()? Was hoping someone could either help me a little more though.. My code: <?php $post_customs = ...
0
votes
1answer
105 views

Adding attribute to the post.php form tag in wp-admin

I need to add a 'novalidate' attribute to the form tag in wp-admin post.php. The post.php code itself does not contain the tag, rendered from elsewhere so wondered where it may be or better yet if ...
0
votes
0answers
48 views

Sanitize html, where to sanitize

I have a function that returns an style=".." html attribute. I am not sure how to sanitize. Here is the code: functions.php function zz_style($properties, $values) { $styles_array = array(); ...
0
votes
0answers
25 views

Pages in another language

I am trying to translate this page of my theme to Portuguese, but I can not find where is the files to translate. Link: http://novine.com.br.siteseguro.ws/lojakazola/lounge/ Text: (by admin. Posted ...
0
votes
1answer
55 views

Remove heading tags on line break

I have to add line breaks in a h1 paragraph using the visual editor. On every line break Wordpress automatically adds h1 tags to every new line. Example: <h1>Watsup</h1> ...
0
votes
0answers
15 views

MAke a search form to also includes html of the post

I have a database of all images that I am using in wordpress, a lot of them are not attached to posts because they are not in the uploads folder, lets say for example I have an image named: ...
2
votes
1answer
44 views

Add custom html to nav_menu

Im trying to add some html to the nav_menu. Basically I need a button tag inserted after the opening li tag if there are children in the menu. I see that there is a walker class but I have no idea on ...
0
votes
0answers
44 views

Execute PHP code of a plugin markup file

I am creating a plugin which imports html markup. I would like to execute some php on those markup files before or after it gets imported. Is there anyway I can do this? Right now if I add PHP to the ...
0
votes
2answers
124 views

Cant get paginations on single.php to work with my custom post types

I'm using custom post types and custom fields plugins for my custom post types. I have all other paginations working smoothly on my website except for my single.php. I have a custom post type of ...
0
votes
2answers
30 views

Posts don't appear on Template Page

I made a Template page galerie.php and I wanted to show posts there. Why isn't this working? It seems that posts only appear at home page for some reason. The code is: <?php while(have_posts()) ...
0
votes
0answers
21 views

Different content in different pages

I'm developing my second wordpress theme and I guess the following question is really basic but I couldn't find an answer. I have different pages with the same header and the same footer. What ...
1
vote
1answer
43 views

Are there any standard HTML markup for metabox?

The add_meta_box HTML callback is rather low level that we need to code the HTML by ourself, e.g. echo the HTML form markup function myplugin_meta_box_callback( $post ) { // Add an nonce field ...