Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all 8245 articles
Browse latest View live

desktopanywhere on "Change Tab Title Edit Mode"

0
0

When editing a Post as Admin the visible Title of the Tab is in the form:

"Edit Post < Site Name -- WordPress"

I would like to see the "Post Name" rather "Site Name -- WordPress"

I believe that I just need to replace the existing variable site_name to post_name somewhere but not sure of the location.

Thanks for any help,

DAC


MrWp007 on "wearing select2 core wp to Customs Field select"

0
0

Good Morning,
in the point, i want to use select2 core in my select own in checkout woocommerce, so how to make it can use into select original customs field?

Thanks

willowen24 on "Display Wordpress avatar for logged-in user on post/page"

0
0

I'm trying to find a way to display a logged-in user's individual avatar/gravatar (based on their email address) on one of my pages.

So far, I've only been able to find methods to display the page author's avatar, or the same avatar for all users.

I gather that I need to add get_avatar to my functions.php (not sure exactly what I need to use), but I also need to know how to display it in the content of my page/post. Is there something I can use include when editing the page using Wordpress?

Alternatively, is there a plugin that I can use to accomplish this?

Any help would be greatly appreciated!

djedje on "Copy (most of) style to newly created menu"

0
0

I'm trying to create a new menu underneath my theme's Main Menu. I need it to have the same styling and responsiveness as the existing one..I've added it into functions.php and header.php and created a class for it.

<?wp_nav_menu( array( 'theme_location' => 'new-menu', 'container_class' => 'new_menu_class' ) ); ?>

It's showing up - but I can't for the life of me figure out how exactly to copy a style across from one menu to the other.

Any ideas or pointers would be stupendously appreciated to this confused noob. Thanks!

Mark on "Can't change the width of content in the visual editor"

0
0

I'm using a child of Twentyfourteen on this site (although I'm not sure that the theme being used is relevant in this case).

The content of the visual editor is being set by this style rule:

html .mceContentBody {
    font-size: 100%;
    max-width: 474px;
}

I followed the answer in this question at StackOverflow Wordpress Development: "Why is the visual editor in WordPress limiting the width by wrapping the content?" and put this code in my custom editor stylesheet:

html .mceContentBody {
    max-width: none !important; }

I am quite positive I'm correctly enqueuing the custom editor stylesheet (changes I make in style.css work). Here's what I have in my child functions.php file:

<?php

function RegisterCustomScriptsStyles(){
  // Register and enqueue custom stylesheets

  // Register custom stylesheets to the path to the theme's stylesheets
  wp_register_style( 'customStylesheet', get_template_directory_uri() . '/style.css');
  wp_register_style( 'customEditorStylesheet', get_template_directory_uri() . '/editor-style.css');

  // Enqueue the stylesheets
  wp_enqueue_style( 'customStylesheet' );
  wp_enqueue_style( 'customEditorStylesheet' );

  // Register and enqueue custom scripts
  // Register custom scripts to the path to the theme's scripts
  //wp_register_script( 'customScript', get_stylesheet_directory_uri() . '/customScript.js', array('jquery') );
  //wp_enqueue_script( 'customScript' );
}

add_action('wp_enqueue_scripts', 'RegisterCustomScriptsStyles');

So what am I missing/doing wrong?

>>Sara

0
0

Hey there I'm here to ask your support for an Hamletic doubt:

I'm using a plugin (Monarch) to show social buttons for share a page. The plugin allows me to positioning these buttons in several places but none of these places is good for my theme.

See the screenshot:
http://www.shinypixel.eu/upload/plugin-position.jpg

Unfortunately the plugin do not provide any shortcode for positioning the buttons in custom places.

There's a way to move these button where I want maybe building another plugin that provide a shortcode? Is it science fiction?

Thanx for ur time!

Steve on "dbDelta and MySQL Spatial Indexes"

0
0

I have a plugin that uses the MySQL spatial index feature.

My Create table command has these lines in it:

KEY place_name (place_name),
  SPATIAL KEY  places_spatial_idx (lat_lng_point)

dbDelta fails with:

WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SPATIAL KEY places_spatial_idx (lat_lng_point)' at line 1 for query ALTER TABLE wp_place_codes ADD COLUMN SPATIAL KEY

So dbDelta seems to be seeing the SPATIAL KEY option as a column and not as an index type.

fwho on "How do you build a database centric site on top of WP?"

0
0

The easiest way to explain my site is a comparison shopping type site. I have seven tables with 500k+ records, and expect many more to come. This is the main content of my site, but how would I move this to WP? Especially with all the custom MySQL queries involved.


Ibby on "jQuery Scrollify"

0
0

Hi Everyone,

I've got an interesting challenge that I'm having trouble getting my head around.

I'm trying to implement Luke Haas' jQuery Scrollify plugin into a client's site but it is proving quite difficult. I am using the CSS and JavaScript WP plugin to add scripts to my site header but I cannot get the implementation to work...

You can view my site here.

Does anyone know of a touch-friendly way to implement this? Another alternative I tried was the page-scroll-to-ID plugin with a custom script to control the mouse wheel. It was very messy though and didn't work on mobile devices. You can see the example page here.

I'd be very grateful for any tips.

Deexgnome on "Popular Posts"

0
0

Hey,

i added some snippets to my site to track single post views https://gist.github.com/Kevinlearynet/3852648

In my theme functions i query the popular posts like that

