SeaLuke
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Storefront] Products position home pageThanks for the suggestion, I hope that soon there will be a quicker and painless way for our pockets ??
Forum: Plugins
In reply to: [Multi Rating] Customizing “Sample rating item” labelHi, I would be interested to know too. How to edit “Sample rating item”, I’ve a italian site. thanks
Forum: Themes and Templates
In reply to: [Storefront] How to change color H1 entry-titleMIRACLE!!!
even a goat like me has succeeded!!! Grazie Mykey and sorry for my ignorance.The first string goes in function.php (Menu-Appearance-Editor-functions.php)
The second string with a custom color #123 in Additional CSS (customize your site – Additional CSS)
e FUNZIONA!Google’s inspect element sent me off the road,
because I thought I could change only the rgb values.
starting from zero in my mind it was all very damned more complex.Forum: Themes and Templates
In reply to: [Storefront] How to change color H1 entry-titleRi grazie Mykey
1 thing I understand (Miracle!!!) ?? with the first string is ok,inserting the string
.page-template-template-homepage.has-post-thumbnail .type-page.has-post-thumbnail .entry-content, .page-template-template-homepage.has-post-thumbnail .type-page.has-post-thumbnail .entry-title {
color: #000;
opacity: 1;
}in function.php gives me this error
syntax error, unexpected ‘.’, expecting end of file
Le tue modifiche al codice PHP sono state annullate a causa di un errore alla linea 69 del file wp-content/themes/storefront/functions.php. Correggi e prova a salvare nuovamente.
??
Forum: Themes and Templates
In reply to: [Storefront] How to change color H1 entry-titleCaro Mikey,
I thank you very much, ti ringrazio davvero di cuore per il tuo aiuto.
Unfortunately, entering the code you gave me both the title and the content of the home page section disappeared, installing the plugin tells me that the page was not found. I give up, I will keep the page title black and if anyone asks me why that black on a blue color I will answer that the creators of the theme do not allow you to change that color.
I’d rather pay than being confronted with this situation, I installed dozens of themes on the sites that I have created, only for this theme this thing happened to me. Certainly StoreFront will not recommend it to anyone.
If I can not set the RGB values ??it makes no sense to keep them, also because using the customization the titles of all the other pages I see the chosen color, this black spot on the home page is a shit.
Do not misunderstand your help was really welcome, ma se questa caratteristica del tema fa pena non è colpa tua.GRAZIE
Forum: Themes and Templates
In reply to: [Storefront] How to change color H1 entry-titleLocation file: wp-content/themes/storefront/assets/js/homepage.js
Script
window.RGBaster.colors( img, {
paletteSize: 1,
success: function( payload ) {
var rgb = payload.dominant;
var colors = rgb.match( /^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/ );var r = colors[1];
var g = colors[2];
var b = colors[3];
var brightness = 1;
// Get the average rgb value.
var overall = Math.round( ( ( parseInt( r, 10 ) * 299 ) + ( parseInt( g, 10 ) * 587 ) + ( parseInt( b, 10 ) * 114 ) ) / 1000 );
if ( overall > 230 ) {
brightness = 0; // Black.
} else {
brightness = 30; // White.
}var newr = Math.floor( ( 255 – r ) * brightness );
var newg = Math.floor( ( 255 – g ) * brightness );
var newb = Math.floor( ( 255 – b ) * brightness );
var color = ‘rgb(‘ + newr + ‘, ‘ + newg + ‘, ‘ + newb + ‘)’;homepageContent.style.color = color;
homepageContent.querySelectorAll( ‘h1’ ).forEach( function( h1 ) {
h1.style.color = color;
} );
homepageContent.querySelectorAll( ‘.entry-title, .entry-content’ ).forEach( function( el ) {
el.classList.add( ‘loaded’ );
el.style.textShadow = brightness >= 30 ? ‘0 4px 30px rgba(0,0,0,.9)’ : ”;
} );
}
} );
} );} )();
I don’t understand where I put a RGB value and if I put in this page. less where I put a code that you give me, if I add it here? if I change it? for other css what’s do you mean? sorry i’m really ignorant, but I want to know… if I change a theme for this thing.
Forum: Themes and Templates
In reply to: [Storefront] How to change color H1 entry-titleHi @mikeyarce,
sorry for the misunderstanding, surely I explained myself badly,
I wanted to upload a photo to show better but I see that this forum does not support this possibility.
I try to do as you suggest. I am ignorant, but it seems a difficult job to replace a trivial color to the page title
GrazieForum: Themes and Templates
In reply to: [Storefront] How to change color H1 entry-titleI inserted the script in the add css section of the customization, however I asked where to find the code and it makes no sense that you answer me with the code I posted already I do not even make irony about the color. #5uc8er
The site is under contruction.