New answers tagged

0

I assume you are using the text editor... The example with the blank line in your question would normally be converted by WP to this: <ol> <li>Paragraph 1 : text <p> Some more text</p></li> <li>…</li> </ol> Wpautop wraps the 2nd line with the p element because of the blank line you created. Your example ...


0

So I have done figured out a solution using php Ill explain below: So I created a var and called it white. It has a empty string that I used and an if statement then I used the WordPress function is_front_page <?php $white = ""; if( !is_front_page() ) { $white = 'scrolled'; } ?> Then in my Navbar class I added this: <?php ...


0

Most WordPress themes take advantage of a function called body_class() which outputs specific classes to the body tag. Implementation looks something like this: <body <?php body_class(); ?>> This will put a unique class on the homepage of your website that won't be on any of the other pages so you could target that specifically in jQuery or ...


-2

Please trying closing a </div> before or after your shortcode. This mostly happens when there are any div or elements are not closing properly. Try this </div> [your_short_code_here] Or [your_short_code_here] </div> Hope this will fix yuor issue.


-1

Have you tried using FTP to replace header.php on your server with the original from your theme files?


2

This looks like a hack, probably in W3TC. Try disabling all the Plugins one by one, and if it doesn't go away, try switching to the default theme. If that did not work, install WordPress from scratch, and transfer the database to it. If you prefer another debug mode, I suppose your script gets hooked into WordPress in the wp_footer action. To verify that, ...


0

[%%LINKS%%]is very suspicious. It's inside a display:none div, so any links output by a function will be in page source for SEO purposes, but won't display on the site. You probably did get hacked. Try using Adminer « WordPress Plugins to search the database for that string. If you find it, carefully follow ...


2

The theme uses the_excerpt() instead of the_content(). I had created a child theme before (so I don't modify the source theme directly: only the child one), so I only had to copy/paste the PHP file (archive.php) from source theme to child theme, and change the_excerpt() for the_content( __( 'Read more &#8250;', 'my-domain' ) );


2

Turns out you are not the only one: https://core.trac.wordpress.org/ticket/32095 It looks like this was removed in a recent update (4.2) and I can see why they did it. User interface can be confusing at times. You can read more about the removal here: http://wptavern.com/how-to-restore-the-link-title-attribute-removed-in-wordpress-4-2 There is a ...


0

I took a look at your site, and are you sure you dont want to make the .wrapper clickable? boxed-layout is your whole site, so if you made that clickable the whole site would be a link. However, if I look at your question, the answer would be to use jQuery. <script> $(".body.boxed-layout").click(function(){ window.location = ...


0

This is generaly a long term bad idea equivalent to forking the plugin even if you don't change a single line of code in them as the plugin might require those commented out styles/scripts in its next version (or your freind will change setting that require it). If you are not happy with how the plugin works, contact his author and ask them to fix it, ...


0

Install Query Monitor to show your scripts and styles (#qm-assets) - specifically the ID used to register the scripts/styles. Then hook wp_print_scripts and use wp_dequeue_script() to remove it before it outputs. /** * Dequeue the jQuery UI script. * * Hooked to the wp_print_scripts action, with a late priority (100), * so that it is after the script ...


2

The security risk here is not about the plain text but about translation. You should note that esc_html_e is not only a function for escaping HTML but also for localization (l10n). I.e. other people can translate this String but you don't know what the translation would be. It is possible that somebody translates the String and adds a link or some malicious ...


0

Please add below code to bottom of your functions.php, I have replaced with your menu item ID function lidget_popup_link() { ?> <script type="text/javascript"> jQuery(window).load(function() { var width = "680", /* Enter popup window width here */ height = "480", /* Enter popup window height here */ menuItem = ...



Top 50 recent answers are included