I have a theme that has a way for Client logos to display by category on a PAGE. You fill in a “Client” post for each logo you want to add (by making the featured image the logo), and then on the Page, you select the Shortcode for “Client” and then on that shortcode form you select what category you want the logo to display under. GREAT!
However, the logos are set in the theme-functions.php as 75px square. Much too tiny to be able to read. I wish they had let us set the size. I was able to, by great convoluted coding in the CSS, get it to display to the size I want, but it STILL creates the image to 75 pixels, so actually I am blowing up the logo and it looks terrible.
I of course bought support for the theme, but they tell me this would be a modification to theme files & therefore can’t help (I understand) but he did tell me that the size call out was in theme-name>functions>theme-function.php. I know I found the correct code as the support person did say that the clients-slider worked for the slider as well as the non-slider:
/* ---------------------------------------------------------------------------
* Add Image Size
*
* TIP: add_image_size ( string $name, int $width, int $height, bool|array $crop = false )
* --------------------------------------------------------------------------- */
if( ! function_exists( 'mfn_add_image_size' ) )
{
function mfn_add_image_size() {
// Backend --------------------------------------------
// Featured Image
set_post_thumbnail_size( 260, 146, false );
// Custom Post Format - List Thumbnails
add_image_size( '50x50', 50, 50, false );
// Builder Items --------------------------------------
// Clients - do NOT crop logos
add_image_size( 'clients-slider', 150, 75, false );
I changed it to: add_image_size( 'clients-slider', 150, 110, false );
BUT it did not work.
Anyone know what I am doing wrong? Your help would be very much appreciated! I would love to post the URL of the site, but HOSTGATOR just stopped allowing temporary URLs (YIKES!)
Thanks so much,
Janell
I would love to build a theme that others can use.
I am trying to extend the Twenty Sixteen theme with a couple of extra’s. I am getting stuck and could use some help. I need to add the following to the Theme options panel/customizer.
These are the options that I want users to be able to adjust within the customizer options panel:
In the navigation bar users can change:
? Font type selection
? Font size, type
General Fonts users can change:
? Font type selection of <P> and all <h>
? Font size, type and line height
Social media:
? Enable social media icons and entering the url’s.
? Select position, header or / and footer
As an extra it would be awesome if there could be a welcome message. I have seen this in other templates. I also saw this in the WordPress update yesterday. They even had video in there. How is something like that done?
Welcome to theme page
? A standard page which will load once the theme is activated. Here you find resources, documentation and FAQ for example.
I am going wrong with the java scripting.I added options and it did not show up in the customizer. I just do not know what to do where sometimes. Please advise. Working pieces of code that I can “paste into” the Twenty Sixteen theme would be greatly appreciated.
Kind Regards,
Mike
`<?php
add_filter( ‘the_password_form’, ‘custom_password_form’ );
function custom_password_form() {
global $post;
$label = ‘pwbox-‘.( empty( $post->ID ) ? rand() : $post->ID );
$o = ‘<form class=”protected-post-form” action=”‘ . get_option(‘siteurl’) . ‘/wp-pass.php” method=”post”>
‘ . __( “This post is password protected. To view it please enter your password below:” ) . ‘
<label for=”‘ . $label . ‘”>’ . __( “Password:” ) . ‘ </label><input name=”post_password” id=”‘ . $label . ‘” type=”password” size=”20″ /><input type=”submit” name=”Submit” value=”‘ . esc_attr__( “Submit” ) . ‘” />
</form>
‘;
return $o;
}
?>`
when i clicked “update files” my site crashed, i got the error code 500, and i can’t access my site. I tried using an FTP client to access my site but honestly I have no clue what I’m doing. I’m very new to coding, but I did a huge amount of work on my site and I’m super upset about this. Please help!
also, I am using bluehost to host my site so i can still access my bluehost account but i can’t update any of the wordpress stuff from there either.
]]>Here is a link to the site, hopefully you can see what i am trying to achieve – https://utopiaplayground.com/
The other function i am looking to achieve for this site is for user content which reaches a certain threshold of likes, to move from one timeline to the other. For example, a newly submitted post will be allocated to the top of the ‘Raw’ timeline and after it receives a value of say, 20 likes, it moves from the ‘Raw’ timeline to the ‘Trending’ timeline and after perhaps 50 likes, it moves to the ‘Popular’ timeline. Users can then select to view each timeline by using the navbar links.
Thanks in advance [Utopia]
]]>Warning: implode() [function.implode]: Invalid arguments passed in /home/content/77/12366977/html/wp-content/themes/rocco/functions.php on line 86
_____line 86 is in bold:
function mfn_get_comment_excerpt($comment_ID = 0, $num_words = 20) {
$comment = get_comment( $comment_ID );
$comment_text = strip_tags($comment->comment_content);
$blah = explode(' ', $comment_text);
if (count($blah) > $num_words) {
$k = $num_words;
$use_dotdotdot = 1;
} else {
$k = count($blah);
$use_dotdotdot = 0;
}
$excerpt = '';
for ($i=0; $i<$k; $i++) {
$excerpt .= $blah[$i] . ' ';
}
$excerpt .= ($use_dotdotdot) ? '[...]' : '';
return apply_filters('get_comment_excerpt', $excerpt);
}
I managed to turn 2 widgets in the footer into 4 widgets (which i was pretty proud of doing) but i have been having issues with the register sidebar in terms or ordering the widgets how i would like.
Order from left to right i would like to be
left-footer
middle-footer
middle-right
right-footer
This is the existing code in the theme functions
register_sidebar(array('name'=>'Left Footer','id'=>'left-footer','before_widget' => '<div id="left-footer">','after_widget' => '</div>','before_title' => '<h2>','after_title' => '</h2>',));
register_sidebar(array('name'=>'Right Footer','id'=>'right-footer','before_widget' => '<div id="right-footer">','after_widget' => '</div>','before_title' => '<h2>','after_title' => '</h2>',));
As i say, had trouble repeating the code and getting the 2 new widgets in the right order because i don’t understand the code before and after stuff.
Can someone copy pasta the code i need to put to get it to work in order
this is my test site for the theme if that helps https://www.betonwinnerofbigbrother.co.uk
I’m not looking forward to trying to get this responsive.
]]>On porting it over, some of the IP settings seem to have stuck from the prior image as I keep finding re-directs. When I take down the image on my account, their site gets all wonky.
Here’s what I’ve done:
Edit the WP-CONFIG to point directly to their IP address
Changed their htaccess file to .htaccess)old
Modified the unctions files for the basic theme of twentyfifteen that they’re using to also reference their IP address
Re-upload the basic themes from the wordpress site from scratch
Nothing seems to get me back to even a basic setup. I suspect it is something somewhere else in the image file that ported over thats referencing the old IP address but the provider is saying it’s WP based.
Help?
]]>I checked my links to my site today in Google Webmaster Tools and there are a TON of spam links from loan urls.
In my theme functions there is new code which is the following
[removed from public forum]
]]>