Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Extract Custom CSS from MySQL database
New Landing › How can we help? › Themeforest Theme Support › Dante › Extract Custom CSS from MySQL database
- This topic has 13 replies, 2 voices, and was last updated 10 years by Mohammad – SUPPORT.
-
Posted in: Dante
-
November 24, 2014 at 4:08 pm #130625
Hello Guys,
I recently encountered a break down of my website and lost a complete website.
Now I do have a backup, but when I re-installed this backup (now locally) the theme settings are not transferred with the database. I wrote some css code and this was actually most of the work for this website that is gone at this point. (I placed this at the theme settings of DANTE – Custom CSS box)So my question is, is it possible to retrieve this from the mysql database? I do have the mysql file and uploaded here as attachment. When I search for the custom css I can find some lines in there but it is all disrupted through the code. Maybe you guys now how this works and can make the impossible possible by extracting the custom css part of the theme settings.
I hope this is possible.
Many thanks,
Jeff
Attachments:
You must be logged in to view attached files.November 25, 2014 at 5:09 am #130731Hi,
Please create a database and import this sql file. Find the custom css at wp_options table. Hope you can do it easily.Thanks
MohammadNovember 25, 2014 at 2:32 pm #130922Hi Mohammad,
Off course I did this. But I can not find the custom css written anywhere.
November 25, 2014 at 3:22 pm #130955Hi,
May i have access your database server?
Thanks
MohammadNovember 25, 2014 at 3:32 pm #130963Hi,
I’m sorry, the database and installation is offline. Unfortunately I can not put the database online because it would cause a error in the server due to other database tables. Offline it works like it should, that was one of the reasons why I attached the file. I hope you can take a quick look at it.
November 25, 2014 at 3:51 pm #130978HI,
My local server is not working. I tried to import this databse file at live server but i failed to import it. Can you please export only wp_options table and attach here ?
Thanks
MohammadNovember 25, 2014 at 4:07 pm #130997Thank you for the fast reply. Here is a export of only the wp_options it should be in here somewhere 🙂
November 25, 2014 at 4:08 pm #130998Zipped it this time, would not allow me to upload it otherwise…
Attachments:
You must be logged in to view attached files.November 25, 2014 at 4:24 pm #131017Hi,
I got only given below css code:-/* HENRY HARRISON */ a.eg-henryharrison-element-1, a.eg-henryharrison-element-2 { -webkit-transition: all .4s linear; -moz-transition: all .4s linear; -o-transition: all .4s linear; -ms-transition: all .4s linear; transition: all .4s linear; } /* JIMMY CARTER */ .eg-jimmy-carter-element-11 i:before { margin-left:0px; margin-right:0px;} /* HARDING */ .eg-harding-element-17 { letter-spacing:1px} .eg-harding-wrapper .esg-entry-media { overflow:hidden; box-sizing:border-box; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; padding:30px 30px 0px 30px; } .eg-harding-wrapper .esg-entry-media img { overflow:hidden; border-radius:50%; -webkit-border-radius:50%; -moz-border-radius:50%; } /*ULYSSES S GRANT */ .eg-ulysses-s-grant-wrapper .esg-entry-media { overflow:hidden; box-sizing:border-box; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; padding:30px 30px 0px 30px; } .eg-ulysses-s-grant-wrapper .esg-entry-media img { overflow:hidden; border-radius:50%; -webkit-border-radius:50%; -moz-border-radius:50%; } /*RICHARD NIXON */ .eg-richard-nixon-wrapper .esg-entry-media { overflow:hidden; box-sizing:border-box; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; padding:30px 30px 0px 30px; } .eg-richard-nixon-wrapper .esg-entry-media img { overflow:hidden; border-radius:50%; -webkit-border-radius:50%; -moz-border-radius:50%; } /* HERBERT HOOVER */ .eg-herbert-hoover-wrapper .esg-entry-media img{ filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */ filter: gray; /* IE6-9 */ -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */ } .eg-herbert-hoover-wrapper:hover .esg-entry-media img{ filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0'/></filter></svg>#grayscale"); -webkit-filter: grayscale(0%);} /* JOOHNSON */ .eg-lyndon-johnson-wrapper .esg-entry-media img{ filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */ filter: gray; /* IE6-9 */ -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */ } .eg-lyndon-johnson-wrapper:hover .esg-entry-media img{ filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0'/></filter></svg>#grayscale"); -webkit-filter: grayscale(0%);} /*RONALD REAGAN*/ .esg-overlay.eg-ronald-reagan-container {background: -moz-linear-gradient(top, rgba(0,0,0,0) 50%, rgba(0,0,0,0.83) 99%, rgba(0,0,0,0.85) 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(50%,rgba(0,0,0,0)), color-stop(99%,rgba(0,0,0,0.83)), color-stop(100%,rgba(0,0,0,0.85))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(0,0,0,0) 50%,rgba(0,0,0,0.83) 99%,rgba(0,0,0,0.85) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(0,0,0,0) 50%,rgba(0,0,0,0.83) 99%,rgba(0,0,0,0.85) 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(0,0,0,0) 50%,rgba(0,0,0,0.83) 99%,rgba(0,0,0,0.85) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(0,0,0,0) 50%,rgba(0,0,0,0.83) 99%,rgba(0,0,0,0.85) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#d9000000',GradientType=0 ); /* IE6-9 */} /*GEORGE BUSH*/ .eg-georgebush-wrapper .esg-entry-cover {background: -moz-linear-gradient(top, rgba(0,0,0,0) 50%, rgba(0,0,0,0.83) 99%, rgba(0,0,0,0.85) 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(50%,rgba(0,0,0,0)), color-stop(99%,rgba(0,0,0,0.83)), color-stop(100%,rgba(0,0,0,0.85))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(0,0,0,0) 50%,rgba(0,0,0,0.83) 99%,rgba(0,0,0,0.85) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(0,0,0,0) 50%,rgba(0,0,0,0.83) 99%,rgba(0,0,0,0.85) 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(0,0,0,0) 50%,rgba(0,0,0,0.83) 99%,rgba(0,0,0,0.85) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(0,0,0,0) 50%,rgba(0,0,0,0.83) 99%,rgba(0,0,0,0.85) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#d9000000',GradientType=0 ); /* IE6-9 */} /*GEORGE BUSH .eg-georgebush-wrapper .esg-entry-cover { background: rgba(0,0,0,0.5);}*/ /*JEFFERSON*/ .eg-jefferson-wrapper { -webkit-border-radius: 5px !important; -moz-border-radius: 5px !important; border-radius: 5px !important; -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC) !important; } /*MONROE*/ .eg-monroe-element-1 { text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1); } /*LYNDON JOHNSON*/ .eg-lyndon-johnson-wrapper .esg-entry-cover { background: -moz-radial-gradient(center, ellipse cover, rgba(0,0,0,0.35) 0%, rgba(18,18,18,0) 96%, rgba(19,19,19,0) 100%); /* FF3.6+ */ background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(0,0,0,0.35)), color-stop(96%,rgba(18,18,18,0)), color-stop(100%,rgba(19,19,19,0))); /* Chrome,Safari4+ */ background: -webkit-radial-gradient(center, ellipse cover, rgba(0,0,0,0.35) 0%,rgba(18,18,18,0) 96%,rgba(19,19,19,0) 100%); /* Chrome10+,Safari5.1+ */ background: -o-radial-gradient(center, ellipse cover, rgba(0,0,0,0.35) 0%,rgba(18,18,18,0) 96%,rgba(19,19,19,0) 100%); /* Opera 12+ */ background: -ms-radial-gradient(center, ellipse cover, rgba(0,0,0,0.35) 0%,rgba(18,18,18,0) 96%,rgba(19,19,19,0) 100%); /* IE10+ */ background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%,rgba(18,18,18,0) 96%,rgba(19,19,19,0) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#59000000', endColorstr='#00131313',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */ } /*WILBERT*/ .eg-wilbert-wrapper .esg-entry-cover { background: -moz-radial-gradient(center, ellipse cover, rgba(0,0,0,0.35) 0%, rgba(18,18,18,0) 96%, rgba(19,19,19,0) 100%); /* FF3.6+ */ background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(0,0,0,0.35)), color-stop(96%,rgba(18,18,18,0)), color-stop(100%,rgba(19,19,19,0))); /* Chrome,Safari4+ */ background: -webkit-radial-gradient(center, ellipse cover, rgba(0,0,0,0.35) 0%,rgba(18,18,18,0) 96%,rgba(19,19,19,0) 100%); /* Chrome10+,Safari5.1+ */ background: -o-radial-gradient(center, ellipse cover, rgba(0,0,0,0.35) 0%,rgba(18,18,18,0) 96%,rgba(19,19,19,0) 100%); /* Opera 12+ */ background: -ms-radial-gradient(center, ellipse cover, rgba(0,0,0,0.35) 0%,rgba(18,18,18,0) 96%,rgba(19,19,19,0) 100%); /* IE10+ */ background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%,rgba(18,18,18,0) 96%,rgba(19,19,19,0) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#59000000', endColorstr='#00131313',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */ } .eg-wilbert-wrapper .esg-entry-media img{ -webkit-transition: 0.4s ease-in-out; -moz-transition: 0.4s ease-in-out; -o-transition: 0.4s ease-in-out; transition: 0.4s ease-in-out; filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */ filter: gray; /* IE6-9 */ -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */ } .eg-wilbert-wrapper:hover .esg-entry-media img{ filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0'/></filter></svg>#grayscale"); -webkit-filter: grayscale(0%);} /*PHILLIE*/ .eg-phillie-element-3:after { content:" "; width: 0px; height: 0px; border-style: solid; border-width: 5px 5px 0 5px; border-color: #000 transparent transparent transparent; left:50%; margin-left:-5px; bottom:-5px; position:absolute; } /*HOWARD TAFT*/ .eg-howardtaft-wrapper .esg-entry-media img, .eg-howardtaft-wrapper .esg-media-poster{ filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0'/></filter></svg>#grayscale"); -webkit-filter: grayscale(0%); } .eg-howardtaft-wrapper:hover .esg-entry-media img, .eg-howardtaft-wrapper:hover .esg-media-poster{ filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */ filter: gray; /* IE6-9 */ -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */ } /* WOOCOMMERCE */ .myportfolio-container .added_to_cart.wc-forward { font-family: "Open Sans"; font-size: 13px; color: #fff; margin-top: 10px; } /* LIGHTBOX */ .esgbox-title.esgbox-title-outside-wrap { font-size: 15px; font-weight: 700; text-align: center; } .esgbox-title.esgbox-title-inside-wrap { padding-bottom: 10px; font-size: 15px; font-weight: 700; text-align: center; }
Thanks
MohammadNovember 25, 2014 at 4:31 pm #131025Thank you for looking in to it. This is not the one. I think this is part of the Dante theme css right?
When I open the database in Txtedit I can see that the data is still there but it is not in the right sequence so it is impossible to extract it from there. I hoped that you would know another way the theme would save it somewhere in a table. Or another way to retrieve information from the database.
November 25, 2014 at 4:35 pm #131030Hi,
In which table , you are looking this css ?
Thanks
MohammadNovember 25, 2014 at 4:48 pm #131040Hi,
I can not find it in the wp_options or in the exported database of the wp_options. Also not if I search for it in the original database when imported. I can only seem to find it when I open the original file in text edit and search for a sentence of css code that was in there, for example:
.sticky-header, .page-id-33
It will find it then. Is it possible that it is saved in a different table?
November 25, 2014 at 4:52 pm #131043I found it! I do not understand how. I reimported it several times into a new database and search for the same sentence again and again.
Now I found them in the table: sf_dante_options
Thank you for all the help! 🙂
November 25, 2014 at 4:55 pm #131046Hi,
I am glad that you managed to resolve the issue.
Thanks
Mohammad -
Posted in: Dante
You must be logged in and have valid license to reply to this topic.