$args = array(
		'orderby'				 => 'meta_value_num',
		'meta_key'				 => '_base_popular_posts_count',
		'posts_per_page'		 => $size,
		'post_status'			 => 'publish',
		'no_found_rows'          => true,
		'ignore_sticky_posts'	 => true,
		'year' => date('Y'), // Current year
		'monthnum' => date('n') // Current month

Currently he is using the Current Month, but is it possible to query 3 Months instead of the current?

mattiasgunnarsson on "Product gallery image to feed"

0
0

Hi,

Can anyone tell me how I can export the first image in the product gallery instead of the featured image in Woocommerce? I use a plugin called TFM Google product feed...(i think that I can modify if someone can tell me the right direction)

Or is it a plugin out there that I can choose image to export to Google product feed?

Best regards
Mattias

tecasdjmix on "Problem adding Profile Builder login box"

0
0

Good morning everyone! I am asking your help please, because I am trying to add a Login box on my website, using Profile Builder plugin. I am newbie to WordPress and .php language...

My website is http://lovefashion.esy.es/

My goal was to put the login box of Profile Builder over the "Search for produts" textbox on top right corner of the site.

I have tried to edit header.php of my theme, but the page keeps returning these errors:

"Warning: strpos() expects parameter 1 to be string, array given in /home/u331054006/public_html/wp-includes/shortcodes.php on line 191

Warning: preg_match() expects parameter 2 to be string, array given in /home/u331054006/public_html/wp-includes/shortcodes.php on line 202
Array"

I will share some code from header.php

<div class="header">

<div id="logo">

<?php
if ( wootique_get_woo_option( 'woo_texttitle' ) != 'true' ) :
$logo = wootique_get_woo_option( 'woo_logo' );
if ( is_ssl() ) { $logo = preg_replace("/^http:/", "https:", wootique_get_woo_option( 'woo_logo' ) ); }
?>
<h1>
" title="<?php bloginfo( 'description' ); ?>">
<img src="<?php if ($logo) echo $logo; else { echo get_template_directory_uri(); ?>/images/logo.png<?php } ?>" alt="<?php bloginfo( 'name' ); ?>" />

</h1>
<?php endif; ?>

<?php if( is_singular() && !is_front_page() ) : ?>
<span class="site-title">"><?php bloginfo( 'name' ); ?></span>

<?php else : ?>
<h1 class="site-title">"><?php bloginfo( 'name' ); ?></h1>
<?php echo do_shortcode ([wppb-login])?>
<?php endif; ?>
<span class="site-description"><?php bloginfo( 'description' ); ?></span>

</div>

murilozilli on "How to fetch a coupon by it's attributes on woocommerce?"

0
0

How can I fetch a coupon by it's attributes in woocommerce?

I'm trying to put a coupon code inside the new account email template but I want to make sure that if the coupon code is edited the coupon sent in the email will be consistent with that changes.

So if the coupon code is 'XZcouponCode' and I hardcode that on the email. If later on I change that coupon code, I wanted to make sure it will also change in the email. So I want to fetch a coupon by it's attribute, let's say free shipping and limit usage is one per client instead of just hardcoding the coupon code.

Is that possible?

DuisterDenHaag on "Time picker Drop down for Gravity Forms needed."

0
0

I need to add a drop down time picker to my Gravity Forms form. I've been searching the internet, but I cannot find any decent explanation anywhere.

What I need would be very simple in HTML, but since GF doesn't support that for some odd reason, I hope to find someone on here who can help me out.

This would be the HTML code for what I need:
`<select name="hour">
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
</select>
  :  
<select name="minutes">
<option value="00">00</option>
<option value="15">15</option>
<option value="30">30</option>
<option value="45">45</option>
</select>'

So basically I need a pulldown list for the hours (from 10 to 23) and a pulldown list for the minutes with an interval of 15.

Please help!

MelmoSA on "Custom Back Button"

0
0

Hi Guys,

I would really like to create a custom "Back Button" on the posts of my site and I'd like it to work by retrieving the url for the category/sub-category archive to which the post belongs.

I've done a lot of searching and I've tried many things, but nothing has worked yet.

is it possible?

Thank you!


user325 on "Removing blog name from pages"

0
0

<?php wp_head(); ?> in header.php adds blog name in title:

Name of Post/Page/Archive/... | Blog name

How can I remove it? (without using seo plugins). And of course only the front page must have the blog name.

In old version of WP header.php had title tag, but now <?php wp_head(); ?> adds it

dmitry8 on "$wpdb Object error"

0
0

I use $wpdb Object to talk to the database and handle some of the functions in the form on this page. http://www.cmslaser.com/laser-capabilities/laser-marking

It's the blue form on the right

I'm calling wpdb() class

When I use $wpdb->update I can't get any data to populate in my database.
Connection seems to be fine

this is where it's having problems

<?php $wpdb->insert( $leads_table, $data, $format ); ?>

Let me know if anyone is having similar issues

Thanks
Dmitry

ewesoft on "Post in Admin. Username by illegal user"

0
0

I saw some unwanted posts on our blog and to my greatest surprise my account as an administrator was used. This has been happening again and again. Please what can I do?

Thank you.

denijacks on "Show footer and header in admin"

0
0

Is there any way to have my header and footer show up in the admin, in place of the admin bar and admin footer?

JulieMarie on "Image map in header no recognized in Chrome"

0
0

I placed an image map of links in the header on my website. The map is recognized and functions fine in firefox however the map appears to be non existent in chrome. I cannot find the right solution anywhere. Any assistance would be much appreciated. protectivediet.com

Viewing all 8245 articles
Browse latest View live




Latest Images