How to remove meta viewport from a dotnetnuke theme? - css

My company just buy a really nice theme for dotnetnuke. The problem comes when our clients does not want to see the site in a responsive mode. I have been thinking the problem is the meta viewport in the theme.
I dont want to create a new theme and I dont want to use javascript.
How could I remove that meta viewport from an existing theme for dotnetnuke? Is this possible?

You can open up the ASCX files for the Theme.
Try navigating to /portals/_default/skins/THEMENAME
Locate the ASCX files there.
Make a backup before you make any edits.
Open the ASCX file in a text editor (Visual Studio works, or even just Notepad).
Locate the viewport tag, remove it.
Refresh the browser/site where you are using the theme.
If you have multiple ASCX files in there, there are likely different layouts available, and you'll probably have to edit them all.

Related

How to edit css of "Document Library Previewer" web part on Sharepoint online/designer?

Info/Problem.
Using Sharepoint online with a dark/black theme.
On the homepage, I am using the document library previewer web part.
The font for URL's/Hyperlinks is defaulting to black so they aren't visible on the black background.
Attempting to change the font color of these URL's using CSS.
What I've tried
I've used the Dev Tools in Chrome to locate and change the CSS to make the font color white. This works, but the changes don't save after I refresh the page.
Downloaded and Installed Sharepoint Designer and copied the style element to a txt file stored in the style library. I'm not sure how or where to insert this file in Sharepoint designer to apply to to my site
The ideal solution would be editing the CSS for the homepage and then saving it permanently. I feel like I've gotten most of the way there, I just can't figure out how to save/apply my changes.
If it isn't already obvious, I'm not much of a developer so I'm a bit out of my depth here.
I don't think you can customize the css of existing webpart using designer. You have to create your own previewer using spfx. there are some webparts you can checkout.
Did you try to add the CSS style code into Script Editor web part in the home page?
If you use modern page, check the solution below.
react-script-editor

Custom CSS WordPress Theme via cPanel (not updating)

I am wondering why I am not unable to make changes; I already tried several things yet, I don't seem to be able to update the CSS, the following I did already:
There is no Editor, so I am unable to make changes via there.
I am an Administrator and have access to cPanel.
I made changes via ../wp-content/theme/my-theme/style.css and no changes were made.
I empty my cache via plugin and hard reload my Chrome, Firefox and Safari. And no changes were made.
Is there any other solutions? I already found the file which contains all the styles. I would try to add my own class, and see if I am to see if there is any effect.
First thing first, From cPanel you can navigate to your website from the fileManager, use it to make code changes and then save them. You need to clear the cache everytime you make changes (i usually do it from the browser (in chrome, open the dev console, then long press on the refresh button and select the bottom one)
If the changes are still not showing on your site, I think that maybe you are editing the wrong CSS? Is this your theme and are you 100% sure you are editing the right file and, for example, it's not overwritten by a child theme or something else?
If you are using any framework, maybe your property is overwritten by your framework (for example, by bootstrap). To check this, open the console or try to add !important in your CSS file.
Just as an example, when I develop a theme I leave the root style.css with only the theme definitions, and then I create different stylesheets in a different folder. This leads me to the next question: are you enqueue your file correctly? is it even loaded by WordPress?
to check this I usually inspect the code in and search for the id of the file I enqueued from my functions.php.
Unfortunately, without more details, this is the only things I could think of when developing and WordPress theme and make changes from cPanel. Hope some of this can actually help.
Please check following options
Permission of file at ../wp-content/theme/my-theme/style.css.
Grab the css and open in Dream-viewer or sublime is there any css syntax issue.
Also the path of style.css in header is show same by view source.
Or
Even you can use the plugins which allow to add custom css without toching the server check this plugin https://wordpress.org/plugins/simple-custom-css/

Finding the right stylesheet to edit in Joomla template

I have been trying to edit a particular style in my theme. My browser inspect shows that that the stylesheet file is local/css/template.css, i navigated to the Joomla template customize panel to edit the style sheet but the changes i made is not reflecting. please help
View template.css in your web browser to check if you can see the change. You may need to clear the Joomla cache and any other caching (e.g. via your hosting control panel or your CDN control panel etc) before you see the latest version of the CSS file.
Alternatively, this may be a specificity issue.

Managing Wordpress Theme

A Wordpress theme has following components:
theme.zip file
demo-content.xml
PSD.zip file (contains files such as icon-blog.psd, icon-home.psd, integrity-blog.psd, ... renew-home.psd)
Using WP Admin (WP Backend) I have managed to upload theme.zip file.
Using WP Importer I have managed to upload demo content.
However, what do I do with PSD files?
I would like to add that the current frontend looks very basic. And I assume PSD files serve to enrich frontend. But how do I use them? Where do I "import" them? How do I do it?
After taking a look at the comments, I have to say that if the tag exists, the answer should be answered here too.
Your .PSD is basically all the images that compose your theme in one editable file.
The extension of the file is meant to be opened with Photoshop and if you open it there, you should see the design of your theme ready to be cut and applied into HTML and CSS.
For Wordpress or your site it has no utility by itself, however, if you want to change some button, icon or related it's just a matter of open the editable, change it, save the image and replace it on the server.
Ex:
You bought a theme initially developed in English and you have a button which is an image that says "Register". Since it's not editable, there's no code change that can help you, so the only way you have is to open the .PSD, edit the button and save it again as image, replacing the old one.

Adding an image to a sharepoint theme

I'm trying to add a bottom banner image to our sharepoint site without editing the masterpage files.
Is this possible?
Edit:
The image should appear on all pages with the relevant theme.
Cheers,
-Jeremiah Tantongco
I guess you don't want the image on all pages? You could use an Image Web Part or Content Editor Web Part and add the images using those standard web parts.
Edit the theme.css file in your C:\Program Files\Common Files\Microsoft Shared\Web Server Extentions\12\TEMPLATES\THEMES\themeName
Put any images in the same folder and referer it as url('image.jpg') in the CSS, do not use / or ../ etc.
Save the file, apply a different theme to your site, recycle the application pool then apply the customized theme back. Complicated, yes I know. Keep in mind that the theme is now changed to everyone using it and will be changed when applied in the future.
If you want to find other ways to customize the site, check this post I made a while ago

Resources