Lopo Lencastre de Almeida
Forum Replies Created
-
Forum: Plugins
In reply to: [Author Box Reloaded] Permission to change settingsSame issue at https://wordpress.org/support/topic/you-do-not-have-sufficient-permissions-to-access-this-page-141 as you can see. There should be another plugin conflicting with ABR.
I cannot reproduce it.
Same issue at https://wordpress.org/support/topic/you-do-not-have-sufficient-permissions-to-access-this-page-141 as you can see. There should be another plugin conflicting with ABR.
I cannot reproduce it.
Odd. Doesn’t happen here. I can’t reproduce.
Forum: Plugins
In reply to: [Author Box Reloaded] Problem with CSSYour CSS must be coliding with ABR. The box has a light gray background color and not white. Also icons are ok in several websites with different themes.
You can change totaly the skin. Just see in the Options. A screenshot is at https://wordpress.org/plugins/author-box-2/screenshots/ and check Personal Settings – Personal CSS
Sorry but I don’t give any support to CSS.
Forum: Reviews
In reply to: [Author Box Reloaded] Multiple Plugins!Did you read the code at least?
One of the plugins is the framework I developed to fasten the development of plugins.
The other are addon plugins so you can easy add your own extras without touching the main code.
Forum: Plugins
In reply to: [Revisioner] Revisioner plug-in not working for meSorry for the long delay.
Are you using 1.0.1 and 3.4.1?
Is it still giving you the same error?No reply so closing it
Forum: Plugins
In reply to: [Author Box Reloaded] Picture (Gravatar) on the left sideYou can change the CSS code.
Go to menu “Users”->”Author Box R3″
In the section “Personal Settings” you can insert your own “Personal CSS”.Check the CSS styling at Left-to-Right file or at Right-to-Left file. The part concerning photo positioning would be similar to the below taken from LTR .css file:
#authorbox-photo { background: #FFFFFF; float: left; margin: 0.1em 10px 10px 0; padding: 3px; border: 1px solid #CCCCCC; }Notice that if you add something to the Personal CSS you need to replace all the CSS related hence it will NOT LOAD the default CSS file.
Another option you have, if you use an upgradable theme you don’t control totaly (best option is to make a sub-theme but would loose upgrading) is to create a small plugin called, for instance,
Custom Language Styling🙂<?php /* Plugin Name: Custom Language Styling Description: Set custom styles for specific languages Version: 0.1 License: GPL Author: A Great Guy Author URI: http://www.example.com/ */ function customlangstyling_styles() { // Set the language CSS URI $lang_style = get_template_directory_uri().'/styles/'.get_bloginfo('language').'.css"; // Adding your theme's main CSS style.css wp_register_style('customlangstyling', get_template_directory_uri().'/style.css',,'all'); // Adding language specific CSS. Add dependency on styles.css wp_register_style('customlangstyling_lang', $lang_style, array('customlangstyling')); // Enqueue both wp_enqueue_style('customlangstyling_lang'); } // Add it to loop add_action('wp_head', 'customlangstyling_styles');- save it as
customlangstyling.php - create the directory
wp-content/plugins/customlangstyling - upload the
.phpfile there - Activate it on your dashboard
- That’s it
Hope it helps.
Don’t ever change the code on plugins directly. It’s a bad mojo 🙂
Check my reply at http://wordpress.org/support/topic/plugin-polylang-how-to-translateswitch-specific-contents-on-templates?replies=12#post-2994662 for a solution on your ideia and needs.
Best and hope it helps others too.
Maybe there can be another option for this to use more than 3 languages (maybe using array or something else), but… I have no clue at this moment 🙂
For this you don’t need such a complex stuff and tons of code inside your theme; just turn your theme translatable using
_e()and__()functions and creating a POT file (and .po/.mo files for each language) 🙂Check http://www.solostream.com/blog/tutorials/translate-wordpress-theme/ for more instructions.
Neverthless, this idea is great if you want to select different CSS files for each active language.
Just add something like this in your theme’s
header.php:<style type="text/css" media="screen"> <!-- @import url( <?php bloginfo('template_directory'); ?>/styles/<?php get_bloginfo('language'); ?>.css ); --> </style> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/styles/<?php get_bloginfo('language'); ?>.css" type="text/css" media="screen" />Of course, you need to have a dir like
[your_theme]/stylesand a bunch of CSS files likeen-US.css,pt-PT.cssand so on.On your
style.cssyou just keep the common styles that would work for all languages and on the language specific CSS you keep all the rest, for instance<div>positioning, @webfonts, logo and other imagery replacement, etc.You can, of course, use the same trick but put instead your code on your theme’s
functions.phplike this:// Loading mytheme css styles function mytheme_styles() { // Set the language CSS URI $lang_style = get_template_directory_uri().'/styles/'.get_bloginfo('language').'.css"; // Adding your theme's main CSS style.css wp_register_style('mytheme', get_template_directory_uri().'/style.css',,'all'); // Adding language specific CSS. Add dependency on styles.css wp_register_style('mytheme_lang', $lang_style, array('mytheme')); // Enqueue both wp_enqueue_style('mytheme_lang'); } // Add it to loop add_action('wp_head', 'mytheme_styles');With this the CSS files will be auto inserted in
<head>with thewp_head()function call. And it would benefit of any minifying options you have to speed up your site load.note: You could use
pll_current_language('slug')instead ofget_bloginfo('language')when using Polylang. Check the docs and search forpll_current_languageto see the syntax and adapt the code above accordingly 😉Forum: Plugins
In reply to: [Facebook] Not publishing on FacebookRemoved the App from non-FB App admin user FB privacy area and re-added it via WP. All seemed to be ok nut now I get this error:
Forum: Plugins
In reply to: [Facebook] Not publishing on FacebookOk!
Now it is publishing but only as one user (the blog has two).
Even if the FB user wall where the article is published is not the one logged in WP and really publishing the article.Forum: Plugins
In reply to: [Facebook] Not publishing on FacebookHi,
What clickable images are you talking about?
Below images from App Dashboard on FB:
Definitions Basic: http://tinypic.com/r/2u5c500/6
OpenGraph Dashboard: http://tinypic.com/r/2v0intw/6Thanks.
- save it as