HTML
.post-header-container{
margin-bottom:12px
}
.post-header-container .post-share-buttons-top{
float:right
}
.post-header-container .post-header{
float:$startSide
}
paste down code just above .post-header-container{
margin-bottom:12px
}
HTML2
/* Existing styles.css */
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
color: #333;
background-color: #f9f9f9;
margin: 0;
padding: 20px;
}
.text-container {
width: 100%;
height: 100%;
margin: 20px;
background-color: #fff;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
/* Additional styles for blog description container */
.blog-description-container {
width:100%;
height: 100%;
margin: 20px;
background-color: #fff;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
/* Add any additional styles for lazy loading, preloading, or system UI here */
}
#2
text ko text samje and image ko image
<b:includable id='userProfileText'>
<dd class='profile-textblock profile-snippet snippet-container r-snippet-container'>
<div class='snippet-item r-snippetized'>
<data:aboutme/>
</div>
<div class='snippet-fade r-snippet-fade hidden'/>
</dd>
</b:includable>
1.
uper ka code dikhai dega usko badal de or niche diye gaye code ko laga de
snippet-item r-snippetized ye appko do jagha milega dono jagha me chage karna hai and code niche diya gaya hai
HTML3
<b:includable id='userProfileText'>
<dd class='profile-textblock profile-snippet snippet-container r-snippet-container'>
<div class='snippet-item r-snippetized' id='aboutMeContainer'>
<data:aboutme/>
</div>
<div class='snippet-fade r-snippet-fade hidden'/>
</dd>
<!-- Add the following script to handle text and images -->
<script type='text/javascript'>
// Get the content from data:aboutme
var aboutMeContainer = document.getElementById('aboutMeContainer');
var aboutMeContent = aboutMeContainer.innerHTML;
// Create a temporary div element to parse the HTML content
var tempDiv = document.createElement('div');
tempDiv.innerHTML = aboutMeContent;
// Check if the content contains an <img> tag
var hasImgTag = tempDiv.querySelector('img') !== null;
// Perform actions based on whether an image is found
if (hasImgTag) {
// Perform actions for images
aboutMeContainer.innerHTML = '<p>This contains an image.</p>' + aboutMeContent;
} else {
// Perform actions for text
aboutMeContainer.innerHTML = '<p>This is text: ' + aboutMeContent + '</p>';
}
</img></script>
</b:includable>
html 3 ke result mile hai noteable raw theme me jahn image ko image and text ko text bataya gaya hai
HTML4
<b:includable id='userProfileText'>
<dd class='profile-textblock profile-snippet snippet-container r-snippet-container'>
<div class='snippet-item r-snippetized' id='aboutMeContainer'>
<data:aboutme/>
</div>
<div class='snippet-fade r-snippet-fade hidden'/>
</dd>
<!-- Add the following script to handle text and images -->
<script type='text/javascript'>
// Get the content from data:aboutme
var aboutMeContainer = document.getElementById('aboutMeContainer');
var aboutMeContent = aboutMeContainer.innerHTML;
// Create a temporary div element to parse the HTML content
var tempDiv = document.createElement('div');
tempDiv.innerHTML = aboutMeContent;
// Check if the content contains an <img> tag
var hasImgTag = tempDiv.querySelector('img') !== null;
// Preload images
if (hasImgTag) {
var images = tempDiv.querySelectorAll('img');
images.forEach(function (img) {
var link = document.createElement('link');
link.rel = 'preload';
link.as = 'image';
link.href = img.src;
document.head.appendChild(link);
});
}
// Perform actions based on whether an image is found
if (hasImgTag) {
// Perform actions for images
aboutMeContainer.innerHTML = '<p>This contains an image.</p>' + tempDiv.innerHTML;
} else {
// Perform actions for text
aboutMeContainer.innerHTML = '<p>This is text: ' + aboutMeContent + '</p>';
}
</img></script>
</b:includable>
2.
HTML5
<b:includable id='userProfileText'><dd class='profile-textblock profile-snippet snippet-container r-snippet-container'><div class='snippet-item r-snippetized'><data:aboutme/></div><div class='snippet-fade r-snippet-fade hidden'/></dd></b:includable>
uper ke code ke jagha niche ke code ko paste kar de
HTML6
<b:includable id='userProfileText'>
<dd class='profile-textblock profile-snippet snippet-container r-snippet-container'>
<div class='snippet-item r-snippetized' id='aboutMeContainer'>
<data:aboutme/>
</div>
<div class='snippet-fade r-snippet-fade hidden'/>
</dd>
<!-- Add the following script to handle text and images -->
<script type='text/javascript'>
// Get the content from data:aboutme
var aboutMeContainer = document.getElementById('aboutMeContainer');
var aboutMeContent = aboutMeContainer.innerHTML;
// Create a temporary div element to parse the HTML content
var tempDiv = document.createElement('div');
tempDiv.innerHTML = aboutMeContent;
// Check if the content contains an <img> tag
var hasImgTag = tempDiv.querySelector('img') !== null;
// Preload images
if (hasImgTag) {
var images = tempDiv.querySelectorAll('img');
images.forEach(function (img) {
var link = document.createElement('link');
link.rel = 'preload';
link.as = 'image';
link.href = img.src;
document.head.appendChild(link);
});
}
// Perform actions based on whether an image is found
if (hasImgTag) {
// Lazy load images
images.forEach(function (img) {
img.setAttribute('loading', 'lazy');
});
// Perform actions for images
aboutMeContainer.innerHTML = '<p>This contains an image.</p>' + tempDiv.innerHTML;
} else {
// Perform actions for text
aboutMeContainer.innerHTML = '<p>This is text: ' + aboutMeContent + '</p>';
}
</img></script>
</b:includable>
hello
.hero-post-snippet.snippet-container{
font-size:14px;
max-height:112px
}
.hero-post-snippet .snippet-item{
line-height:2
}
.hero-post-snippet .snippet-fade{
height:28px
}
.hero-post-noimage-snippet.snippet-container{
font-size:14px;
line-height:2;
max-height:224px
}
.hero-post-noimage-snippet .snippet-item{
line-height:2
}
.hero-post-noimage-snippet .snippet-fade{
height:28px
}
.hero-post-noimage-snippet .snippet-item::first-letter{
font-size:56px;
line-height:normal
}
and this code
.hero-post-snippet.snippet-container{
max-height:$(body.text.font.size * 4 * 2)
}
.hero-post-snippet .snippet-item{
line-height:$(body.text.font.size * 2)
}
.hero-post-snippet .snippet-fade{
background:-webkit-linear-gradient($startSide,$(heropost.main.background.color) 0,$(heropost.main.background.color) 20%,$(heropost.main.background.color.transparent) 100%);
background:linear-gradient(to $startSide,$(heropost.main.background.color) 0,$(heropost.main.background.color) 20%,$(heropost.main.background.color.transparent) 100%);
color:$(heropost.main.text.color);
height:$(body.text.font.size * 2)
}
.hero-post-snippet a{
color:$(heropost.main.link.color)
}
.hero-post-noimage-snippet.snippet-container{
max-height:$(body.text.font.size * 8 * 2)
}
.hero-post-noimage-snippet .snippet-item{
line-height:$(body.text.font.size * 2)
}
.hero-post-noimage-snippet .snippet-fade{
background:-webkit-linear-gradient($startSide,$(heropost.secondary.background.color) 0,$(heropost.secondary.background.color) 20%,$(heropost.secondary.background.color.transparent) 100%);
background:linear-gradient(to $startSide,$(heropost.secondary.background.color) 0,$(heropost.secondary.background.color) 20%,$(heropost.secondary.background.color.transparent) 100%);
color:$(heropost.secondary.text.color);
height:$(body.text.font.size * 2)
}
need to change in upper code like this
.hero-post-snippet.snippet-container {
max-height: $(body.text.font.size * 3 * 2); /* Adjust max-height as needed */
}
.hero-post-noimage-snippet.snippet-container {
max-height: $(body.text.font.size * 6 * 2); /* Adjust max-height as needed */
}
and
.hero-post-snippet.snippet-container {
max-height: 84px; /* Adjust max-height as needed */
}
.hero-post-noimage-snippet.snippet-container {
max-height: 168px; /* Adjust max-height as needed */
}
uper diye gaye code ke according appko hight change karna hia only dono code me but not working for lcp
#4
niche diye gaye code se
- Fixed the URL parameters for
loadScriptAsyncandloadStylesheetAsyncfunctions. - Corrected the comments for better understanding.
- Ensured that the redirection to HTTPS is done correctly.
Please replace the placeholder URLs with your actual URLs as needed
<!-- Include the common code just above the closing </head> tag -->
<script>
// Ensure the page is loaded over HTTPS
if (window.location.protocol !== "https:") {
// Redirect to HTTPS if not already
window.location.href = "https://" + window.location.host + window.location.pathname;
}
// Asynchronously load JavaScript files
function loadScriptAsync(url, callback) {
var script = document.createElement("script");
script.src = url;
script.async = true;
script.onload = callback;
document.head.appendChild(script);
}
// Asynchronously load CSS stylesheets
function loadStylesheetAsync(url, callback) {
var link = document.createElement("link");
link.rel = "stylesheet";
link.type = "text/css";
link.href = url;
link.onload = callback;
document.head.appendChild(link);
}
// Example Usage:
// Load script1.js asynchronously
loadScriptAsync("https://krishiinnovation.blogspot.com/script1.js", function() {
// Code to execute after script1.js is loaded
});
// Load script2.js asynchronously
loadScriptAsync("https://krishiinnovation.blogspot.com/script2.js", function() {
// Code to execute after script2.js is loaded
});
// Load style.css asynchronously
loadStylesheetAsync("https://krishiinnovation.blogspot.com/style.css", function() {
// Code to execute after style.css is loaded
});
</script>
skill grow pro
.heroPost.noimage .big-post-title{
-webkit-box-flex:1;
-webkit-flex:1 0 auto;
-ms-flex:1 0 auto;
flex:1 0 auto;
max-width:480px;
width:480px
}
uper ke jagha me niche vala lagaye
.heroPost.noimage .big-post-title{
-webkit-box-flex:1;
-webkit-flex:1 0 auto;
-ms-flex:1 0 auto;
flex:1 0 auto;
max-width:300px;
width:300px
}
.heroPost .big-post-title h3{
margin:0 0 18px
}
body.item-view .Blog .post-title-container{
padding:62px calc((100% - 920px)/ 2) 18px
@media screen and (max-width:1280px){
.heroPost .big-post-image{
display:table-cell;
left:auto;
position:static;
top:auto
}
@media screen and (max-width:1168px){
.centered-top-container,.centered-top-placeholder{
padding:24px 24px 32px 24px
}
@media screen and (max-width:968px){
body{
font-size:$(body.text.font.size * 14 / 20)
}
.post-header-container .byline,.post-header-container .byline a{
font-size:14px
}
.post-title,.post-title a{
font-size:24px
.hero-post-snippet.snippet-container{
font-size:14px;
max-height:112px
}
.hero-post-snippet .snippet-item{
line-height:2
}
.hero-post-snippet .snippet-fade{
height:28px
}
.hero-post-noimage-snippet.snippet-container{
font-size:14px;
line-height:2;
max-height:224px
}
.heroPost .big-post-text{
background-color:$(heropost.secondary.background.color);
box-sizing:border-box;
color:$(heropost.secondary.text.color);
-webkit-box-flex:1;
-webkit-flex:1 1 auto;
-ms-flex:1 1 auto;
flex:1 1 auto;
min-width:0;
padding:48px
}
.heroPost .big-post-text .snippet-item::first-letter {
color: $(heropost.secondary.dropcap.color);
float: left;
font-weight: 700;
margin-right: 12px;
font-size: 80%; /* You can adjust the percentage to make it smaller or larger */ (added new line)
}
.bg-photo-container{
height:$(body.background.height);
overflow:hidden;
position:absolute;
width:100%;
z-index:1
}
.bg-photo{
background:$(body.background);
background-attachment:scroll;
background-size:cover;
-webkit-filter:blur($(body.background.blur));
filter:blur($(body.background.blur));
height:calc(100% + 2 * $(body.background.blur));
left:$(0 - body.background.blur);
position:absolute;
top:$(0 - body.background.blur);
width:calc(100% + 2 * $(body.background.blur))
}
.bg-photo-overlay{
background:rgba(0,0,0,.26);
background-size:cover;
height:$(body.background.height);
position:absolute;
width:100%;
z-index:2
}
change above tode with down code
:root {
--bg-height: /* Set appropriate value */;
--bg-blur: /* Set appropriate value */;
}
.bg-photo-container {
height: var(--bg-height);
overflow: hidden;
position: absolute;
width: 100%;
z-index: 1;
}
.bg-photo {
background: var(--body-background); /* Update with appropriate variable or value */
background-attachment: scroll;
background-size: cover;
-webkit-filter: blur(var(--bg-blur));
filter: blur(var(--bg-blur));
height: calc(100% + 2 * var(--bg-blur));
left: calc(0px - var(--bg-blur));
position: absolute;
top: calc(0px - var(--bg-blur));
width: calc(100% + 2 * var(--bg-blur));
}
.bg-photo-overlay {
background: rgba(0, 0, 0, 0.26);
background-size: cover;
height: var(--bg-height);
position: absolute;
width: 100%;
z-index: 2;
}
paste this code in html layout add gdeget
<b:if cond='not data:view.isPreview'>
<style type='text/css'>
.bg-photo {
background-image: url('<data:skin.vars.body_background.image/>');
background-attachment: scroll;
background-size: cover;
-webkit-filter: blur(<data:skin.vars.body_background.blur/>);
filter: blur(<data:skin.vars.body_background.blur/>);
height: calc(100% + 2 * <data:skin.vars.body_background.blur/>);
left: calc(0px - <data:skin.vars.body_background.blur/>);
position: absolute;
top: calc(0px - <data:skin.vars.body_background.blur/>);
width: calc(100% + 2 * <data:skin.vars.body_background.blur/>);
}
.bg-photo-overlay {
background: rgba(0, 0, 0, 0.26);
background-size: cover;
height: <data:skin.vars.body_background.height/>;
position: absolute;
width: 100%;
z-index: 2;
}
</style>
</b:if>
.blog-name h1,.blog-name h1 a{
color:$(blog.title.color);
font:$(blog.title.font);
line-height:$(blog.title.font.size);
text-transform:uppercase
}
uper ke code ke jagha niche ka code paste kare site ka name
:root {
--blog-title-color: /* Set your color value */;
--blog-title-font: /* Set your font value */;
--blog-title-line-height: /* Set your line-height value */;
}
.blog-name h1,
.blog-name h1 a {
color: var(--blog-title-color);
font: var(--blog-title-font);
line-height: var(--blog-title-line-height);
text-transform: uppercase;
}
ya niche diya gaya code drop cap ke liye hai isme dono line me 4 ke jagha me 2 kar de size and line dono thik ho jayege
.hero-post-noimage-snippet .snippet-item::first-letter{
font-size:$(body.text.font.size * 4);
line-height:$(body.text.font.size * 4)
}
add green, image ke jagha se hata kar text me dalne ke liye and system ui ko use kiya hai
.FeaturedPost h1, .FeaturedPost h3,body.feed-view .blog-posts,body.feed-view .feed-message{
margin-left:24px;
margin-right:24px
font-family: 'system-ui', sans-serif; /* 'system-ui' font family ka upayog */
}
and
.FeaturedPost h1, .FeaturedPost h3{
margin:16px 136px 8px 136px
}
and
.hero-post-snippet.snippet-container{
font-size:14px;
max-height:112px
}
.hero-post-snippet .snippet-item{
line-height:2
}
.hero-post-snippet .snippet-fade{
height:28px
}
.hero-post-noimage-snippet.snippet-container{
font-size:14px;
line-height:2;
max-height:224px
}
.hero-post-noimage-snippet .snippet-item{
line-height:2
}
.hero-post-noimage-snippet .snippet-fade{
height:28px
}
.hero-post-noimage-snippet .snippet-item::first-letter{
font-size:56px;
line-height:normal
}
uper ke code ke jagha me ye niche diya code lagaye
.hero-post-snippet.snippet-container {
font-size: 14px;
max-height: 112px;
}
.hero-post-snippet .snippet-item {
line-height: 2;
}
.hero-post-snippet .snippet-fade {
height: 28px;
}
.hero-post-noimage-snippet.snippet-container {
font-size: 14px;
line-height: 2;
max-height: 224px;
}
.hero-post-noimage-snippet .snippet-item {
line-height: 2;
}
.hero-post-noimage-snippet .snippet-fade {
height: 28px;
}
.hero-post-noimage-snippet .snippet-item::first-letter {
font-size: 56px; /* Kam kiya gaya size */
line-height: normal;
}
https://www.youtube.com/watch?v=Z1ie_mHaERQ&t=433s
+(1)%20(1).webp)
.png)
.png)
Comments
Post a Comment