Does anybody know how to change bullet style using DocX ? I can add bullet lists, but can't figure out how to change the style to square bullets. I searched both the documentation and the source code on Github, to no avails.
Thanks in advance
Related
I have a GatsbyJS website that uses NetlifyCMS. I restyled the images on my website to be centered. The issue i've found now is that all the emojis in the blog posts are now also in a new line and centered in the posts and it doesn't look good at all.
Is there anyway to style the img and emojis seperately? I am aware that emojis show up on the markdown file as images.
I have attached images of how the emojis look in the blog posts, the markdown file and the styling file.
Any solutions would be appreciated <3
That's because you are using images.
In markdown the syntax
![x](y)
will be rendered to html as
<img src='y' alt='x'>
So, the solution is either using plain emoji as #ando-andriamalala suggested.
Or, if you really need to use image (I'm guessing for display consistency?), you can, assuming you only use this domain for your emoji needs:
.Content img[src*="https://static.xx.fbcdn.net"] {
...
}
see MDN CSS: Attribute selectors for details
Try to use copy and past emoji instead of image 😆
here a link https://getemoji.com/
I want to add a glassdoor icon. You can find my site at braunweiss.net. My theme uses fontawesome and it currently doesn't support a glassdoor icon. So I tried adding an image in place using the below code:
.social-menu li a[href*="glassdoor.com"]::before {content:url(http://braunweiss.net/wp-content/uploads/2017/07/glassdoor-2-1.png);}
However, it looks bad, it's not customizable, and it doesn't change when it is hovered like a font. I've read of using svg in inline css but cannot figure out how to do it. Here's where I got the glassdoor icon I used: https://materialdesignicons.com/ (scroll down, the icons are in alphabetical order).
Is there a better way to get the icon to show up? I can only customize css or add codes to my theme's php files on wordpress. Thanks.
Have you tried using an SVG?
https://github.com/FortAwesome/Font-Awesome/issues/6422 (SVG LINK IS IN HERE)
https://css-tricks.com/using-svg/ Icon SVG how-to.
EDIT: No URL but this is what I mean:
I'm trying to change the colour of my header font and the size of my font in my footer on my Avada theme.
Now when I use Firebug to see which CSS file those respective items are located in, it tells me Wordpress/#7(or whatever), and I don't know where to find those. I've already looked through my theme options and I can't find them. Any help would be greatly appreciated.
Thanks in advance.
If you're using Firebug, when you view the class in the CSS visibility sidepanel, you should be able to see a referenced style sheet where that class is located.
Here is an example of where its located
i'm with some doubts here, i've trying to find a tutorial or example on 'how to' but i can't find any.
I have a good knowledge in css (not professional, but i understand) and when working with some templates or tutorials i've seen some flat icons on the website, when i go to the css class, what i found is something like these: "example:before { content: "\e00a"; }"
I'd like to know how is it done? How can i change it to another icon? Or even, how can i create another 'flat icon' based on the same process?
If anyone can help me, please.
Thanks
You can use the content property for icons for example. \e00a for example refers to this character: 
It can be used as the bullet point for list items:
li:before {
content:'\e00a'
padding-right:12px;
}
Some fonts come with characters like the ones found here. You can use those characters like \f042 for example to display the screen contrast symbol. however you will need to download the font first to make use of it. Read more about #font-face here
Use Predefined CSS files like "fontawsome" or "glyphicons" (Google It). And then use their css class like <i class="fa fa-facebook"></i> this will show facebook icon.
You are looking for font icons. This gives you scalable vector icons that can be customized with CSS on size, color, drop-shadow, etc. -- Font Awesome
Here is a great example.
http://fortawesome.github.io/Font-Awesome/icons/
Using wordpress.
I would like to the change the style of my lists in the main page as well as the sidebar. Right now I have a little circle with an arrow in it. I'd rather have it be just a black circle in the main page and I'd like there to be nothing before the text in the sidebar.
I've looked everywhere for the code but can't find it. I figured it would be in the sidebar1.php or sidebar2.php files but I haven't been able to find anything.
I'm not familiar with WordPress per se, so I'll just try to point you in the right direction until someone comes along who can answer more specifically.
This is typically handled in CSS. I'd imagine there's some external stylesheet like Style.css or Theme.css that provides styling for your app. This may be found in the root of the app, a folder named Styles or something similar, or in a subfolder structure representing the theme(s) you are using.
list-style: none; will remove bullets altogether
list-style-type: square; will make bullets square
list-style-image:url("/images/image.gif"); will use an image you provide.
Do the php files specify a style class for these elements? If not, the stylesheet may be using their ID.
If you can find the stylesheet(s) for your site, find or create the entries for the lists in question.
For example: ul.sidebar1 or #sidebar1 ul (something along those lines,) and modify the rules to your liking.